# JSON to CSV

> Flatten JSON into a CSV you can open in Excel. Runs entirely in your browser — nothing you paste is sent anywhere.

Source: https://toffeekit.com/tools/json-to-csv

**Category:** [Data](https://toffeekit.com/category/data) · **Price:** Free · **Runs:** in your browser, nothing is uploaded

Open the tool: https://toffeekit.com/tools/json-to-csv

**Also useful for:** json, csv, excel, export

## How it works

1. Paste a JSON array of objects into the JSON box, or click Sample.
2. Choose a Delimiter: comma, semicolon, tab or pipe.
3. Leave Flatten nested on to turn objects into dotted columns such as address.city.
4. Click Copy or Save to download data.csv, or data.tsv for tab-separated output.

## FAQ

### How do I convert JSON to CSV?

Paste an array of objects. Each object becomes a row and the keys become the column headings.

### How do I open the CSV in Excel?

Save the file and open it in Excel. If your region uses a comma as the decimal separator and the columns do not split, switch the Delimiter to Semicolon.

### What happens to nested objects?

With Flatten nested on, each inner key gets its own column named with dots, for example address.city. Turn it off to keep the object as is.

### What happens to arrays inside the JSON?

An array in a field is written into one cell as JSON text, such as ["navy","cobol"], so no data is lost. The CSV to JSON tool can turn it back into an array.

### Can I convert a single JSON object?

Yes. A lone object is treated as an array with one item and gives a CSV with one row.

### Is JSON to CSV free and private?

Yes. It's free with no sign-up or limits, and it runs entirely in your browser, so your files are processed on your device and never uploaded. It works on phones and computers alike.

## Privacy

JSON to CSV runs entirely in your browser. Your files and text are processed on your device and are never uploaded.

## Related tools

- [CSV to JSON](https://toffeekit.com/tools/csv-to-json) — Turn CSV rows into JSON objects.
- [XML ⇄ JSON](https://toffeekit.com/tools/xml-json-converter) — Convert XML to JSON and back.
- [CSV Cleaner](https://toffeekit.com/tools/csv-cleaner) — Trim cells, drop empty rows, remove duplicates.
- [Delimiter Converter](https://toffeekit.com/tools/csv-delimiter-converter) — Switch between comma, semicolon, tab and pipe.
- [CSV Viewer](https://toffeekit.com/tools/csv-viewer) — Open a CSV as a sortable, searchable table.
- [JSON Viewer](https://toffeekit.com/tools/json-viewer) — Explore JSON as a collapsible tree.

