JSON to CSV Converter
Convert a JSON array of objects into CSV, flattening nested objects into dotted column names and quoting values that need it.
Everything you type here is processed on your own device. No input is sent to a server, logged, or stored.
What the JSON to CSV Converter does
The JSON to CSV converter on this page will convert a JSON array of objects into CSV, flattening nested objects into dotted column names and quoting values that need it. Paste your text in, pick the options you need, and copy the result straight back out. It is most often used for getting an API response into a spreadsheet. More utilities in this area are collected on FreeToolsWorld.org.
How to use it
- Paste a JSON array of objects.
- Leave flattening on to turn nested objects into dotted column names.
- Pick a delimiter and copy the CSV.
- Open it in a spreadsheet to check the columns line up.
How it works
Column names are collected across every record rather than taken from the first one, so records with different keys still produce a complete table. Missing values become empty cells rather than shifting the columns.
Nested objects are flattened into dotted names — address.city, address.country — because CSV has no concept of nesting. Arrays and any remaining objects are serialised back to JSON inside the cell, which at least preserves the data rather than silently dropping it.
Values are quoted only when they need to be: when they contain the delimiter, a double quote or a line break. Internal quotes are doubled, which is the convention every standard CSV reader expects.
When to use it
- Getting an API response into a spreadsheet.
- Preparing JSON data for a bulk import that expects CSV.
- Flattening nested records for analysis.
Common mistakes to avoid
- Expecting arrays to flatten into columns — they are serialised as JSON text in a single cell instead.
- Forgetting that a spreadsheet may reinterpret values that look like dates.
Frequently asked questions
What happens to nested arrays?
They are written into the cell as a JSON string. CSV is a flat format with no way to represent a list inside a cell, so preserving the JSON is the least lossy option.
What if records have different fields?
Every key found across all records becomes a column, and records missing a key get an empty cell. No data is dropped and no columns shift.