JSON to CSV
DevNo. 42 / 93
Turn a JSON array into a CSV you can open in Excel or Sheets, with the right quoting and an optional BOM. The data never leaves your browser.
the format developers love talking to the format accountants love.
work surface
Math, not advice — results are indicative.Read the disclaimer.
most-used utilities
An API response
Copy the array from the response, paste it, download the CSV and open it in the spreadsheet.
A list of users
Objects with different fields get a union header, so nothing is dropped.
A quick export
No account, no upload, no "sign in to download" after the preview.
pro tips
In Spain and most of Europe, Excel expects a semicolon between columns. Switch the delimiter before downloading.
If the first row looks like a header but is not, your JSON was an array of arrays. Wrap each row in an object to get named columns.
Dates arrive as strings. Convert them to a sortable format (YYYY-MM-DD) before importing, or Excel will guess.
what it does
Paste a JSON array and get a CSV with one row per object and one column per key. Column order follows the first appearance of each key, and objects with different fields are merged into a single header instead of losing data.
It also accepts an array of arrays (each inner array is a row) and an object whose values are arrays, which is how a lot of APIs return tabular data. Nested objects and arrays are written as JSON inside the cell, because flattening them automatically is how columns like "user.address.city" end up in a spreadsheet nobody can read.
Quoting follows the rules: any cell containing the delimiter, a quote or a line break is wrapped in double quotes, and inner quotes are doubled. That is the part people get wrong when they concatenate with commas by hand.
The BOM option adds the byte-order mark that makes Excel read UTF-8 correctly. Leave it on for Excel, turn it off for anything else — some parsers treat it as part of the first header.
quick answers
Is my JSON uploaded anywhere?
No. It is parsed and converted in the browser tab. Nothing is sent to a server, which matters when the JSON contains customer data or tokens.
What if the objects have different keys?
The header is the union of every key found, and missing values are left empty. That is why the column count can be larger than any single object.
Why does Excel show the accents wrong?
Excel assumes the system encoding unless the file starts with a BOM. Keep the Excel-friendly option on, and use the semicolon delimiter if your regional settings expect it.
Can I convert CSV back to JSON?
Yes, with the CSV to JSON converter. The two tools are inverses, and the output of one opens in the other.