# JSON to CSV

> JSON to CSV turns a list of JSON records into a table you can open in Excel or Google Sheets. It runs in your browser, so your files are never uploaded.

Page: https://ishowpdf.com/tools/json-to-csv

## What JSON to CSV does

JSON to CSV turns a list of JSON records into a table you can open in Excel or Google Sheets. It is handy for reading API responses, exporting app data for a report, or sharing data with someone who does not work with code.

Each object becomes a row, and every key found in any record becomes a column, so records with missing fields still line up. Nested objects are flattened into columns like address.city, and lists inside a record are kept as JSON text in one cell. If the JSON is an object holding a list, that list is used. A note shows the number of rows and columns.

## How to use JSON to CSV

1. **Paste the JSON**: Paste a list of records, or an API response that contains one.
2. **Check the table**: The CSV appears as you type, with rows and columns counted.
3. **Download data.csv**: Open the file in your spreadsheet app.

## Questions

**How are nested objects handled?**

They are flattened into dotted column names. For example, an address object holding a city field gives a column called address.city.

**What happens to arrays inside a record?**

They are written as JSON text in a single cell, so nothing is lost.

**Why does it say there are no records?**

The JSON is a single value, such as a number or a piece of text. Give it a list of objects, or an object that contains one.

More free tools: https://ishowpdf.com/tools
