How do I convert a comma-separated list to a JSON array?
Paste the list above and press Convert. Each value is trimmed and returned as a formatted JSON array ready to copy.
Is it free?
Yes, no signup, no paste limit, no run limit. It runs on your own device so there's nothing to meter.
Is my text uploaded anywhere?
No. The split runs entirely in your browser. Nothing is transmitted or stored.
Does it parse real CSV files with quoted fields?
No. It splits on every comma whether it's quoted or not, so 'Smith, Jane' inside quotes still becomes two items. Use a CSV-aware parser for quoted data.
What happens to spaces around each value?
They're trimmed automatically. 'red, blue , green' comes back as three clean items.
What if there are two commas in a row?
The empty item between them is dropped, and a trailing comma at the end doesn't produce a blank final item either.
Can I convert a number like '1,000' safely?
Not with this tool, a comma inside a number looks the same as a comma between values, so it splits there too. Strip thousands separators first.
Does it work on large lists?
Yes, no length cap and no run limit. Very large pastes depend on your device's memory, not on any limit here.
Does it work on phones?
Yes, the layout stacks on narrow screens and works the same in a mobile browser.
How is this different from the custom delimiter tool?
This one always splits on a comma. The custom delimiter tool lets you type any separator, useful when your data uses something else, or when commas appear inside the values.
Is the output always valid JSON?
Yes, it's built with JSON.stringify rather than assembled as text. What it can't guarantee is that the split happened at the right places for your particular data.
Can I use this on a spreadsheet column?
If it was copied and joined with commas, yes. If copied directly from a spreadsheet it more likely arrived tab-separated, in which case use the tab to JSON array converter.
Does it remove duplicate values?
No. Every comma-separated value becomes its own array item, repeats included.
Is there a batch mode or an API?
Not yet. Paste, convert, copy is the fastest route for one list at a time.
Can I use this for a list of email addresses?
Yes, no address contains a comma, which makes it exactly the kind of simple list this app is built for.
Does it split semicolon-separated lists?
No, this converter only splits on commas. Semicolon-separated data, common in European exports, has its own tool.
Why is one of my items missing from the result?
Empty items get dropped automatically rather than shown blank, so if a value's missing it was likely two commas with nothing meaningful between them.
Do I need to strip quote marks first?
If your values were quoted for CSV purposes, remove those quote characters yourself, since this tool doesn't interpret quotes, only commas.
Can I reformat the result afterward?
Yes, the output is plain JSON text, so you can run it through the JSON prettifier or minifier if you want to reformat further.
Is there a limit on list length?
No fixed limit. Thousands of items convert the same way as five, capped only by your browser's memory.