How to use JSON to CSV
- Paste your JSON into the input box. A list of objects gives one CSV row per object.
- Choose a delimiter: comma, semicolon or tab.
- Check the CSV in the output box, which also shows the number of rows and columns.
- Click Copy or Download to save data.csv.
Features
- Flattens nested objects into dot keys (user.name)
- Array items get their position (tags.0, tags.1)
- Columns are the union of all keys, in first-seen order
- Fields with commas, quotes or line breaks are quoted (RFC 4180)
- Runs in your browser, so the JSON is never uploaded
Supported formats and limits
- Maximum input: 10,000,000 characters
Examples
| Input | Result |
|---|---|
| [{"id":1,"user":{"name":"Ana","city":"Lima"},"tags":["a","b"]},{"id":2,"user":{"name":"Luis"}}] | id,user.name,user.city,tags.0,tags.1 1,Ana,Lima,a,b 2,Luis,,, — Rows with missing keys get empty cells. |
| {"a":1,"b":"x;y"} | a;b 1;"x;y" — Semicolon delimiter selected. |
Limitations
- Every array item becomes its own column (tags.0, tags.1, …), so a long array inside each row produces many columns.
- Types are not kept: every value is written as plain text.
- Spreadsheet programs may treat cells that start with =, +, - or @ as formulas when you open the file. Check data from untrusted sources before opening it.
Learn more
CSV is a flat table, while JSON can nest objects and arrays as deeply as you like. Converting one into the other means deciding how to flatten the structure. A common approach, used here, is to join the keys along the path with dots: the value at user.address.city becomes a column named user.address.city.
The set of columns is the union of the keys found in all objects, because JSON objects in a list do not have to share the same fields. If an object lacks a key, its cell is left empty. Values that contain the delimiter, a double quote or a line break are wrapped in quotes, with inner quotes doubled, as described in RFC 4180.
Flattening loses the original nesting, so converting back is not always exact. For lists of similar, shallow records it works very well and opens cleanly in a spreadsheet.
Frequently asked questions
How are nested objects converted?
Each nested key is joined to its parent with a dot, so {"user":{"name":"Ana"}} becomes a column called user.name.
What happens to arrays inside an object?
Each item gets its index in the column name, for example tags.0 and tags.1. Empty arrays and objects become an empty cell.
Can I convert a single JSON object?
Yes. A single object is treated as a list with one item and gives one row.
Is my data uploaded?
No. The conversion runs in your browser.
Sources
- RFC 8259, The JavaScript Object Notation (JSON) Data Interchange Format
- RFC 4180, Common Format and MIME Type for CSV Files
Last reviewed: September 30, 2026