JSON to CSV

By the ToolPocket team · Updated 2026-12-05 · Editorial standards

Spreadsheets want rows and columns; APIs return JSON. This tool flattens an array of objects into a CSV table with a header row, quoting values that contain commas or quotes.

Paste JSON, copy the CSV or download it as a file. Nested objects are written as compact JSON in their cell, which keeps the data intact.

Download

Runs locally in your browser — nothing is uploaded.

How to use the JSON to CSV Converter

  1. Paste a JSON array of objects.
  2. Press Convert.
  3. Copy the CSV or download it.

Frequently asked questions

What JSON shape is expected?

An array of objects, for example [{"name":"Ann","age":30},{"name":"Bo","age":25}]. The union of all keys becomes the columns.

How are commas and quotes handled?

Values containing commas, quotes or newlines are wrapped in double quotes, and inner quotes are doubled, per RFC 4180.

What about nested objects?

They are serialised as compact JSON text inside the cell rather than flattened into separate columns.

Good to know

CSV looks simple and is full of edge cases: commas inside values, quotes, newlines and numbers that spreadsheets silently reinterpret. Treating a postcode as a number removes its leading zero, so the converter keeps values as text.

Nested structures do not flatten cleanly into columns. Writing them as compact JSON in a cell preserves the data; flattening to dotted column names is a design decision that depends on how the file will be consumed.