Skip to content
Devtoolry

JSON to CSV

Convert JSON arrays to CSV online with automatic column detection, nested object flattening and custom delimiters. Open the result in Excel or Sheets.

Runs in your browser · Nothing uploadedFree · No sign-up

Something not working, or missing a feature? Send feedback

About the JSON to CSV

The JSON to CSV converter turns an array of JSON objects into a spreadsheet-ready table. Columns are detected from all objects, and nested objects can be flattened into dotted column names.

Conversion happens in your browser, so your files and records stay private.

How to use the JSON to CSV

  1. Paste a JSON array of objects or open a file.
  2. Choose the delimiter and whether to flatten nested objects.
  3. Download the CSV or copy it into Excel or Google Sheets.

Example

Export users with nested addresses

Input

[
  { "id": 1, "name": "Ada", "address": { "city": "London" }, "tags": ["admin"] },
  { "id": 2, "name": "Grace, R.", "address": { "city": "New York" }, "active": true }
]

Result

id,name,address.city,tags,active
1,Ada,London,"[""admin""]",
2,"Grace, R.",New York,,true

Columns come from every object, so active appears even though only the second user has it. address.city is flattened, the array is kept as JSON text, and the value containing a comma is quoted.

Common mistakes

  • A single object instead of an array. CSV is a list of rows, so the input should be an array of objects. If your data is wrapped, as in { "data": [ … ] }, paste only the array.
  • Leading zeros and long numbers in Excel. Excel turns 00123 into 123 and long IDs into 1.23E+15 when it opens a CSV. Import the file with the column type set to Text to keep them.
  • Accented characters in Excel. Older Excel versions assume a legacy encoding for CSV. If é shows as é, import the file through Data → From Text/CSV and choose UTF-8.

Works well with the JSON to CSV

Frequently asked questions

What happens to nested objects?

With flattening on, { "user": { "name": "Ada" } } becomes a column called user.name. Arrays are written as JSON text in a single cell.

Why does Excel show everything in one column?

Some regional settings expect semicolons. Choose ";" as the delimiter, or use the import wizard.

How are missing fields written?

As empty cells. Every row has the same columns, in the order they first appear in the data.

Is my data uploaded?

No. The conversion runs in your browser, so customer or production data stays on your device.

Guides and tutorials