JSON to CSV

Paste a JSON array of records and get CSV, one row per record. Nested objects become columns such as address.city, and the conversion runs on this page.

How it works

Each record becomes one row. Nested objects are spread into dotted columns, so {"address": {"city": "Pune"}} gives a column address.city.

The columns are every key found in any record, in the order they first appear. A key that only the tenth record has still gets its column, and the other rows leave that cell empty.

Arrays stay whole, written as JSON text in one cell, so the number of columns does not depend on the longest list. Cells are quoted where CSV needs it, and line breaks are kept inside quotes.

How to use it

  1. 1 Paste a JSON array of objects, such as an API response. One object on its own works too.
  2. 2 Pick the separator: comma, semicolon for spreadsheets in many European languages, or tab.
  3. 3 Switch on the Excel option if the file will be opened in Excel on Windows and has accented letters.
  4. 4 Read the note for warnings, then press Copy result or Download.

Good to know

  • A list of plain values, such as ["a", "b"], becomes one column called value.
  • If two keys flatten to the same column, such as a nested a.b and a key called "a.b", the first is kept and the note says so.
  • Cells that start with =, +, - or @ are counted in the note, because spreadsheets may run them as formulas. Check them before you open the file.

Browser support

  • Chrome 94 and later
  • Firefox 93 and later
  • Safari 16.4 and later
  • Edge 94 and later

These are the oldest versions with everything the tool uses. They are worked out from the tool itself, so they change when it does.

Version numbers checked on 2026-09-04.

Turning nested JSON into a table people can use

APIs speak JSON, and most people who need the data work in spreadsheets. Converting one to the other sounds simple, but JSON is a tree and a CSV file is a flat grid. Every converter has to decide where each nested value goes. The choices it makes decide whether the result can be sorted and filtered, or whether it is a grid of unreadable cells.

This tool puts each record on its own row and spreads nested objects into columns named with dots. A record with an address object gives the columns address.street, address.city and address.zip. Those are real columns, so you can sort by city or filter by zip code in Excel or Google Sheets. The columns are the union of every record's keys, in the order they first appear, so a key that only some records have still gets a column. Records without it leave the cell empty, which keeps every row aligned.

Arrays are treated differently on purpose. A record with tags ["red", "blue"] keeps the list in one cell as JSON text. The other common choice, columns tags[0], tags[1], tags[2], makes the width of the file depend on the record with the longest list, and puts the same kind of value in many columns. You cannot filter that sensibly. If you need one row per tag, it is better to reshape the data on purpose than to have a converter guess.

The note under the result reports three problems that converters usually hide. If two keys would produce the same column name, the first is kept and the clash is named. If a cell starts with =, +, - or @, spreadsheets may read it as a formula, which is a known way to attack people who open exported files; the tool counts those cells so you can check them. And if a whole number is larger than 9007199254740991, it may have lost digits when the JSON was read, because a JavaScript number cannot hold it exactly. Quote such IDs in the source and they survive as text.

Choose comma, semicolon or tab to match the program that will read the file. Many European versions of Excel expect semicolons, because the comma is their decimal mark. The Excel option adds a byte order mark, which tells Excel on Windows that the file is UTF-8, so names with accents are not garbled. Everything runs in your browser on up to 5 MB of JSON, so customer data from an API export never leaves your device.

Frequently asked questions

How are nested objects handled?

They are spread into columns named with dots: address.city, address.zip. Deeper levels work the same way, such as user.address.city.

What happens to arrays inside a record?

They stay in one cell as JSON text, such as ["red","blue"]. Spreading them over tags[0], tags[1] and so on would make the column count depend on the longest list, which nobody can sort or filter on.

Why are my long IDs wrong?

Whole numbers past 9007199254740991 cannot be held exactly by a JavaScript number, so they may lose digits when the JSON is read. The note counts them. Put such IDs in quotes in the JSON and they are kept as text.

Is my data uploaded?

No. The conversion runs in this page, on up to 5 MB of JSON at a time.

Related tools

Your files are processed on your device and are not uploaded. You can verify this in your browser’s developer tools under the Network tab.