How do you convert JSON to CSV?
To convert JSON to CSV, each object in a JSON array becomes a row and each key becomes a column. This JSON to CSV converter does this instantly in your browser: paste an array of objects, optionally flatten nested objects into dotted column names such as address.city, pick a comma, semicolon, tab or pipe delimiter and download the CSV for Excel or Google Sheets. Your data is never uploaded.
How to convert JSON to CSV
- 1
Paste a JSON array of objects into the input box, or press “Try an example”.
- 2
Choose the delimiter and whether to include a header row.
- 3
Keep “Flatten nested objects” on to create columns like address.city.
- 4
Copy the CSV or download it as a .csv file.
Key features
Nested objects flattened
Nested keys become dotted column names, and arrays inside objects are kept as JSON text in a single cell.
Any delimiter
Use commas, semicolons (common in European Excel), tabs or pipes to match the program that will open the file.
Missing keys handled
Objects with different keys are merged into one header, and missing values are left empty.
Safe quoting
Values containing delimiters, quotes or line breaks are quoted correctly according to RFC 4180.
Frequently asked questions
What JSON structure converts best to CSV?
A flat array of objects with the same keys, for example [{"id":1,"name":"Ada"}], converts cleanly: each object becomes a row. A single object is converted to a one-row table.
How are nested objects and arrays converted?
With flattening on, nested objects become columns with dotted names such as user.address.city. Arrays are written into the cell as JSON text because CSV has no native array type.
Why does Excel show all data in one column?
Excel uses the list separator of your regional settings. In many European locales that is a semicolon, so choose the semicolon delimiter before opening the file.
Can I convert a large JSON file?
Yes, within the memory of your browser. Files with tens of thousands of rows convert in a moment because everything runs locally.
Is my JSON uploaded to a server?
No. The conversion happens entirely in your browser and the data never leaves your device.