Use this free JSON to CSV converter to turn a JSON array into a spreadsheet-ready CSV, or to turn a CSV file into JSON. Paste your data, choose a direction and a delimiter, then click Convert. Nested objects are flattened into columns, and errors show a clear message so you can fix the input quickly. You can copy the result or download it as a .csv or .json file.
JSON is how APIs talk and CSV is how spreadsheets talk. Convert between them when you need to move data from one world to the other.
How to use the JSON to CSV converter
- Choose a direction: pick JSON to CSV or CSV to JSON.
- Paste your data: use a JSON array of objects, or CSV with a header row.
- Pick a delimiter: comma, semicolon, or tab. Semicolons are common in European spreadsheets.
- Click Convert: the result appears with a count of rows and columns.
- Copy or download: save the output as a .csv or .json file.
What the tool does
| Action | Best for | What you get |
|---|---|---|
| JSON to CSV | Opening API data in Excel or Google Sheets | A header row plus one row per object |
| CSV to JSON | Importing spreadsheet data into apps and APIs | An array of objects using the header names as keys |
| Flatten | Nested JSON objects | Dot-notation columns such as address.city |
| Detect types | Typed JSON from CSV | Numbers, booleans, and null instead of text |
How nested JSON is converted
- Nested objects: keys are joined with dots, so
{"address":{"city":"Manila"}}becomes a column namedaddress.city. - Arrays: an array inside an object is written to one cell as JSON text, such as
["a","b"]. - Missing keys: if some objects lack a key, their cell is left empty.
- Null values: null is written as an empty cell.
- Special characters: values with the delimiter, quotes, or line breaks are wrapped in double quotes automatically.
Common conversion errors
- Not an array of objects: JSON to CSV needs an array like
[{...},{...}]. A list of plain values has no column names. - Invalid JSON: trailing commas, single quotes, and comments will stop the conversion.
- Wrong delimiter: if everything lands in one column, your CSV probably uses semicolons or tabs.
- Unclosed quotes: a quoted CSV value that never closes makes the rest of the file unreadable.
- Missing header row: CSV to JSON uses the first row as key names, so add one if it is missing.
Whether you are exporting an API response or importing a spreadsheet, a quick conversion saves hours of manual copying.
Worked examples
Convert an API response to CSV
Paste [{"id":1,"name":"Ana"},{"id":2,"name":"Ben"}] and click Convert. The tool returns a header row id,name followed by one row per person.
Flatten nested data
Paste an object that contains "address":{"city":"Manila"}. The CSV gets a column named address.city with the value Manila.
Convert a spreadsheet export to JSON
Switch to CSV to JSON and paste rows such as id,name then 1,Ana. Turn on type detection to get "id":1 as a number instead of text.
Frequently asked questions
Is this JSON to CSV converter free to use?
Yes. You can convert, copy, and download without creating an account.
Is my data uploaded or stored?
No. All processing happens in your browser. Nothing you paste is sent to a server or saved, and clearing the form removes it from the screen.
What JSON shape does it accept?
An array of objects works best. A single object is treated as one row. An array of plain values, such as numbers or strings, cannot be converted because it has no column names.
What happens to arrays inside objects?
They are written into one cell as JSON text. CSV has no native array type, so this keeps the data intact and lets you convert it back later.
Does it handle quotes and line breaks in CSV?
Yes. Values that contain the delimiter, double quotes, or line breaks are quoted correctly when writing CSV, and quoted values are read correctly when parsing it.
Why did my leading zeros disappear?
With type detection on, a value like 007 stays as text, but 7 becomes a number. If you need exact values such as ZIP codes or IDs, leave type detection off.