⇢
Runs in your browserNothing is uploadedData, CSV & JSON

JSON to CSV

Convert an array of JSON objects into a CSV table. Nested fields become dot-path columns such as address.city.

Loading tool…
Short answer

JSON to CSV turns an array of JSON objects into a table you can open in Excel or Google Sheets. Nested objects become dot-path columns such as address.city, and every key found in any row gets its own column.

How does JSON become a table?

One row per object

Each object in the array becomes a row. Keys become column headings, gathered from all rows in the order they first appear.

Flattening

A nested value such as {"address": {"city": "Lisbon"}} becomes a column named address.city. Array items get their position, as in tags.0 and tags.1.

Why use JSON to CSV?

  • Open API data in a spreadsheet. Export results from an API or database as JSON and sort, filter and chart them in Excel.
  • Missing keys handled. If some objects lack a field, those cells are simply left empty instead of shifting columns.
  • Nothing uploaded. The conversion runs in your browser, so customer data stays on your machine.

How to use JSON to CSV, step by step

JSON to CSV in PrintxPDF with a file loaded, options on the right and the run button below
JSON to CSV with a file loaded: the steps below follow this screen.
  1. Paste a JSON array into JSON to CSV. A single object also works and becomes one row.
  2. Choose whether to flatten. With flattening off, nested values are kept as JSON text in one cell.
  3. Download the CSV. Check the table preview, then use Download CSV or Copy CSV.

Frequently asked questions

Will Excel read the file correctly?

Yes. Values containing commas, quotes or line breaks are quoted the standard way, so Excel and Google Sheets keep each value in its own cell.

What happens to arrays inside objects?

With flattening on, each item gets a numbered column such as tags.0. With it off, the whole array is written as JSON text in one cell.

Can I convert back?

Yes, with CSV to JSON. Dot-path columns come back as flat keys, not nested objects.

Looking for the long version? The guides cover each of these jobs in depth.