Runs locally in your browser

Convert a List to a JSON Array

Turn one item per line into a valid JSON string array, with escaping, optional deduplication, and pretty printing.

Input → Result

Create a valid JSON array from a line-by-line list.

Options
JSON array0 items

About this tool

Convert a List to a JSON Array

JSON arrays are common in APIs, configuration files, test fixtures, and JavaScript code. Manual quoting breaks easily when values contain special characters.

This converter uses the browser JSON serializer so quotes, slashes, and Unicode characters are escaped correctly.

FAQ

Frequently asked questions

Are numbers converted to JSON numbers?+

No. Every input line becomes a JSON string to preserve leading zeroes and exact text.

Are quotes escaped correctly?+

Yes. The native JSON serializer handles escaping.

Related tools

Popular list tools

Browse all tools →

Guides

Related guides

Guides →