How it works
The List to JSON Converter transforms a plain text list (one item per line) into a JSON array. It handles type detection, optional deduplication, and output as a flat array, array of objects, or nested structure.
This is the most direct path from a spreadsheet column or bullet list to a JSON data structure. Instead of manually wrapping each item in quotes and adding commas and brackets, you paste the list and get valid JSON instantly.
How to use it: paste your list. Each non-empty line becomes a JSON array element. The tool auto-detects types: numeric strings become numbers (42 not "42"), "true"/"false" become booleans, and strings are properly quoted and escaped (backslashes, quotes, and newlines in values are escaped automatically).
Options: output as a flat array (["a","b","c"]) or as an array of objects using a configurable key name ({"item":"a"},{"item":"b"}} for database import formats that expect objects).
Developer shortcut: useful for quickly creating test fixtures โ paste a list of test values and get a ready-to-paste JavaScript array literal or JSON fixture file.
Frequently Asked Questions
- Empty lines are skipped by default and do not produce array elements. Toggle 'Include empty lines as null' to preserve them as null values if your data requires it.
- Yes. Integer strings become JSON numbers, 'true'/'false' become booleans, and blank/empty lines become null. Toggle 'Keep all values as strings' to disable type detection.
- Yes. Enable 'Wrap as objects' and specify a key name โ each list item becomes {"value": "item"}. This is useful for imports that expect an array of objects.
- No hard limit. The tool processes large lists entirely in your browser. Lists with tens of thousands of items complete near-instantly.