CSV to JSON Converter
Convert CSV or TSV to JSON objects, arrays, or newline-delimited JSON (NDJSON). Paste a table or choose a file. Conversion runs in your browser and your data stays on your device.
Converts up to 50,000 data rows.
How to convert CSV to JSON
- Paste comma-, semicolon-, or tab-separated text, or choose a UTF-8 file. Use the delimiter menu to override auto-detection.
- Choose whether the first row contains column names and select an output format.
- Select Convert to JSON, then copy the output or download it as a .json file.
FAQ
Can cells contain line breaks or quotes? Yes. Wrap fields containing a delimiter or line break in double quotes and write embedded double quotes twice. A UTF-8 byte order mark (BOM) at the start is removed.
How are columns named? The converter uses column_N for blank names (where N is the column number) and adds suffixes such as _2 to make names unique. With headers off, object keys are col1, col2, and so on. With headers on, the first row is used for column names and is omitted from every output format.
What if rows have different lengths? The first row sets the column count. Short rows are padded with empty strings, extra cells are dropped, and the converter reports how many exported rows needed adjustment.
How do I make nested objects? Turn on Unflatten dot keys to turn address.city into a city property inside address. If two names overlap, such as address and address.city, rename one or turn off the option.
Will values such as 007 stay as text? Yes. All cells are strings by default. Type detection recognizes JSON numbers and the lowercase values true, false, and null. Numbers with leading zeros, integers outside JavaScript’s safe range, and empty cells stay as strings.
What is NDJSON? NDJSON puts one JSON object on each line. The array formats use two-space indentation.
To convert in the other direction, use the JSON to CSV converter. To export tables from web pages, see TableGrab.