Wasim's Site

List to JSON

Convert a text list (one item per line or comma-separated) into a JSON array, with optional number/boolean detection.

5 items

Turn a list into a JSON array

Got a column of values — names, IDs, tags — and need them as a JSON array? Paste the list and copy the array. Each line becomes one element; switch the separator to comma if your list is comma-separated. Enable type detection to turn numeric and boolean items into real JSON values instead of strings.

Need the reverse? Use JSON to List.

Frequently Asked Questions

How do I convert a list to a JSON array?
Paste your list — one item per line (or comma-separated) — and it becomes a JSON array instantly. By default items are kept as strings; turn on type detection to convert 42, true and null into real JSON numbers, booleans and null.
Can it keep numbers as numbers?
Yes. With "Detect numbers/booleans/null" enabled, an item like 42 becomes the number 42 rather than the string "42". Anything that is not a number, boolean or null stays a quoted string.
Does it handle empty lines and extra spaces?
Yes — there are toggles to trim whitespace from each item and to skip empty lines, so a messy paste still produces a clean array.
Is my data uploaded?
No. The conversion runs entirely in your browser.