Free Online JSON to CSV Converter
The JSON to CSV converter turns an array of objects into a CSV table you can open in Excel or Google Sheets. The column order follows the keys found across all rows.
The reverse conversion is the CSV to JSON Converter, and once the data is tabular it can be loaded with the CSV to SQL Converter. If the source structure needs checking first, the JSON Validator reads it.
How to use the JSON to CSV
- 1 Paste your JSON, or load a file. It should be an array of objects.
- 2 Choose the delimiter and whether to include a header row.
- 3 Check the column list — keys appearing in some records but not others are still included.
- 4 Download or copy the CSV.
Getting the structure right
The success of a JSON to CSV conversion depends on the input being tabular in nature. A collection of records with the same fields converts cleanly. A deeply nested document with variable structure does not, and forcing it loses information — which is why checking the output against the source matters more here than in most conversions.
Column ordering is the other decision. Taking the union of all keys preserves everything, at the cost of a wide file with many empty cells. Taking only the keys present in the first record produces a tidier file that silently drops data. The safer default is the union.
- The input should be an array of objects for a clean result.
- The union of all keys prevents silent data loss.
- Nested objects flatten best with dotted column names.
- Arrays are joined into a single cell and cannot be split unambiguously.
Frequently asked questions
What JSON shape does this expect?
An array of objects, where each object is a row and each key is a column. That is the shape most APIs return for a collection. A single object produces one row; a nested object produces a column containing a stringified value, since CSV has no way to represent hierarchy.
What happens to nested objects and arrays?
They are flattened or serialised, depending on the setting. A nested object can be flattened into dotted column names such as `address.city`, which preserves the data in a directly usable form. Arrays are less tractable, because CSV cells cannot hold a variable number of values, so they are usually joined into a single string.
Why are numbers or dates changing when I open the file in a spreadsheet?
Because the spreadsheet is applying its own interpretation. A long numeric identifier is treated as a number and may lose precision or gain scientific notation; a date-like string is converted to a date and reformatted. This is a spreadsheet behaviour, not a conversion artefact, and the usual fix is to import the file explicitly as text for the affected columns.
Related Developer Tools
You might also need
Tools from other categories that people pair with the JSON to CSV: