Convert a List to JSON
Create a JSON array from a plain text list. Runs entirely in your browser, so your data never leaves your device.
0 chars · 0 lines
Output
The result appears here as you type.
How to use Convert a List to JSON
- 1. Paste your list. Paste a plain text list, whether it is one item per line, comma-separated, or semicolon-separated, the same kind of list you might copy out of a note or a spreadsheet cell.
- 2. Set the split character and cleanup options. Choose New lines, Commas or Semicolons for Split on to match your input, then turn on Trim items to remove extra whitespace and Skip empty items to drop any blank entries.
- 3. Choose type parsing and indent, then copy. Turn on Parse numbers and booleans to convert entries like 42 or true into their real JSON types, pick an Indent width, and copy the resulting JSON array.
When to use Convert a List to JSON
Convert a List to JSON turns a plain text list, whether newline, comma or semicolon separated, into a proper JSON array with the types you choose. It is for the common case of having a quick list somewhere and needing it as structured data for code to consume.
- Turning a copied list of names into an array. You have a list of names copied from a document or an email, one per line, and want it as a JSON array to feed into a script or an API request.
- Converting pasted spreadsheet cells into JSON. You copied a single column out of a spreadsheet as a plain list and want it converted into a JSON array of values, with numbers parsed correctly if the column held numeric data.
- Building a quick JSON array for a test fixture. You jotted down a comma-separated list of sample values in a notes app and want a fast way to turn it into a JSON array for a test file.
- Preparing a config array from a list of feature flags. A teammate sent over a plain list of feature flag names, one per line, and you need them as a JSON array to paste into an application's config.
Examples
Turn lines into a JSON array
Input
apples bananas 42
Output
[ "apples", "bananas", 42 ]
About the Convert a List to JSON tool
Convert a List to JSON does its work locally, right in the browser. Create a JSON array from a plain text list. There is no upload step, no queue and no account, and your data never travels over the network.
It belongs to the JSON Tools collection on EditSafely, a set of 90 small, focused JSON utilities that share the same instant, private workspace.
You can shape the output with 5 settings, including Split on, Trim items, Skip empty items and Parse numbers and booleans, and the result refreshes the moment you change one. A worked example further down the page shows exactly what the tool produces for a real input.
Running locally also makes the tool fast and dependable: results appear as you type or drop a file, there is no server outage that can take it down mid-task, and confidential data can be processed without a second thought.
Frequently asked questions
Does Convert a List to JSON cost anything?
Yes, it is completely free. All 2,658 tools on EditSafely work without an account, a subscription or usage limits.
Is it safe to paste sensitive or confidential data?
No data leaves your device. The whole tool is JavaScript that runs inside your browser tab, so there is no upload, no server-side processing and no log of what you did. If you disconnect from the internet after the page loads, it keeps working.
How much text can I process at once?
There is no fixed limit. Because the work happens on your own device rather than on a shared server, the practical ceiling is your machine's memory, which comfortably handles inputs far larger than typical online tools allow.
Do I need to sign up or install anything?
Nothing to install and no account needed. Open the page in any up-to-date browser, including on a phone or tablet, and the tool is ready.
How do I use the result?
The output panel has a one-click copy button, and you can keep refining the input while you work; the result updates in place as you type.