← All tools

JSON to CSV converter

Turn JSON or JSON Lines into a CSV or Excel file: nested objects become columns like customer.name, lists are joined or spread over columns, and the list inside an API response is found for you. Free and private — nothing leaves your browser.

Enjoying JSON to CSV?Your review and ideas shape what we build next.

Review JSON to CSV

Please don't include file contents or passwords.

About the JSON to CSV

Turn JSON into a table you can open in Excel, Google Sheets or any database tool. Paste JSON or open a .json or .jsonl file, and the converter finds the list of records inside it, even when it is buried in an API response such as {"data": {"orders": […]}}. Nested objects become columns named like customer.city, lists inside a record are joined, spread over numbered columns or kept as JSON, and every key found in any record becomes a column, not only the keys of the first one. You can download a CSV with the UTF-8 marker Excel needs, a TSV, or a real .xlsx file, and nothing leaves your browser.

How to use it

  1. Paste JSON into the box, open a .json or .jsonl file, or click Sample API response.
  2. Check the row and column count. If the JSON holds several lists, the tool tells you which one it used, and you can type another path such as data.customers.
  3. Choose how nested objects and lists inside a record are written.
  4. Look over the table preview; long values are shortened there but complete in the download.
  5. Download a CSV or an Excel file, or click Copy and paste the table straight into a spreadsheet.

Tip: Copy pastes the table with tabs between cells, so pasting into Excel or Google Sheets fills the cells directly, with no import dialog. It's the quickest route for a few hundred rows.

How JSON becomes rows and columns

A CSV is a flat grid, while JSON can nest objects inside objects. The converter first looks for the records: if your JSON is a list, each item is a row; if it is an object, it searches it for the first list of objects (for example results, items, data.orders) and uses that. A single object becomes one row. JSON Lines files, with one object per line, are read line by line.

Columns are collected from every record in order of appearance, so a key that only appears in the 500th record still gets its column and the other rows are left empty there. This is a common bug in simpler converters, which only read the keys of the first record and silently drop the rest.

Nested objects and lists

Nested objects as columns
{"customer": {"name": "Ali", "city": "Lahore"}} becomes two columns, customer.name and customer.city. Untick it to keep the whole object as JSON text in one customer column.
Lists joined
["pen", "ink"] becomes pen; ink in one cell. Best for tags, categories and other short lists you mainly read.
One column each
The list is spread over items.1, items.2 and so on. Use it when every record has a few items you want to sort or filter on.
As JSON
The list is kept as ["pen","ink"] in the cell, so it can be turned back into the same JSON later without loss.

Opening the CSV in Excel correctly

Excel guesses the encoding of a CSV file, and without a hint it often shows accents and non-Latin letters (é, ü, Arabic, Urdu, Chinese) as garbled characters. “Excel-friendly (UTF-8 BOM)” adds an invisible marker at the start of the file that tells Excel it is UTF-8. Leave it on for Excel and untick it for programs that don't expect it, such as some older command-line tools.

In countries where the comma is the decimal separator, Excel expects semicolons between columns. Choose Semicolon in Separator, or download the Excel file instead, which opens correctly everywhere.

“Protect against formulas” puts an apostrophe in front of cells that start with =, +, - or @, so a value from an untrusted source can't run as a formula when the file is opened. Untick it if your data has negative numbers you need to keep as numbers.

Reading error messages

If the JSON isn't valid, the converter shows the line and column where reading stopped and the text near it, with a hint for the usual causes: a trailing comma after the last item, single quotes instead of double quotes, a missing comma between two items, or comments, which JSON doesn't allow. Fix that spot and the table appears at once.

Tips and tricks

Use the path box

An API response with both users and orders lists? Type data.orders to choose which one becomes the table.

Excel for big numbers

Long IDs may be shown as 1.23E+15 when a CSV opens in Excel. The .xlsx download avoids most of these surprises.

JSON Lines

Log files and exports from BigQuery or MongoDB are often one object per line; open them directly.

Check the empties

Many empty cells in one column usually means that key only exists in a few records, not that data is missing.

Questions

How do I convert JSON to CSV?

Paste or open the JSON and click Download. Each object in the list becomes a row and each key a column; nested keys become columns like customer.name.

How do I convert JSON to Excel?

Click the Excel button to download an .xlsx file with your data on a sheet called Data, ready to open in Excel, Google Sheets or Numbers.

Why do I see [object Object] in other converters?

They write nested objects as text without flattening them. Here nested objects become their own columns, or JSON text if you prefer.

Can it convert a JSON object that isn't a list?

Yes. It finds the first list of records inside the object; if there is none, the object becomes a single row.

Does it handle large JSON files?

Yes, up to 100 MB. The preview shows the first 100 rows; the download has all of them.

Is my file uploaded?

No. The file is read and converted in your browser, on your device; nothing is sent to a server or stored, so customer lists, payroll and other private data stay private.

Related tools

Updated