JSON to CSV Converter

Convert JSON to CSV online. Paste an array of JSON objects and get a CSV ready for Excel, Google Sheets or a database, with nested objects flattened into columns.

JSON input

1

Result

Waiting for input

About this tool

CSV is a flat table format, so nested JSON is flattened: {"address":{"city":"Jaipur"}} becomes a column named address.city. Values containing commas, quotes or line breaks are quoted following standard CSV rules.

How JSON is converted to CSV

CSV is a flat table, so each object in your array becomes a row and each key becomes a column. Nested objects are flattened using dots, so address.city becomes its own column.

[{"id":1,"address":{"city":"Jaipur"}}]

id,address.city
1,Jaipur

Open the CSV in Excel or Google Sheets

Download the result and open it in Excel with Data, then From Text/CSV, or import it in Google Sheets with File, then Import. Excel may reformat very long numbers or drop leading zeros, so import those columns as text if it matters.

Things to know

Arrays inside a row are kept as JSON text in a single cell. If objects have different keys, the CSV includes every key and leaves missing values empty. Values with commas, quotes or line breaks are quoted automatically.

How to use it

  1. Paste a JSON array of objects, such as a list of users or orders.
  2. Columns are built from every key found in the data.
  3. Copy the CSV or download it and open it in a spreadsheet.

Frequently asked questions

How are nested objects handled?

They are flattened with dots. Arrays inside a row are kept as a JSON string in a single cell.

What if objects have different keys?

The CSV includes every key found. Rows missing a key get an empty cell.

Does it handle commas and quotes?

Yes, they are escaped automatically.

More JSON tools

JSON Checker – Validate JSON OnlinePaste your JSON into this free JSON checker to validate it instantly. Any error is pinpointed by line and column, so you can fix it in seconds.Online JSON Editor with Find and ReplaceEdit JSON online with live validation, find and replace (including regex), key sorting and undo. Everything runs in your browser.JSON Formatter and BeautifierFormat and pretty print JSON online. Turn minified or messy JSON into readable, indented, syntax-highlighted text with 2 spaces, 4 spaces or tabs.JSON Minifier – Compress JSON OnlineMinify JSON online by removing every unnecessary space and line break. See the size before and after, then copy or download the result.CSV to JSON ConverterConvert CSV to JSON online. The first row becomes the keys, and each following row becomes a JSON object. Dotted headers are rebuilt into nested objects.JSON to YAML ConverterConvert JSON to YAML online for Kubernetes manifests, Docker Compose files, CI pipelines and other configuration. Paste valid JSON and copy the YAML.YAML to JSON ConverterConvert YAML to JSON online. Paste YAML from a config file and get valid, formatted JSON, with syntax errors explained.JSON Diff Checker – Compare JSON OnlineCompare two JSON documents online and see exactly what was added, removed or changed, listed by path. Click any difference to jump to it.JSON Tree Viewer – Explore JSON VisuallyView JSON as a collapsible tree online. Expand only the branches you need instead of scrolling through long, deeply nested text.

Advanced JSON tools

Need more than the basics? Our developer tools go further.