$ json --csv

json to csv converter.

Convert JSON arrays to CSV instantly. No uploads, no servers — everything runs here.

input
1
2
3
4
5
0 / ∞ chars
[
  { "name": "Alice", "age": 28, "city": "London", "active": true },
  { "name": "Bob", "age": 35, "city": "Berlin", "active": false },
  { "name": "Charlie", "age": 22, "city": "Paris", "active": true }
]
output
Nested objects are flattened using dot notation. For example, {"user": {"name": "Alice"}} becomes a column named user.name with value "Alice".
The converter scans all objects in the array and collects every unique key. Missing values are left empty.
Yes, the tool supports comma, semicolon, and tab delimiters. Choose the one that matches your target application.

Handling Nested JSON

CSV is flat by nature, but JSON is often deeply nested. The key challenge is flattening nested objects into columns:

// Nested JSON
[{"name": "Alice", "address": {"city": "NYC", "zip": "10001"}}]

// Flattened CSV
name,address.city,address.zip
Alice,NYC,10001

Common Edge Cases

Edge CaseProblemSolution
Commas in valuesBreaks CSV parsingWrap in double quotes
Quotes in valuesBreaks CSV escapingDouble the quotes ("")
Null valuesEmpty cellsOutput empty string or N/A
Inconsistent keysMissing columns in some rowsUse union of all keys, fill blanks
Arrays in valuesComplex to representJoin with delimiter or flatten

Excel tip: If CSV opens incorrectly in Excel (wrong encoding or delimiter), use Data → From Text/CSV instead of double-clicking the file. You can specify encoding and delimiter there.

learn more in our detailed guide.

→ read the guide