Skip to content
Novetool

Browser tool

JSON to CSV

Turn JSON records into a CSV table. Object keys become columns; arrays keep their order. Conversion happens in this tab.

Paste JSON, then choose Convert.

CSV output

No output yet

Accepted shapes

An array of objects becomes rows with keys as columns. An array of arrays is written as rows without a header. A single object becomes one row. Missing values are written as empty cells.

Nested values

CSV has no nesting, so an object or array inside a field is written as compact JSON in that cell. Fields containing a delimiter, quote, or line break are quoted, and quotes are doubled.

A worked example

This input:

[{"name":"Ada","plan":"pro","seats":1},
 {"name":"Grace","plan":"free"}]

becomes:

name,plan,seats
Ada,pro,1
Grace,free,

Grace has no seats key, so the last cell is empty rather than missing. That keeps every row the same width.

Columns come from every row

The header is the union of all keys, in the order they are first seen. If the tenth record introduces a new key, that column is added and earlier rows get an empty cell for it. The header checkbox only applies to arrays of objects; an array of arrays is always written without a header, and shorter rows are padded to the widest row.

What fails, and what to check

Invalid JSON is reported with a line and column. An empty array has nothing to convert, and mixing objects with arrays is rejected instead of producing a ragged table. A top-level string or number is not a table either. Numbers are parsed as JavaScript numbers, so leading zeros disappear and very large integers can lose precision; keep identifiers as strings in the source JSON when that matters.

Excel, delimiters, and formula-looking cells

Comma is the default. Semicolon is the safer choice for locales where the comma is the decimal separator, and tab is useful when pasting straight into a spreadsheet. The downloaded file is UTF-8 without a byte-order mark: Excel on Windows may misread accented characters if you double-click it, so import it through Data → From Text/CSV and choose UTF-8. The tool also does not neutralize spreadsheet formulas. A cell that starts with =, +, -, or @ can run when the file is opened, so review CSV from an untrusted source before opening it.

Records are separated with CRLF and the file ends with a final CRLF, which is what most spreadsheet importers expect. A quoted field can contain commas, quotes, or line breaks, so counting visual lines in a text editor is not a reliable row count — import the file and check the table instead.

The next step in the same task — and still nothing leaves this browser.