JSON to CSV converter
Paste JSON from an API or an export: each object becomes a row, each key a column. Nested objects are flattened (address.city), and if the array sits inside an object you choose which one to convert. Free, nothing is sent.
Free, no sign-up, no limit Runs in your browser: your text and files are never sent or saved.
JSON to CSV
Drop a .json, .jsonl or .csv file here, or paste the text below
How to use it
- Paste your JSON or open a .json file: an array of objects, an object that contains one, or JSON Lines (one object per line).
- If several arrays are found, choose the one to convert.
- Choose how arrays inside a record are written, the separator, and keep “Neutralise formulas” ticked for data from a third party.
- Check the preview, then copy the CSV or download a file ready for Excel.
Example
Input
[
{"name": "Ada", "address": {"city": "London"}, "tags": ["math", "code"]},
{"name": "Alan", "address": {"city": "Wilmslow"}, "email": "alan@example.com"}
]Output
name,address.city,tags,email Ada,London,math; code, Alan,Wilmslow,,alan@example.com
Good to know
- Columns are the union of all keys, in order of appearance; a missing key leaves an empty cell.
- Arrays of simple values are joined with “; ”; arrays of objects are kept as JSON text in a single cell.
- Numbers are copied exactly as written in the JSON, so long IDs are never rounded.
- Conversion runs in your browser: nothing is sent.
Frequently asked questions
How do I convert JSON to CSV?
Paste the JSON: an array of objects, or an object that contains one. Each object becomes a row and each key a column, in order of appearance. If several arrays are found, pick the one to convert, then copy the CSV or download data.csv.
How do I convert JSON to CSV in Excel?
Excel can import JSON with Power Query: Data > Get Data > From File > From JSON, then expand the records into columns. Converting here is quicker for a one-off: download the CSV, which opens in Excel with accents intact thanks to its UTF-8 mark.
How do I convert JSON to CSV in Python?
With pandas: pd.json_normalize(data).to_csv('out.csv', index=False), where data is the loaded JSON list; json_normalize also flattens nested keys with dots. This page does the same without code and shows a preview of the columns.
How are nested objects and arrays handled?
Nested objects are flattened into dotted columns: {"address": {"city": "London"}} gives an address.city column. Arrays of simple values are joined with “; ”, or kept as JSON text if you prefer; arrays of objects stay as JSON text in one cell.
Can I convert a .json file?
Yes: drop the .json file on the page or choose it with the button; it is read by your browser and never uploaded. JSON Lines files (.jsonl, one object per line) work too. Numbers are copied exactly as written, so long IDs are never rounded, and an error points to the line and column of any syntax mistake.
Can I convert CSV back to JSON?
Yes: switch the conversion to CSV → JSON. Each row becomes an object, dotted columns such as address.city can be rebuilt into nested objects, and numbers, true, false and null can be converted to real JSON values.