JSON to CSV Converter

Turn a JSON array of objects into CSV you can open in Excel or Google Sheets: object keys become the column headers and every object becomes a row. Values containing commas or quotes are escaped correctly, and nothing is uploaded.

Runs in your browser — your files never leave your device

How the flattening works

For an array of objects, the converter collects every key that appears in any record and uses the union as the header row, so records with missing fields simply get empty cells rather than shifting columns. Values that contain commas, quotes or line breaks are quoted and escaped per CSV conventions, so the file opens cleanly in Excel, Google Sheets and databases.

Nested objects and arrays inside a field are serialized as JSON strings — a pragmatic choice that keeps one row per record and loses nothing. If you need nested data as separate columns, flatten it upstream first. As with every tool here, conversion runs locally: API responses with real user data never touch a server.

How to use JSON to CSV Converter

  1. 1Paste a JSON array — of objects (typical API output) or of arrays.
  2. 2Column headers are taken from the union of object keys, in first-seen order.
  3. 3Copy the CSV or download it as a .csv file ready for a spreadsheet.

Frequently asked questions

What JSON shapes are supported?

An array of objects (each object becomes a row; keys become headers) or an array of arrays (rows as-is). A single top-level object isn't tabular — wrap it in an array.

What happens to nested objects?

They're embedded as JSON strings in their cell, keeping one row per record. Flatten upstream if you need them as separate columns.

Will Excel open the result correctly?

Yes — values with commas, quotes or newlines are escaped per CSV conventions, so spreadsheets parse the file cleanly.