JSON to CSV Converter

Paste JSON or upload a .json file and convert it to a clean CSV you can open in Excel or Google Sheets — converted locally in your browser, never uploaded.

1Paste your JSON or CSV, or upload a file
2Pick your options
3Press “Convert”, then download the result

Private by design: 100% in your browser — nothing is uploaded, no sign-up. This tool runs entirely on your device.

How to use this JSON to CSV converter

Start by getting your JSON into the box. You can paste it directly from an API response, a code editor or a file, or press the upload button and choose a .json file from your device — the file is read by your browser only, and its contents appear in the box so you can check them before converting. Then press "Convert to CSV". If the JSON is valid, you will see a preview of the CSV right away, along with a count of the data rows. From there you can download the result as a file called converted.csv, ready to open in Excel, Google Sheets, LibreOffice or Numbers, or copy the CSV text to your clipboard and paste it wherever you need it.

The converter is built for the JSON people meet most often: an array of objects, like a list of customers, products or records. It collects every key that appears in any of the objects and uses those keys as the CSV column headers, in the order they first appear. If one record is missing a key that another record has, that cell is simply left empty, so your columns always line up. A single object on its own becomes a one-row CSV. Values that contain commas, quotes or line breaks are wrapped in double quotes and escaped exactly the way spreadsheet programs expect, so a city like "New York, NY" stays in one cell instead of splitting into two. Nested objects and arrays inside a value are written as compact JSON text in that cell, which keeps the file readable and valid.

Not sure what your JSON should look like? Press "Load sample JSON" and convert the example to see the whole flow end to end. If your JSON has a mistake — a missing comma is the classic one — the tool tells you what the browser's parser reported and where to look, instead of failing silently. And because the conversion runs entirely on your device, it is safe to use with exports that contain private or work data: nothing you paste is transmitted or stored anywhere.

Example: JSON in, CSV out

This small JSON array:

[{"name":"Ada","city":"London"},{"name":"Grace","city":"New York, NY"}]

becomes this CSV — note how the comma inside "New York, NY" is kept safe by quotes:

name,city Ada,London Grace,"New York, NY"

How flattening works

Real-world JSON nests objects inside objects, like an address inside a customer. With “Flatten with dot notation” switched on, a field such as address.city becomes its own column, and arrays inside a row are joined with “; ”. With flattening off, nested values are kept as JSON text in a single cell instead. Either way, the columns are the union of every key in every row, in the order they first appear, and missing values become empty cells.

Frequently asked questions

Is my data uploaded to your server?

No. There is no server involved. The conversion runs in JavaScript inside your own browser, so your JSON and the CSV it produces never leave your device. You can even disconnect from the internet after the page loads and the tool will still work.

What shape of JSON works best?

An array of objects works best, for example [{"name":"Ada"}, {"name":"Alan"}]. Every object's keys become columns. A single object and a simple list of numbers or words also work — a simple list becomes a one-column CSV headed "value".

What happens to nested objects or arrays inside my JSON?

They are kept as compact JSON text inside their cell. CSV is a flat format, so there is no perfect way to represent nesting; writing the JSON text keeps all the information in the file instead of dropping it.

The tool says my JSON is invalid. What should I check?

The most common causes are a missing comma between items, text keys without double quotes, single quotes instead of double quotes, or a trailing comma after the last item. The error message from the parser usually points close to the problem.

Is there a size limit?

There is no limit set by us. Very large files depend on your device's memory, but files of several megabytes — tens of thousands of rows — convert fine on most modern phones and laptops.

Related tools