Convert JSON to CSV

The JSON root must be an array of records. Columns use the combined field names; nested values are flattened to cell text, so a CSV round trip need not preserve the structure.

Drop a file here or click to choose one — JSON

Processed entirely in your browser using a Web Worker. Nothing is uploaded.

What is JSON?

JSON (JavaScript Object Notation) is a plain-text format for structured data — objects, arrays, strings, numbers, booleans and null, nested as deeply as needed. It's the standard format for web APIs and configuration files, and every modern programming language can parse it natively.

When to convert JSON to CSV

Best for handing an API response to someone who works in Excel or Google Sheets, or for filtering records without writing code. It suits flat lists of similar objects. If the records sit inside a wrapper key such as data, that list is used automatically, and nested fields become dotted columns like user.name.

How it works

  1. Drop your JSON file into the box above, or click to choose one.
  2. Your browser parses it and rewrites it as CSV instantly — nothing is sent anywhere.
  3. Download the CSV file. That's it.

Questions

What shape does my JSON need?

An array of objects works best, with one row per object. A single object becomes one row. An array of plain values such as [1,2] stops with an error, and an empty array produces an empty file.

What happens to nested objects and arrays?

Nested objects become their own columns with dotted names: {"user":{"name":"Ada"}} gives a user.name column. Arrays stay in one cell as JSON text, for example ["a","b"], so no data is lost. If the records sit inside a wrapper such as {"data":[...]}, that list is used automatically.

What if records have different fields?

The header combines every field found across all records, and a record leaves the cell empty where it has no value. A null value is also written as an empty cell, so the two cannot be told apart.

Having trouble with this tool? Report an issue →