Turn a JSON response into a table you can open
LOCALAn API returns a list of objects and someone asks for a spreadsheet. Copying fields by hand works for ten rows and fails at two hundred. This converter reads the JSON, takes the union of keys as columns, fills missing values with empty cells and writes a CSV with proper quoting. Arrays of arrays and a single object also work, and nested objects are kept as JSON text inside the cell rather than silently dropped. Everything runs in the page, so tokens and customer records do not go to a third-party converter.
How it works
- 01
Paste the JSON
An array of objects is the usual input: each object becomes one row, and the keys become the header. A single object becomes a one-row table. An array of arrays is treated as raw rows, padded to the widest row so every line has the same number of columns.
- 02
Pick the delimiter
Commas are the default, but Excel in a European locale expects semicolons because the comma is the decimal separator. Tabs are handy when pasting into a spreadsheet that splits on tabs. The choice only changes the separator; the quoting rules stay the same for all of them.
- 03
Understand what happens to nested values
If a value is an object or an array, it is written as compact JSON inside the cell, with quotes doubled where needed. That keeps the information instead of dropping it, but the cell is harder to read. If you need separate columns, flatten the JSON first and convert again.
- 04
Check the output, then download
Look at a row that contains a comma, a quote or a line break. After conversion the cell should be wrapped in quotes, with inner quotes doubled. Download the .csv and open it in your spreadsheet; if accents look wrong, import it as UTF-8 instead of double-clicking the file.
When to use it
Sending API data to a colleague
A developer pulls 400 orders from an endpoint and the finance team wants them in a spreadsheet. Convert the JSON, download the CSV, and the column names come from the object keys rather than from a manual mapping.
Auditing a webhook payload
A webhook delivers a nested event with a customer object, a list of items and a total. Converting to CSV puts each event on one row and keeps the nested parts as JSON text, which is enough to sort by date and spot duplicates.
Building test fixtures
A QA engineer has a JSON fixture and needs a table of expected values. The converter turns it into CSV that opens in any spreadsheet, making it easy to add a column of expected results next to the source data.
Pivoting exported analytics
An analytics export is JSON because the dashboard consumes it that way. For a one-off report, convert it to CSV, open it in a spreadsheet and build the pivot table without writing a script.
Questions
What JSON shapes are supported?
An array of objects, an array of arrays, a single object and an array of plain values. An array of objects uses the union of all keys, so a field missing from some objects becomes an empty cell rather than a shifted row.
How are nested objects and arrays handled?
They are serialized as compact JSON inside one cell. That preserves the data but does not create extra columns, because a nested list has no fixed number of columns. Flatten the structure first if each nested field needs its own column.
Why are some cells wrapped in quotes?
CSV requires quoting when a value contains the delimiter, a double quote or a line break. Inner quotes are doubled. This is the standard escaping rule; if you remove the quotes, the row will split into the wrong number of columns when the file is opened.
Does the header row always come from the keys?
For objects, yes: the first row is the list of keys in the order they first appear. Turning the header option off removes that row, which is useful when the target system adds its own columns. For an array of arrays there is no key list, so no header is generated.
Are dates and numbers converted to native types?
No. Values are written as text exactly as they appear in the JSON. A date stays a string, a long ID stays a string, and a leading zero survives. That avoids Excel silently turning 01234 into 1234 or a timestamp into a date in the wrong timezone.
Why does Excel show strange characters instead of accents?
Excel on Windows sometimes assumes the system codepage when a CSV is opened by double-click, even though the file is UTF-8. Use Data, then From Text/CSV, and choose UTF-8. The file itself is correct; the import step is what needs the encoding hint.
Is there a size limit?
No fixed limit, but the whole document and the generated CSV are held in memory. On a phone, a JSON file above roughly 20 MB can make the tab sluggish. For very large exports, split the array or process it with a script.
Is my JSON uploaded?
No. Parsing and CSV generation happen in the page with local JavaScript. There is no request carrying the data, no storage and no history. That matters when the response contains tokens or customer details that should not be sent to a random converter.