CSV Tools Your file never leaves your computer.

JSON to CSV

Drop your JSON below and it becomes a CSV immediately. The conversion happens inside this browser tab, so the file is never uploaded to a server.

How to convert JSON to CSV

  1. Choose your JSON file, or drag it onto the box below.
  2. Check the detected columns in the preview.
  3. Download the CSV.

Column order follows first appearance

Keys are collected in the order they are first seen across the array rather than sorted alphabetically, so the resulting CSV keeps the shape you would expect from reading the source.

Values are quoted only when needed

Fields containing a comma, a quote or a line break are wrapped in quotes and internal quotes are doubled, per RFC 4180. Everything else is written bare, so the output stays readable rather than being quoted defensively throughout.

Questions

What if my records have different fields?

Every key found anywhere in the array becomes a column, and records missing that key get an empty cell. Nothing is dropped because it was absent from the first record, which is the most common way JSON to CSV converters lose data.

What happens to nested objects and arrays?

A CSV is flat, so nested values cannot be represented as columns. Rather than dropping them, they are written back as compact JSON inside the cell, so the information survives the round trip and you can decide what to do with it.

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

Yes. If the top level is an object containing an array — the common {"data": [...]} shape from an API — that array is used and the tool tells you which key it took. A single object with no array becomes one row.

Is my file uploaded anywhere?

No. Parsing and conversion run in JavaScript inside your own browser tab. Nothing is sent to a server, stored or logged.

What if the JSON is malformed?

You get the parser error, including where it failed, rather than an empty file or a silent failure.

Background

For why CSV files lose leading zeros, arrive as one long column, or show strange characters, see what a CSV file is. This page is one of the free CSV converter tools — all of them run in your browser and none of them upload your file.

Other tools