100% Free, Private & Browser-Based JSON to CSV Converter — Instant Data Formatting.
⚡ Live preview
🧩 Nested flattening
🛡️ Error validation
📊 Excel-ready
🔒 Zero uploads
Delimiter
Invalid JSON
JSON Input
Drop your .json file
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.
Advertisement
How to Convert JSON to CSV Online
Turn API responses, exports and config data into spreadsheet-ready CSV in three steps.
1
Add your JSON
Paste raw JSON into the input editor or drag & drop a .json file. JSON to CSV validates the syntax as you type.
2
Choose formatting
Pick a comma, semicolon, tab or pipe delimiter, toggle the header row and decide whether nested objects are flattened.
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, JSON to CSV 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.
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 JSON to CSV 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. JSON to CSV 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 JSON to CSV 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.
Are all the tools on FreeToolCabin tested for quality and accuracy?▾
Yes! Every tool on our site undergoes automated Q/A testing in real browser environments to ensure high precision, correct output, and zero errors. If you happen to spot a bug or have a suggestion, please contact us at [email protected] and our team will review it right away.
CSV is plain text with no data types, so a few details of your JSON cannot survive the trip unchanged:
In JSON
In CSV
What to watch
42 and "42"
42
Number and string look identical
null and ""
Empty cell
You can no longer tell a missing value from an empty one
true / false
true / false
Spreadsheets may convert them to TRUE / FALSE
Nested arrays of objects
Many indexed columns
Column count grows with the longest array
If you plan to convert the CSV back to JSON later with CSV to JSON, expect to restore types by hand.
Spreadsheet surprises and how to avoid them
The CSV file itself keeps your values exactly, but Excel and Google Sheets reinterpret some of them when they open the file:
Long ID numbers: Excel stores numbers with 15 significant digits, so an ID such as 1234567890123456789 is shown in scientific notation and its last digits become zeros. Import the column as Text instead of double-clicking the file.
Leading zeros: ZIP codes, phone numbers and product codes such as 00123 lose their zeros when treated as numbers. Again, import that column as Text.
Dates: ISO strings like 2026-03-04 may be turned into dates in your local format. Values such as 3-4 or 1/2 may be read as dates too.
Formulas: a value starting with =, +, - or @ can be treated as a formula. Be careful when opening CSV built from data you did not create.
Handling one-to-many data
A common case is an order with several line items: {"order":7,"items":[{"sku":"A"},{"sku":"B"}]}. Flattening puts everything on one row with columns like items.0.sku and items.1.sku. That is fine for a few items, but awkward if some orders have dozens. For analysis it is usually better to reshape the JSON first so each line item is its own object that repeats the order number, then convert. You get one row per item and a fixed set of columns that spreadsheets and pivot tables handle well.
More questions about JSON to CSV
My file has one JSON object per line. Can I convert it?
That format is called JSON Lines or NDJSON. It is not a single valid JSON document, so wrap all lines in square brackets and add a comma at the end of every line except the last, then paste the result.
How can I check a large JSON file before converting?
Paste it into a JSON Formatter or JSON Validator first to find syntax errors and see its structure, so you know which array holds the records you want as rows.
Why are some columns empty for most rows?
Columns are collected from every object, so a key that appears in only a few records creates a column that is blank elsewhere. That is expected and keeps every value in the right column.