Skip to content
MyDailyTool

JSON to CSV Converter

Convert JSON arrays to CSV with automatic header detection from object keys. Handles nested values and arbitrary delimiters.

How to use the json to csv converter

Paste a JSON array of objects on the left. The CSV equivalent appears live on the right, using each object's keys as column headers.

Formula & explanation

Headers = union of all object keys (left to right by first occurrence). Each row maps an object's values in header order. Values containing commas, quotes, or newlines are RFC 4180-quoted.

Examples

[{"name":"Alice","age":30}, {"name":"Bob","age":25}] becomes name,age\nAlice,30\nBob,25

Frequently asked questions

What about nested objects?
Nested objects and arrays are JSON-stringified into a single cell. Flatten with dot-notation keys ("address.city") before converting if you want them as separate columns.
Can I customize the delimiter?
Output is comma-delimited (the most portable). To re-import into Excel with a different delimiter, use Excel's Text Import Wizard or a one-line find/replace.
Why does the first row become the header?
That's the most common CSV convention. If your JSON has objects with different keys, every key across all objects becomes a column — missing values render as empty cells.

Related developer tools tools

Related reading