Skip to content
logo-iconPikiTools

JSON to CSV

Turn a JSON array into CSV, flattening nested objects into columns, and download it for Excel or Google Sheets.

Runs in your browser · Free · No sign-up

JSON array
CSV

How nested data is flattened

CSV is a flat table, but JSON can be nested. With flattening on, nested objects become dot-notation columns:

JSONCSV columns
{"address": {"city": "London"}}address.city = London
{"tags": ["admin", "beta"]}tags = admin; beta
{"items": [{"sku": 1}]}items = the array as JSON text

Arrays of simple values are joined with semicolons. Arrays of objects are kept as JSON text in one cell, because spreading them across columns or rows can't be done in a way that suits everyone.

Quoting rules

Output follows RFC 4180. A value that contains the delimiter, a double quote or a line break is wrapped in double quotes, and any quotes inside it are doubled. Omar, Jr. becomes "Omar, Jr.", so the file opens correctly in Excel, Google Sheets, Numbers and databases.

Opening the file

  • Excel (US/UK): comma delimiter, BOM on, then double-click the downloaded file.
  • Excel (most of Europe): choose the semicolon delimiter, because the comma is the decimal separator there.
  • Google Sheets: File → Import → Upload. Any delimiter works.

Validate or tidy the JSON first with the JSON formatter.

Frequently asked questions

What JSON structure works best?

An array of objects, like [{...}, {...}], where each object is one row. If you paste an object that contains an array (for example an API response like {"data": [...]}), the first array found is used automatically.

Why do accented characters look wrong in Excel?

Excel on Windows assumes CSV files are in the legacy ANSI encoding unless the file starts with a byte-order mark (BOM). Keep 'Add BOM for Excel' on and characters like é, ü and emoji will display correctly.

What happens to rows with different keys?

Every key that appears in any row becomes a column. Rows that don't have a key get an empty cell, so nothing is lost.