01 / Records
The list is found
A top-level list of objects becomes the rows. If the JSON wraps it, as in {"data": [...]}, that list is used.
Free tool
Paste JSON or JSON Lines from an API, an export or a log, or drop the file, and get a CSV or a real Excel file. Nested objects become their own columns, lists are joined or get a row per item, and when the JSON holds several lists you pick which one. Click a column to leave it out. In the Excel file, codes like 00123 stay as text. Paste a CSV instead and it becomes JSON.
Need a custom tool, app or website? Contact us →This file is big, so it is kept out of the text box to keep the page quick. The result is on the right.
The CSV or JSON shows here.
Paste on the left, drop a file, or press Example.
Columns
Click one to leave it out.Your data is converted in your browser. It is never uploaded or saved. Only your settings are remembered on this device.
How it is read
01 / Records
A top-level list of objects becomes the rows. If the JSON wraps it, as in {"data": [...]}, that list is used.
02 / Columns
Each key seen in any record becomes a column, in the order first seen. A record without it gets an empty cell.
03 / CSV rules
Cells with commas, quotes or line breaks are quoted the standard way, so spreadsheets read them as one cell.
Guide
A JSON to CSV converter turns a list of records, like an API response or a database export, into rows and columns that a spreadsheet can open. Each object becomes a row and each key becomes a column. This one finds the list even when it sits inside a wrapper, turns nested objects into their own columns, puts lists into a single cell, and shows a table of the result before you download it.
Here are two customer records, each with a nested address and a list of tags:
[{"id": 1, "name": "Ava", "address": {"city": "Leeds", "country": "UK"}, "tags": ["new", "trial"]}, {"id": 2, "name": "Ben", "address": {"city": "Austin", "country": "US"}, "tags": ["paid"]}]
With the default settings you get five columns, because the address object is split into two:
| id | name | address.city | address.country | tags |
|---|---|---|---|---|
| 1 | Ava | Leeds | UK | new, trial |
| 2 | Ben | Austin | US | paid |
In the CSV text, Ava's tags are written as "new, trial" with quotes around them. That is how CSV keeps a comma inside one cell instead of starting a new column. Quotes inside a value are doubled, and cells with line breaks are quoted too, so the file opens cleanly.
address.city. Off, the whole object is written into one cell as JSON text. Turn it off when the nested part has many keys you do not need.orders.sku."02134" keeps its zero and a 19 digit ID is not rounded. The header row gets a filter.CSV needs a list of rows, but JSON from an API often wraps the list, as in {"status": "ok", "data": [...]}. The tool takes a top-level list as it is. Inside an object, it finds every list of objects, up to a few levels deep, and uses the longest one. When there is more than one, Rows from lets you pick another. If there is no list at all, the single object becomes one row. Records do not need the same keys: every key seen in any record becomes a column, in the order it first appears, and records without it get an empty cell.
JSON Lines, also called NDJSON, has one JSON object on each line, as many logs and exports do. It is read as a list of records, with no need to add brackets or commas.
Files of many megabytes convert in a moment. A file over 3 MB is kept out of the input box to keep the page quick, and the result is drawn a screen at a time. The table shows the first 100 rows, and the download holds everything. Files in older character sets, such as Windows-1252, are read correctly, and the status line says so.
Going the other way? The box also reads CSV, but the CSV to JSON converter is built for that job. To turn a CSV into a real spreadsheet file, use CSV to Excel.
Questions
Excel often guesses an old encoding for CSV files. The Excel-safe option adds a small UTF-8 mark at the start of the file, so names like José and Zoë come through intact.
Where a comma is the decimal mark, as in much of Europe, Excel expects semicolons between cells. Pick Semicolon as the separator and download again.
Yes. Files of many megabytes convert in a moment. The table shows the first 100 rows to keep the page quick; the download holds everything.
Yes. Press Download Excel (.xlsx). Numbers stay numbers, codes with leading zeros and long IDs stay text, and the header row gets a filter.
Yes. A file with one JSON object on each line is read as a list of records.
Cells that are plain numbers become numbers, true and false become true and false, and empty cells become null. Untick the option to keep every value as text, which is safer for codes like 007 or long ID numbers.
No. Everything happens in this tab, so exports with customer data stay on your computer.
Yes. In Google Sheets use File, then Import, and upload the file. Numbers opens a .csv file directly. Both read the comma version fine.
Every level of nested objects is flattened, so a value three levels down gets a column like user.address.city. Lists of objects stay as JSON text in one cell, or get a row per item if you pick A row for each item.
Not every record has every key. A key that appears in any record becomes a column, and the records that lack it get an empty cell there.
Files up to 200 MB. How quickly a big one converts depends on your computer.