How to use the JSON to CSV
- Paste a JSON array of objects (or upload a .json file).
- Choose a delimiter: comma, semicolon (for European Excel) or tab.
- Check the table preview, then download the .csv or copy it.
Nested JSON
Nested objects become dot-notation columns: {"address":{"city":"Mumbai"}} turns into a column called address.city. Arrays of simple values are joined with a semicolon; arrays of objects are kept as JSON text in one cell. Columns are the union of all keys, so records with missing fields still line up.
Accepted JSON shapes
An array of objects, a single object, an object whose values are arrays of equal length (column format), or an object that wraps the array, such as {"data":[…]}. JSON Lines (one object per line) works too.
Worked example: nested JSON to a flat table
API responses are usually nested. This record:
{"id": 1, "name": "Asha", "address": {"city": "Mumbai", "zip": "400001"}, "tags": ["admin", "beta"]}
becomes one CSV row with dot-notation columns:
| id | name | address.city | address.zip | tags |
|---|---|---|---|---|
| 1 | Asha | Mumbai | 400001 | admin; beta |
Which delimiter should I choose?
Comma is the standard and works with Google Sheets, Python, R and databases. Semicolon is what Excel expects in countries that use a decimal comma (most of Europe, Latin America, Turkey); with a comma file there, Excel puts everything in one column. Tab is the safest when your text contains commas and semicolons, and it pastes straight into a spreadsheet. The file is saved as UTF-8 with a byte-order mark, so accented and non-Latin characters display correctly when Excel opens it.
Records with different fields still line up: the columns are the union of all keys, and missing values are left empty.
Flattening nested JSON
JSON can nest objects inside objects, but a CSV is a flat grid. To bridge the two, each nested key becomes a column whose name is the path joined with dots, so {"user":{"name":"Asha"}} produces a column called user.name. Arrays are more awkward because a record may contain a different number of items: a list of plain values such as tags is written into one cell separated by semicolons, while a list of objects is written into one cell as JSON text. If you need one row per item instead, restructure the JSON before converting. Decide first which fields you really need, to keep the table readable.
Working with API responses
Web APIs usually wrap the list of records in an outer object with fields such as status, page or data. The converter looks inside common wrappers like {"data": [...]} for the array of records, and also reads JSON Lines files with one object per line. Records from an API may have inconsistent fields, so check the preview for empty cells where a record lacked a key. For very large exports, fetch and convert one page at a time.
Open the CSV in Excel safely
If you will open the result in Excel, check three things. Excel in many European regions expects semicolons, so choose that delimiter or import through the “From text” option. Long IDs and numbers with leading zeros should be imported as text. And non-English characters need a UTF-8 file with a byte order mark, or they appear garbled. For the full picture of what changes between formats, see CSV vs JSON vs Excel.
Frequently asked questions
- Can I convert CSV back to JSON here?
- Yes. Click "CSV → JSON" at the top of the tool; the CSV result is carried over and converted back.
- My JSON is an API response with a "data" field. Will it work?
- Yes. A wrapper object such as {"data": [...]} or {"results": [...]} is detected, and the array inside it is converted.
- How do I open JSON in Excel?
- Convert it to CSV here, download, and open the .csv in Excel. Choose semicolon if your Excel uses comma as the decimal separator. Or use JSON → CSV and then CSV to Excel for a real .xlsx.
- What happens to nested arrays?
- Arrays of strings or numbers are joined with "; ". Arrays of objects are written as JSON text in a single cell.
- Is my data uploaded?
- No. Everything runs in your browser.
Last updated: · by the Plotiq Editorial Team · Read our guides