JSON to CSV
Convert JSON arrays to CSV online with automatic column detection, nested object flattening and custom delimiters. Open the result in Excel or Sheets.
Runs in your browser · Nothing uploadedFree · No sign-up
Something not working, or missing a feature? Send feedback
About the JSON to CSV
The JSON to CSV converter turns an array of JSON objects into a spreadsheet-ready table. Columns are detected from all objects, and nested objects can be flattened into dotted column names.
Conversion happens in your browser, so your files and records stay private.
How to use the JSON to CSV
- Paste a JSON array of objects or open a file.
- Choose the delimiter and whether to flatten nested objects.
- Download the CSV or copy it into Excel or Google Sheets.
Example
Input
[
{ "id": 1, "name": "Ada", "address": { "city": "London" }, "tags": ["admin"] },
{ "id": 2, "name": "Grace, R.", "address": { "city": "New York" }, "active": true }
]Result
id,name,address.city,tags,active 1,Ada,London,"[""admin""]", 2,"Grace, R.",New York,,true
Columns come from every object, so active appears even though only the second user has it. address.city is flattened, the array is kept as JSON text, and the value containing a comma is quoted.
Common mistakes
- A single object instead of an array. CSV is a list of rows, so the input should be an array of objects. If your data is wrapped, as in { "data": [ … ] }, paste only the array.
- Leading zeros and long numbers in Excel. Excel turns 00123 into 123 and long IDs into 1.23E+15 when it opens a CSV. Import the file with the column type set to Text to keep them.
- Accented characters in Excel. Older Excel versions assume a legacy encoding for CSV. If é shows as é, import the file through Data → From Text/CSV and choose UTF-8.
Works well with the JSON to CSV
- CSV to JSON: convert the CSV back to JSON.
- JSON Formatter: check and format the JSON before converting.
- Large CSV Generator: generate large CSV files for import testing.
Frequently asked questions
What happens to nested objects?
With flattening on, { "user": { "name": "Ada" } } becomes a column called user.name. Arrays are written as JSON text in a single cell.
Why does Excel show everything in one column?
Some regional settings expect semicolons. Choose ";" as the delimiter, or use the import wizard.
How are missing fields written?
As empty cells. Every row has the same columns, in the order they first appear in the data.
Is my data uploaded?
No. The conversion runs in your browser, so customer or production data stays on your device.
Guides and tutorials
Related tools
CSV to JSON
Convert CSV to a JSON array online with header detection, type inference and delimiter auto-detection. Turn spreadsheet exports into data for APIs and code.
JSON to XML
Convert JSON to well-formed XML online with a configurable root element and attribute support. Validate the input and download the XML file.
XML to JSON
Convert XML to JSON online, keeping attributes and turning repeated elements into arrays. Malformed XML is reported with its location.
JSON to YAML
Convert JSON to clean, human-readable YAML online. Turn API responses and package files into config for Kubernetes, Docker Compose or CI pipelines.
YAML to JSON
Convert YAML documents to formatted JSON online with syntax validation. Errors are reported by line, so broken indentation is quick to find and fix.
JSON to PHP Array
Convert JSON to a PHP array literal online, using short [] or long array() syntax. Paste API responses straight into PHP code, tests and config files.