JSON to CSV Converter
Turn a JSON array into a spreadsheet-ready CSV. Nested objects flatten into dotted columns, values are escaped per RFC 4180, and the result downloads as a file your spreadsheet opens directly.
Runs entirely in your browser — your JSON is never uploaded.
Free conversion covers up to 1,000,000 characters per document — what Pro adds. The file you open is read locally by your browser; nothing is uploaded.
A worked example
Nested objects become dotted column names and the comma inside a quoted value stays inside its cell. That is the part a text replacement gets wrong.
Input
[{"id":1,"user":{"name":"A, B"}},{"id":2,"user":{"name":"C"}}]Output
id,user.name
1,"A, B"
2,CThe header is derived from the first record. A later record with an extra key adds a column and leaves the earlier row empty there.
How to convert JSON to CSV
- Paste a JSON array into the input panel, open a .json file, or press “Load example” for an orders payload with nested objects.
- Choose your options The delimiter (comma, semicolon or tab), whether nested objects flatten into dotted columns, and whether a header row is written.
- Press Convert to CSV The document is parsed first, so invalid JSON fails with the same line-and-column report as the validator instead of producing a broken file.
- Check the preview, then download The first rows render as plain text above the status line. Download writes a UTF-8 CSV with CRLF line endings, ready to open in Excel, Numbers or Google Sheets.
What counts as a row and a column
CSV is a rectangular format: every row must have the same columns. JSON is not, so a converter has to decide what the grid is. This tool uses the simplest rule that keeps data lossless:
- Each array element is one row. A single object is wrapped in a one-element array, so both shapes convert.
- Columns are the union of all keys across rows, in first-appearance order. A key that only some rows have leaves an empty cell in the others — no row is padded or dropped.
- Nested objects become dotted columns when flattening is on:
customer.email. Turn it off to keep each row as one JSON string in a singlejsoncolumn. - Arrays inside rows stay JSON in one cell, because expanding
items.0.sku…items.n.skuinto columns cannot have a stable shape across heterogeneous rows.
Escaping: what Excel actually parses
The output follows RFC 4180, the closest thing CSV has to a specification. In practice three rules do all the work:
- Lines end with CRLF — what Excel expects; a bare LF is tolerated but can confuse older parsers.
- Fields containing the delimiter, a double quote, or a line break are wrapped in quotes, and any quote inside is doubled:
say "hi"becomes"say ""hi""". - null is written as an empty cell, so a mostly-numeric column stays numeric after the round-trip into a spreadsheet.
A note on locales: Excel in much of Europe expects semicolon-separated files because the comma is the decimal separator there. If your spreadsheet shows everything in one column, convert again with the semicolon delimiter — that is a locale setting, not a broken file.
The failure modes that do not announce themselves — 19-digit IDs Excel rounds, ZIP codes that lose their leading zero, nested objects flattened past recognition — are covered in Converting JSON to CSV: what breaks on the way. Going the other direction, CSV to JSON reads the same quoting rules back in.
DevTinyTools Pro
The free converter handles the payloads most people paste by hand. Pro is for the workflows that outgrow it — exporting a folder of API dumps, or a document too large for a comfortable tab session:
- Batch conversion — drop up to 25 JSON files and download them all
- 10,000,000-character documents, roughly 10 MB
- Excel workbook (.xlsx) export with one sheet per file
- Advanced flattening: array index columns, custom path separators
- Priority fixes — conversion bugs move to the front of the queue
Pro is $29 one-time — a lifetime licence, sold through Lemon Squeezy as merchant of record, so VAT and sales tax are handled for you. Pro is a licence key — there is still no account. Buy DevTinyTools Pro, then activate it below and the higher limits unlock in this browser.