JSON to CSV
Turn an array of JSON objects into a spreadsheet-ready CSV, with nested fields spread into their own columns.
or drop it here · files stay on your device
We count formats and sizes. Filenames stay private unless you opt in.
Downloads a small public example. Your own files are not used.
- Runs on your device
- No sign-up or watermark
- No fixed file size cap
The short answer
To convert JSON to CSV, choose a .json file holding an array of objects and run the converter. Each object becomes a row, every key seen becomes a column, and nested objects flatten into dotted names such as address.city. It runs in your browser, so the data is never uploaded.
A worked example
See a real input and result
This synthetic sample produced 1 output file from 1 input file. These are synthetic demonstration files, not someone’s documents.
Input sample
Actual output
- Input count
- 1
- Output count
- 1
- Rows
- 2
- Columns
- 2
- Input bytes
- 65
- Downloadable output bytes
- 26
Settings used: flatten: true
This synthetic sample only; results depend on the input.
Ran through this tool on . Use “Try sample files” above to run it yourself.
How to convert a JSON file to CSV
- STEP 1
Choose the JSON file
Pick a .json file whose top level is an array of objects. It is parsed on your device.
- STEP 2
Decide on flattening
Leave Flatten nested objects on to get dotted columns, or turn it off to keep each nested object as JSON in one cell.
- STEP 3
Convert to CSV
The report shows how many rows and columns were produced, and the preview shows the table.
- STEP 4
Download the CSV
Save it as a .csv file named after the original, ready for Excel, Numbers or Google Sheets.
Why JSON and CSV do not line up neatly
CSV is a flat grid: one header row, then rows of cells. JSON is a tree, where a value can be another object or a list. Converting means deciding what to do with the branches. The common answer, used here, is to flatten nested objects into column names joined by dots, so {"address": {"city": "Leeds"}} becomes a column called address.city.
Lists inside a record have no single right answer in a grid, so they are kept as JSON text inside one cell rather than guessed at. That keeps the data intact and lets you split it later if you need to.
What survives, and what does not
The file is parsed, and if it is a single object rather than an array it becomes one row. Headers are the union of every key across all rows, in the order they are first seen, so records with missing fields leave blank cells rather than shifting columns. Cells containing commas, quotes or line breaks are quoted and escaped the standard way.
What you keep
Columns from keys across the records; records missing a key leave a blank cell
Nested objects, as dotted column names when Flatten is on
Commas, quotes and line breaks inside values, correctly quoted
What you lose
Arrays inside records are written as JSON text in a single cell, not split into rows
A wrapper object such as {"data": [...]} becomes one row; point the file at the array itself
The delimiter is always a comma; there is no semicolon or tab option
Precision on integers above 2^53, which JavaScript rounds
Flattened key collisions: a literal address.city key can overwrite a nested address.city value; turn flattening off to keep them separate
Honest limits are published on every tool page. If a tool cannot do something well, it says so here rather than letting you find out after the download.
JSON to CSV at a glance
| Input | JSON (array of objects, or one object) |
|---|---|
| Output | CSV, comma-separated |
| Nesting | Objects flattened to dotted keys; arrays kept as JSON |
| Batch | One file at a time |
| Runs on | Your device, in the browser |
| Works offline | After the first use |
If something goes wrong
I got one row with a huge cell
Your array is probably inside a wrapper object such as {"results": [...]}. Save just the array as its own file, or reformat it so the top level is the list.
It says CSV needs an array of objects
The array holds plain values like numbers or strings, which have no keys to use as headers. Wrap each value in an object, for example {"value": 3}.
JSON to CSV questions
How do I convert nested JSON to CSV?
Keep Flatten nested objects switched on. Each nested key becomes its own column with a dotted name, such as user.name and user.address.postcode.
What happens to arrays inside my JSON?
An array value inside a record is written into one cell as JSON text, for example ["red","blue"]. It is not exploded into extra rows.
Can I open the CSV in Excel?
Yes. It is a standard comma-separated file with a header row. In locales where Excel expects semicolons, use Data, From Text/CSV and choose comma as the delimiter.
Is my JSON uploaded to convert it?
No. The file is read and converted in your browser tab, which matters for exports full of customer names, emails and order details.
What if my records have different keys?
Every key found in any record gets a column. Records missing a key simply leave that cell empty.