Convert a List to a JSON Array Online
Convert a list (one item per line) into a JSON array (strings or numbers), in your browser.
🔒 100% client-side — no data sent
This tool turns a list, one item per line, into a valid JSON array of strings or numbers. Perfect for preparing test data or feeding an API without writing any code. The conversion runs 100% in your browser, so your data never leaves your machine.
What is it for?
- ▸ Build a JSON array of strings from a list pasted from Excel
- ▸ Generate an array of numbers for a test dataset
- ▸ Prepare a JSON property to paste into a config file
- ▸ Convert a list of values for an API request body
FAQ
How do I turn a list into JSON?
Paste your list with one item per line, and the tool instantly generates a JSON array in brackets with each item as an element.
How do I get an array of numbers instead of strings?
Select the numbers mode and numeric values will be written without quotes, producing a valid JSON array of numbers.
Are special characters escaped correctly?
Yes, quotes and special characters found in your lines are escaped to always produce valid JSON.
Related tools
Age calculator Calculate the exact age from a birth date (years, months, days), in your browser. Credit card · validator (Luhn) Validate a card number with the Luhn algorithm and detect the network. Change CSV delimiter Change a CSV’s column separator (comma, semicolon, tab, pipe), in your browser. Extract CSV columns Select and export one or more columns from a CSV, right in your browser. CSV → HTML table Convert a CSV into a ready-to-paste HTML table (with header), right in your browser. CSV → SQL Convert a CSV into SQL INSERT statements (custom table name), in your browser.