JSON to CSV

Turn a JSON list of objects into a CSV table, with one row per object and one column per key.

Your files stay on your device. Nothing is uploaded.

JSON to CSV

One file · up to 50 MB

Step 1: Add a JSON file

Drag and drop a JSON file here

or

A JSON list of objects. Up to 50 MB.

Step 2: Options and preview

CSV delimiter

Use semicolon if your Excel uses a comma as the decimal separator.

CSV file

Excel on Windows needs it to show accents, Urdu and other non-English letters correctly.

Adds ' before cells that start with = + - or @, so a spreadsheet shows them as text instead of running them.

Step 3: Convert

How to convert JSON to CSV

  1. Add your JSON file

    Click Choose JSON file or drag the file into the box. If it is not valid JSON, the page shows the line and column of the problem.

  2. Check the preview and options

    The preview shows the columns found. Pick the delimiter, and turn on Add BOM for Excel if you will open the file in Excel.

  3. Convert and download

    Click Convert to CSV, then Download CSV.

About this tool

Which JSON can be converted?

A list of objects, such as [{"name": "Ali", "city": "Lahore"}, {"name": "Sara"}]. Each object becomes a row. The columns are all the keys found, in the order they first appear; a missing key gives an empty cell. If the file is an object with exactly one list of objects inside, such as {"data": [...]}, that list is used and the page tells you.

How nested data is written

In the JSONIn the CSV
Nested object{"address": {"city": "Lahore"}} becomes a column named address.city
ListWritten as JSON text in one cell: ["red","blue"]
Empty object{}
nullEmpty cell
true, falsetrue, false
NumbersExactly as written: 1.50 stays 1.50, and 12345678901234567890 keeps every digit

How invalid JSON is reported

The file is checked against the JSON standard (RFC 8259). The message names the line and column of the first problem, for example a missing comma, a comma after the last item, or text in single quotes. JSON Lines files (one object per line) are not supported.

Protection against formulas

JSON from an API or from another person can contain text such as =HYPERLINK(...). Spreadsheets can run a CSV cell that starts with =, +, - or @ as a formula, which can be misused. If other people will open the CSV, turn on Protect against formulas. It adds an apostrophe (') before such cells, so they show as text. Plain negative numbers such as -5 are never changed. It is off by default because it changes your data.

Privacy

This tool runs in your browser, on your own device. Your files and text are not uploaded to our server and we cannot see them. When you close or reload this tab, they are cleared, along with the results.

Frequently asked questions

Why is my JSON file rejected?

Either it is not valid JSON, or it is not a list of objects. The message says which. For invalid JSON it also gives the line and column, so you can fix it in a text editor.

Why are long numbers not rounded?

Numbers are copied from the file character by character. A standard JSON reader in JavaScript keeps only about 15 to 17 significant digits, which would change long IDs.

Can I turn the CSV back into JSON?

Yes. Use CSV to JSON and choose Rebuild nested objects to turn address.city columns and list text back into nested JSON.

Can I open the CSV in Excel?

Yes. Turn on Add BOM for Excel so letters such as é or Urdu text show correctly in Excel on Windows. For an Excel file that keeps leading zeros, convert the CSV with CSV to Excel.

Is there a size limit?

Files up to 50 MB. The work happens on your device, so large files take longer on older phones.