JSON to CSV Converter
Convert JSON to CSV or CSV back to JSON. Nested objects are flattened into dotted columns (like address.city), the table is previewed before you download, and CSV downloads are Excel-ready. Runs entirely in your browser.
The converted output will appear here.
How to use this
For JSON → CSV, paste an array of objects — the shape most APIs return and most exports produce. Every key becomes a column; if some objects have keys others lack, those cells are simply left empty. Download the result and it opens cleanly in Excel, Google Sheets or LibreOffice. For the way back, switch to CSV → JSON: the first row becomes the property names, and numbers and true/false values are converted to real JSON types unless you untick the option.
How nested JSON is handled
CSV is flat, so nested objects need a decision. This converter flattens them with dotted keys — an object like { "address": { "city": "Lahore" } } becomes a column named address.city — so no data is silently dropped. Arrays inside an object are kept as compact JSON text in their cell, which preserves them exactly and can be parsed back later.
Frequently asked questions
How do I convert JSON to a CSV file?
Paste your JSON (an array of objects works best) and the CSV appears instantly, with a table preview. Download it and it opens in Excel, Google Sheets or LibreOffice.
How do I convert CSV back to JSON?
Switch to the CSV → JSON tab and paste your CSV. The first row becomes the property names. Numbers and true/false values are converted to real JSON types unless you untick that option.
What happens to nested objects, like an address inside a user?
They are flattened with dotted column names — address.city, address.zip — so nothing is dropped. Arrays inside an object are kept as compact JSON text in their cell.
Why does my CSV open with strange characters in Excel?
That is an encoding issue: Excel needs a marker (a byte order mark) to read UTF-8 correctly. Downloads from this tool include it, so names with accents or non-Latin characters open properly.
Can I convert JSON to Excel directly?
Convert to CSV here and open the file in Excel — CSV is Excel's native import format. Save it from Excel as .xlsx afterwards if you need that format.