JSON to CSV Converter

Paste JSON or open a .json file to get CSV you can open in Excel or Google Sheets, then download it.

Convert JSON to CSV

Paste an array of objects, for example an API response, and each object becomes a row. The columns are every key that appears in any object, in the order they first appear, so a field that only some records have still gets a column and is left empty where it is missing. A response wrapped in an object, such as { "data": [ … ] }, is unwrapped automatically.

Example

{
  "data": [
    { "id": 1, "name": "Khan, Sara", "address": { "city": "Lahore" }, "tags": ["admin"] },
    { "id": 2, "name": "Ali Raza", "address": null, "active": false }
  ]
}
id,name,address.city,tags,active
1,"Khan, Sara",Lahore,"[""admin""]",
2,Ali Raza,,,false

Nested data

  • Nested objects are flattened into dot-separated columns: address.city, address.geo.lat. A record where address is null leaves those columns empty instead of adding a separate address column.
  • Arrays are written into one cell as JSON text, for example ["admin","editor"].
  • Untick the nested option to keep each top-level object as JSON text in one cell.

CSV that opens correctly

Values containing the delimiter, quotes, line breaks or leading and trailing spaces are quoted, and quotes inside are doubled, following RFC 4180; rows end with CRLF. We read the output back with Python's csv module and got the original values. Numbers are written exactly as they appear in the JSON, so 12345678901234567890 keeps all its digits and 1.50 stays 1.50 in browsers that let scripts read the original JSON text (current Chrome, Edge and Firefox); older browsers round numbers beyond 15-17 digits.

If Excel shows Urdu or other non-English text as garbled characters, tick "UTF-8 BOM for Excel". If your Excel expects semicolons (common with European regional settings), choose the semicolon delimiter.

Frequently asked questions

What JSON shapes are supported?
An array of objects, an object that wraps such an array (like {"data": [...]}), a single object (one row), or an array of arrays, which is written row by row.
Why does Excel show long numbers like 1.23457E+19?
The CSV has every digit; Excel converts long numbers when it opens the file and keeps only 15 significant digits. Import the CSV with Data > From Text/CSV and set that column to Text to keep them.
Can I use a semicolon or tab instead of a comma?
Yes. Choose it in the Delimiter list. Tab-separated output pastes straight into spreadsheet cells.
Is my data uploaded?
No. The conversion runs entirely in your browser.

Related tools