Skip to converter
{,} JSONToCSV 100% Private

JSONToCSV Free Online JSON to CSV Converter

100% Free, Private & Browser-Based JSON to CSV Converter — Instant Data Formatting.

Delimiter

JSON Input

Drag & drop a .json file anywhere on this box. 0 chars

CSV Output

csv

Your CSV preview appears here

Paste JSON, drop a file, or load the sample.

0 rows · 0 columns

.csv

🔒 Your data never leaves this device — conversion runs entirely in your browser with JavaScript.

How to Convert JSON to CSV Online

Turn API responses, exports and config data into spreadsheet-ready CSV in three steps.

  1. 1

    Add your JSON

    Paste raw JSON into the input editor or drag & drop a .json file. JSONToCSV validates the syntax as you type.

  2. 2

    Choose formatting

    Pick a comma, semicolon, tab or pipe delimiter, toggle the header row and decide whether nested objects are flattened.

  3. 3

    Copy or download

    Check the live table preview, then copy the CSV to your clipboard or download a .csv file for Excel or Google Sheets.

What is a JSON to CSV Converter?

JSON (JavaScript Object Notation) stores data as nested key–value structures, which is ideal for APIs and apps but hard to analyse in a spreadsheet. CSV (Comma-Separated Values) is a flat, row-and-column text format understood by Excel, Google Sheets, databases and BI tools. A JSON to CSV converter maps each JSON object to a row and each key to a column.

Nested JSON flattening explained

With Flatten Nested Objects on, JSONToCSV walks every nested object and joins keys with dots. For example {"user":{"address":{"city":"Paris"}}} becomes a column named user.address.city. Arrays become indexed columns like tags.0, tags.1. Turn it off to keep nested structures as compact JSON strings in a single cell.

Proper CSV escaping (RFC 4180)

Any value containing the chosen delimiter, a double quote, a line break or leading/trailing spaces is wrapped in double quotes, and inner quotes are doubled (" → ""). Columns are collected from every object, so records with missing keys simply get empty cells.

Example: JSON input vs CSV output

[
  {
    "id": 1,
    "name": "Ada",
    "address": {
      "city": "London"
    },
    "tags": ["math","code"]
  }
]
id,name,address.city,tags.0,tags.1
1,Ada,London,math,code

Using JSONToCSV as a JSON to Excel converter

Download the CSV with Excel-friendly (BOM) enabled and open it in Microsoft Excel — accents, emoji and non-Latin scripts display correctly. If your regional settings use commas for decimals (common in Europe), choose the semicolon delimiter so Excel splits columns automatically.

Supported JSON shapes

  • Array of objects → one row per object (most common)
  • Single object → one row
  • Wrapper object like {"data":[…]} → the inner array is detected automatically
  • Array of arrays → each inner array is a row
  • Array of primitives → a single value column

Frequently Asked Questions

How do I convert a JSON file to CSV online?

▾

Drag and drop your .json file onto JSONToCSV or paste raw JSON into the input box. The CSV is generated instantly in the live preview. Choose your delimiter and header options, then click Copy CSV to Clipboard or Download CSV File.

How are nested JSON objects handled in CSV conversion?

▾

With Flatten Nested Objects on, nested keys become dot-notation columns such as address.city, and array items become indexed columns like tags.0 and tags.1. With flattening off, each nested object or array is written as a JSON string inside a single CSV cell.

Is my JSON data kept secure and private?

▾

Yes. JSONToCSV runs 100% in your browser using JavaScript. Your JSON is never uploaded to a server, stored or logged, so it is safe for confidential and production data. It even works offline once the page has loaded.

Can I open the converted CSV in Excel or Google Sheets?

▾

Yes. Download the .csv file and open it in Excel, Google Sheets, LibreOffice or Numbers. Keep Excel-friendly (BOM) on so special characters display correctly in Excel, and use the semicolon delimiter if your Excel locale uses commas as decimal separators.

What JSON structures are supported?

▾

Arrays of objects become one row per object. A single object becomes one row, a wrapper object like {"data": [...]} uses its inner array automatically, arrays of arrays become rows of cells, and arrays of primitive values become a single value column.

How does JSONToCSV handle quotes, commas and line breaks?

▾

Values that contain the delimiter, double quotes, line breaks or leading/trailing spaces are wrapped in double quotes, and inner double quotes are escaped by doubling them, following the RFC 4180 CSV standard.

Why does it say my JSON is invalid?

▾

Common causes are trailing commas, single quotes instead of double quotes, unquoted keys, or comments. The red error banner shows the line and column of the problem with a code snippet — click Jump to error to place your cursor right on it.

Related Developer Tools

More free, private, browser-based data utilities.