Convert JSON to CSV in your browser
This tool flattens a JSON array of objects into clean CSV with a header row, ready for Excel, Google Sheets, a database import or a BI tool. It is built for developers exporting API responses and for anyone who needs spreadsheet-shaped data out of a JSON file without a script.
How it works
The tool parses your JSON, then scans every object to collect the union of all keys in first-seen order — that becomes the header row, so objects with differing fields still line up. Each object is then emitted as a row in header order, leaving a blank cell where a key is missing. Every field is escaped per the RFC 4180 standard: any value containing the delimiter, a double quote, or a line break is wrapped in quotes, and embedded quotes are doubled. Nested objects and arrays are serialised back to JSON text inside their cell.
Example
This JSON:
[
{ "name": "Ada", "city": "London" },
{ "name": "Bao", "city": "Hanoi", "role": "Designer" }
]
becomes (note the third column added from the second object, and the blank cell):
name,city,role
Ada,London,
Bao,Hanoi,Designer
The whole conversion happens locally in your browser — nothing is uploaded, so it is safe for sensitive exports.