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.
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
Step 3: Convert
Starting…
To change the options, edit them above and convert again.
How to convert JSON to CSV
-
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.
-
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.
-
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 JSON | In the CSV |
|---|---|
| Nested object | {"address": {"city": "Lahore"}} becomes a column named address.city |
| List | Written as JSON text in one cell: ["red","blue"] |
| Empty object | {} |
| null | Empty cell |
| true, false | true, false |
| Numbers | Exactly 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.
Related tools
- CSV › JSON CSV to JSON Turn a CSV table into a JSON array of objects.
- CSV › XLSX CSV to Excel Convert a CSV file to an Excel workbook and keep leading zeros.
- XLSX › CSV Excel to CSV Save one sheet of an Excel workbook as a CSV file.
- Aa › AA Case converter Change text to upper, lower, title or sentence case.
- Words Word counter Count words, characters and sentences as you type.
- Characters Character counter Count characters with and without spaces.
- QR QR code generator Make a static QR code for a link, text, Wi-Fi, email or phone.
- PDF + PDF Merge PDF Combine several PDF files into one PDF.