Free JSON To CSV Online

Convert a JSON array to CSV for Excel or Google Sheets. Flattens nested objects to dot columns, comma, semicolon or tab output. Runs in your browser, free.

No login. Files processed for your request and discarded. Free to use. Files processed & discarded →

Compress PDF — it's free or choose from 130+ tools

130+ Free Tools
— Files Processed
— Happy Visitors
— Pages Explored
0 Files Stored

JSON to CSV — Convert a JSON Array for Excel or Sheets

Part of Text tools: See all Text tools.

What is JSON To CSV?

JSON to CSV Converter turns a JSON array of objects, or a single object, into CSV rows you can open in Excel, Google Sheets or LibreOffice. Every key found in any object becomes a column, nested objects are flattened into dot-notation columns such as address.city, and values are quoted per RFC 4180. It runs in your browser; the JSON is not uploaded.

How to use JSON To CSV

  1. Paste your JSON into the box, or open a .json file from your device.
  2. Choose a delimiter: comma, semicolon (handy for Excel in many European locales) or tab.
  3. Keep or untick "Include header row" and "Flatten nested objects" to suit where the CSV is going.
  4. Click Convert to CSV, then copy the result or download it as converted.csv.

Why use this tool?

API responses and NoSQL exports arrive as JSON, but the people who need to sort, filter and chart the data usually work in a spreadsheet. This converter does the reshaping without a script: it collects every column, keeps the column order in the order keys first appear, and escapes values so commas and quotes inside text do not shift your table.

JSON To CSV — In-Depth Guide

JSON can describe trees; CSV can only describe a table. The converter bridges that gap with two rules. Nested objects are flattened into columns joined with a dot, so user.name and user.email sit side by side in the sheet. Arrays are kept whole in a single cell as JSON text, because splitting them would either create a different number of columns per row or multiply your rows, and both make the sheet harder to trust.

Columns are built from every object, not just the first one. If the first record has name and email but a later one also has phone, phone still gets a column and the earlier rows simply leave it empty. The order follows first appearance, so the columns you see first in your data come first in the sheet.

Spreadsheet locale matters. In the US, UK and Australia, Excel opens comma-separated files directly. In much of Europe, where the comma is a decimal separator, Excel expects semicolons. If your download opens with everything squashed into column A, pick the semicolon delimiter and convert again. Tab-separated output is also useful for pasting straight into a sheet.

Before converting, make sure the input is valid JSON; the Fix Invalid JSON and JSON Formatter tools help when it is not. After converting, a quick look at the header row tells you whether flattening produced sensible names. To go the other way, use CSV to JSON, which reads the same quoting rules back.

Frequently asked questions

What JSON does it accept?
An array of objects such as [{"name": "Ann", "age": 31}, ...] gives one row per object. A single object gives a one-row CSV. An array of plain values such as [1, 2, 3] gives a single column called value.
How are nested objects and arrays handled?
With "Flatten nested objects" ticked, {"address": {"city": "Leeds"}} becomes a column named address.city, at any depth. Arrays are not split into columns; they are written into one cell as JSON text, for example ["a","b"], so the row count always matches your array. Untick flattening to keep whole nested objects as JSON text in one cell.
What if objects have different keys?
Every key that appears in any object becomes a column, in the order the keys are first seen. Objects that lack a key get an empty cell there; null also becomes an empty cell.
Will it open correctly in Excel?
Yes. The downloaded file starts with a UTF-8 byte order mark, which tells Excel to show accented and non-Latin characters correctly. If Excel puts everything in one column, your system expects semicolons; convert again with the semicolon delimiter.
How are commas and quotes inside values handled?
Any value that contains the delimiter, a double quote, a line break, or leading or trailing spaces is wrapped in double quotes, and quotes inside it are doubled, as RFC 4180 describes.
Is my data uploaded?
No. The conversion runs in JavaScript in your browser, and opening a file reads it locally. Nothing you paste is sent to our server.

Also try

Related tools that work well with this one: