JSON to CSV converter

Paste a JSON array of objects to get CSV with one column per key. Nested objects become parent.child columns.

How the conversion works

  1. Each array item becomes one row; a single object becomes one row.
  2. Keys are collected from all rows in order of first appearance, so rows with missing keys get empty cells.
  3. Nested objects are flattened: {"address":{"city":"X"}} → column address.city.
  4. Arrays are written as JSON text inside the cell.
  5. Cells containing the delimiter, quotes or newlines are wrapped in double quotes, and inner quotes are doubled (RFC 4180).

Worked example

[{"id":1,"name":"Ada"},{"id":2,"name":"Li, Chen"}]
→
id,name
1,Ada
2,"Li, Chen"

Excel in some European locales expects semicolons; choose the semicolon delimiter for those.

Frequently asked questions

Why are my nested arrays in one cell?
CSV is flat. Arrays are kept as JSON text so no data is lost; split them in your spreadsheet if needed.
Will Excel open the file correctly?
Yes for comma CSV in English locales. If accents look wrong, import via Data → From Text and choose UTF-8.