How to Convert JSON to CSV
You have data as JSON — an API response, a database export, a config — and someone needs it in a spreadsheet. Analysts, managers, and finance teams live in Excel and Google Sheets, and they cannot open JSON. Converting JSON to CSV flattens your array of objects into rows and columns that any spreadsheet opens instantly. This guide explains the conversion, the nested-data problem, and how to get clean columns.
How the conversion maps
An array of JSON objects becomes a CSV table. Each object turns into a row; the object keys become the column headers. A list of records with `name`, `email`, and `age` fields produces a CSV with those three columns and one row per record — exactly what a spreadsheet expects.
How to convert JSON to CSV with this tool
- Open the JSON to CSV tool.
- Paste your JSON array.
- Convert to CSV.
- Copy or download, then open in any spreadsheet program.
Everything runs in your browser, so your data is never uploaded.
The nested-data challenge
CSV is flat — a simple grid of cells. JSON is not; it happily nests objects and arrays inside each other. That mismatch is the main thing to plan for:
- Nested objects must be flattened. A `address` object with `city` and `zip` typically becomes columns like `address.city` and `address.zip`.
- Arrays inside a record — a list of tags, say — have no natural single-cell representation. They are often joined into one cell or spread across numbered columns.
- Inconsistent keys. If some records have fields others lack, the CSV needs a column for every key that appears, with blanks where a record does not have it.
The cleaner and flatter your JSON, the cleaner the CSV. Deeply nested data may need reshaping first.
Prepare the JSON first
If your JSON is messy or you are unsure it is valid, run it through JSON Validator and JSON Formatter before converting — a malformed array will not convert cleanly. Format first, confirm the structure is a flat array of objects, then convert.
The reverse trip
To go from a spreadsheet back to JSON for use in code, CSV to JSON does the opposite. Together they move data freely between spreadsheets and applications.
Common uses
- Hand data to non-technical colleagues in a spreadsheet.
- Import into Excel or Google Sheets for analysis.
- Create a report from an API response.
- Load data into tools that only accept CSV.
Privacy and limits
Conversion is fully local — no upload, no size cap, nothing stored, offline once loaded. Open the JSON to CSV tool to turn data into a spreadsheet.
Try the tool
Open JSON to CSV →