Converter

JSON to CSV Converter

Turn a JSON array into a CSV file you can open in Excel or Google Sheets, or switch direction to turn CSV into JSON.

How to convert JSON to CSV

  1. Paste a JSON array of objects, open a .json file, or press Sample.
  2. Each object becomes a row and each key becomes a column. Keys that appear in only some objects still get a column, left empty where missing.
  3. Pick the delimiter your spreadsheet expects. Excel in many European locales uses a semicolon.
  4. Press Download to save data.csv, or Copy to paste it elsewhere.

Nested objects and arrays

CSV is flat, so with Flatten nested objects on, {"address": {"city": "London"}} becomes a column named address.city. Arrays such as ["math", "poetry"] are kept as JSON text in a single cell so no data is lost. Turn flattening off to keep each nested object as JSON text instead.

Converting CSV to JSON

Choose CSV → JSON. The first row is used as the keys. With Detect numbers and booleans on, 42 becomes a number and true a boolean, and empty cells become null. With Nest dotted headers on, a header like address.city is rebuilt into a nested object, so a JSON → CSV → JSON round trip gives you the original shape back.

Quoted fields are handled correctly, including commas, quotes and line breaks inside a value, for example "Hopper, Grace".

Frequently asked questions

Why does Excel show everything in one column?

Your Excel locale probably expects a semicolon as the separator. Choose Semicolon as the delimiter and download the file again.

What happens to nested objects?

With flattening on, nested keys become dotted column names such as address.city. Arrays are written as JSON text inside one cell.

My JSON is a single object, not an array. Will it work?

Yes. A single object is treated as one row.

Are large numbers kept exactly?

Yes. Integers too large for JavaScript, such as 64-bit IDs, are written to the CSV with every digit intact.

Is my data uploaded?

No. The conversion runs with JavaScript inside your browser tab. Nothing you paste or open is sent to a server or stored.