Flatten JSON arrays into spreadsheet rows with dot path columns
CSV to JSON
Turn a spreadsheet export into JSON that an API, script or database import will accept.
Loading tool…
How to use csv to json
Paste CSV or open a .csv or .tsv file.
Check the detected delimiter and whether the first row is the header.
Choose objects or arrays, how empty cells appear, and whether numbers become real numbers.
Copy the JSON or download it.
What this tool does
- Reads quoted fields with commas, doubled quotes and line breaks inside them (RFC 4180).
- Detects comma, semicolon, tab and pipe delimiters.
- Turns headers like address.city into nested objects.
- Keeps values such as 007 or 20-digit IDs as text so nothing is silently changed.
- Renames duplicate headers (name, name_2) so no column is lost.
How the result is verified
The JSON is parsed again before download and its record count is compared with the number of CSV data rows.
Frequently asked questions
Why is my ZIP code still a string?
Values with leading zeros, like 01234, would lose the zero as a number, so they stay text. The same goes for integers too long to store exactly.
My file uses semicolons. Does that work?
Yes. The delimiter is detected from the first rows, and you can set it by hand if detection picks the wrong one.
Is my data uploaded to a server?
No. Everything you drop, paste or type is processed by code running in this browser tab. You can check it yourself: open your browser's developer tools, watch the Network panel, and use the tool. No request carries your data.
Related tools
One sheet per CSV, automatic delimiter detection, and a fresh clean workbook as output.
Beautify or minify JSON with your choice of indentation
Format, validate, tree view, schema, diff and CSV in one tabbed workspace