JSON to CSV converter
Turn a JSON array of records into a CSV file that opens in Excel, Google Sheets or Numbers - or turn a CSV back into JSON.
- 1Select
- 2Configure
- 3Process
- 4Download
Your JSON is processed in your browser and never uploaded.
Accepts JSON, YAML, CSV, XMLPaste text or open a file up to 20 MBResult
Everything happens in your browser - your data is never sent anywhere.
How JSON becomes rows and columns
CSV is a flat table, while JSON can nest objects inside objects. The converter makes one row for each object in the array and one column for every field found in any of them, so records with extra fields simply leave the other rows' cells empty.
Nested objects are flattened into dotted column names: a customer's address.city and address.postcode become two columns. Arrays inside a record, such as a list of tags, are written into a single cell as JSON text, so no information is lost.
Getting the spreadsheet to open correctly
Spreadsheet apps make assumptions about CSV files. These settings avoid the usual surprises.
- Comma or semicolon? Excel in many European countries expects semicolons, because the comma is the decimal separator there. Choose Semicolon if all your data lands in one column.
- Tabs for text with commas Tab-separated files avoid quoting problems when descriptions or addresses contain lots of commas.
- Quotes are handled Cells containing the delimiter, quotes or line breaks are wrapped in quotes, as the CSV standard expects.
- Long numbers Spreadsheets may show long IDs in scientific notation. Format that column as text in your spreadsheet if the digits matter.
CSV back to JSON
Choose CSV to JSON to go the other way: the first row becomes the field names and each following row becomes an object. Dotted headers like address.city are turned back into nested objects.
With Turn numbers and true/false into JSON types ticked, numeric cells become numbers and true or false become booleans; empty cells become null. Untick it to keep every value as text, which is safer for postcodes and phone numbers with leading zeros.
How to convert JSON to CSV
- Paste a JSON array of objects, such as an API response or an export, or open a .json file.
- Check that JSON to CSV is chosen, and pick the delimiter: comma, semicolon or tab.
- Look over the result: one row per object, one column per field.
- Download data.csv and open it in your spreadsheet app.
How your files stay private
The workbench runs entirely in your browser: what you paste or open is read, checked and converted in your device's memory. The page can connect only to this site and to Google Analytics, which counts visits and never receives your data. YAML support is a small file loaded from this site the first time you use it. Nothing is saved: closing the tab clears everything.
Limits
- Files up to 20 MB; very large documents can be slow on older phones
- JSONPath supports the common syntax - children, wildcards, .., indexes, slices and filters with comparisons - but not functions
- Arrays are compared position by position, so an item inserted near the start shows as many changes
- Generated code describes the shape of your sample; check optional and nullable fields against your real data
Questions
What JSON can be converted to CSV?
An array of objects works best - one row per object. A single object becomes one row, and an array of plain values becomes a single column.
Is my data uploaded?
No. The conversion happens in your browser on your own device, so exports with personal or business data stay private.
What happens to nested data?
Nested objects become dotted columns such as address.city. Arrays inside a record are kept as JSON text in one cell.
Which delimiter should I use for Excel?
Comma in most English-speaking countries; semicolon where the comma is used for decimals, as in much of Europe.
Can I convert CSV to JSON as well?
Yes. Choose CSV to JSON, paste or open the CSV, and the first row is used as the field names.
Is my JSON uploaded?
No. Everything happens in your browser on your own device, so API responses, configuration files and customer data never leave it.
Other tools you might need
Compress PDF
Reduce the size of image-heavy PDFs and scanned documents.PDF Maker
Photos and PDFs into one PDF - arrange, number and fit a size limit in one go.Encoder & Decoder
Base64, URL and HTML encoding, hex and Unicode, JWT decoding and file hashes, in one place.Timestamp Converter
Unix time to date and back, time zones, date differences, log timestamps and cron schedules.