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.