JSON to CSV
Flatten nested JSON arrays into spreadsheet-ready CSV.
Designed to run in your browser. See the privacy policy.
About JSON to CSV
This JSON to CSV converter takes a list of records, such as an API response or a database export, and turns it into a table you can open in Excel or Google Sheets. Paste a JSON array of objects and every object becomes one row. The columns are the union of every key found across all objects, in the order they first appear, so records with missing fields simply get empty cells.
Nested data is handled in one of two ways. By default a nested object is written into its cell as a JSON string. Turn on "Flatten nested objects" and it is spread into separate columns with dotted names such as address.city. The conversion runs in your browser, so the records are processed on your device.
How to use
- Paste a JSON array of objects (or a single object) into the JSON input box.
- Pick the output Delimiter: Comma, Semicolon, Tab or Pipe.
- Keep "Include header row" on to get the column names as the first line, or switch it off for data rows only.
- Turn on "Flatten nested objects" if you want nested fields as their own dotted columns.
- Copy the CSV output, or download it as data.csv.