JSON to CSV Converter

Flatten a JSON array of objects into clean CSV.

Ad placeholder (leaderboard)
Enjoying the tools? Go Pro for £4.99 (one-time) and remove all ads — forever, on this device. Remove ads — £4.99

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.

Ad placeholder (rectangle)