CSV ⇄ JSON
Convert CSV or TSV to JSON and JSON back to CSV, with delimiter detection, nested flattening and a table preview.
CSV input
JSON output
Table preview
The preview shows up once there are rows to display.
How to use the CSV ⇄ JSON converter
- Pick a direction, then paste your data or drop a
.csv,.tsvor.jsonfile — the delimiter is detected for you. - Choose whether the first row is a header and whether you want an array of objects or an array of arrays.
- Check the table preview underneath, then copy the result or download
data.json/data.csv.
FAQ
Does it handle commas and line breaks inside a field?
Yes. Quoted fields are parsed properly, so "Ng, Ada" stays one value and a quoted field may span several lines. Doubled quotes ("") become a literal quote character.
What happens to nested JSON?
CSV is flat, so nested objects and arrays are flattened into dotted column names — address.city, tags.0. Turn flattening off and a nested value is written into the cell as a JSON string instead.
Can I use semicolons or tabs?
Yes — leave the delimiter on automatic and European semicolon files or TSV exports are recognised, or force one from the list. A UTF-8 byte order mark at the start of the file is stripped automatically.