JSON to CSV Converter
Convert a JSON array into a CSV file you can open in Excel or Google Sheets. Paste JSON like [{"name": "Ali", "age": 30}, {"name": "Sara", "age": 25}] and the converter builds a spreadsheet table with a header row — name, age — and one row per item, ready to download as .csv.
How to use this converter
Paste a JSON array of objects (all objects should have the same keys) and press 'Convert to CSV'. The CSV appears below — press 'Download CSV' to save it as a .csv file you can open in Excel or Google Sheets.
Formula
Each object becomes one row; the keys become the header row. Values containing a comma, a quote or a newline are wrapped in double quotes, and quotes inside a value are doubled: the value a"b becomes "a""b". A missing key in one row leaves that cell empty.
JSON is how APIs deliver data; CSV is how spreadsheets read it. Moving between the two by hand is slow, especially with many rows. This converter handles quoting automatically: values with commas or quotes are wrapped in double quotes, exactly as the CSV standard requires.
JSON → CSV — example
| From | Equals |
|---|---|
| [{"name": "Ali", "age": 30}] | name,age + Ali,30 |
| [{"a": 1, "b": 2}, {"a": 3}] | a,b + 1,2 + 3,(empty) |
| Value with a comma | Wrapped in quotes |
Frequently asked questions
How do I convert JSON to CSV?
Paste a JSON array of objects above and press 'Convert to CSV'. The result appears below — press 'Download CSV' to save it.
What shape should the JSON be?
An array of objects with the same keys: [{"name": "Ali", "age": 30}, {"name": "Sara", "age": 25}]. The keys become the header row.
What if objects have different keys?
All keys from all objects become columns. An object missing a key gets an empty cell in that column.
How are commas inside values handled?
They are wrapped in double quotes, as the CSV standard requires: the value 'Lahore, Pakistan' becomes "Lahore, Pakistan". Quotes inside a value are doubled.
Is my data sent anywhere?
No. The conversion runs entirely in your browser — your data never leaves your device.