Simple Desk Tools / JSON to CSV

JSON to CSV Converter – Flatten Nested JSON Online

Paste JSON and get a spreadsheet-ready CSV with nested fields flattened, or turn CSV back into JSON. Everything runs in your browser; nothing is uploaded.

JSON input

CSV output

Rows: 0Columns: 0Output size: 0 B

In short: JSON to CSV Converter – Flatten Nested JSON Online is a free online tool with no sign-up and no upload — paste JSON and get a spreadsheet-ready CSV with nested fields flattened, or turn CSV back into JSON. Everything runs in your browser; nothing is uploaded.

How to use

  1. Paste or drop JSON. An array of objects works best, but a single object, or an object that contains an array (like an API response with {"data":[…]}), is handled automatically.
  2. Check the flattening. Nested objects become address.city columns and arrays become tags[0], tags[1]. Lower the depth to keep deeper structures as JSON strings.
  3. Copy or download the CSV. Tick "UTF-8 BOM" if you will open it in Excel and the file has accents or emoji.

FAQ

How are nested objects converted to CSV?

Each nested key becomes its own column using dot notation, so {"a":{"b":1}} produces a column called a.b. Arrays use bracket indexes: items[0].name. The header is the union of every key found in any row, in the order they first appear, so rows with missing fields simply get empty cells.

What if my JSON is not an array?

A single object becomes a one-row CSV. An object that wraps an array (for example {"results":[…]}) is unwrapped automatically — the first array found is used. Arrays of plain values are exported as a single value column.

Why does the tool say my JSON is invalid?

Common causes are trailing commas, single quotes instead of double quotes, unquoted keys, or comments. The error message includes the line and column where parsing stopped so you can fix it quickly.

Can I convert CSV back to JSON?

Yes. Switch to CSV → JSON: the first row becomes the keys, values that look like numbers, booleans or null are converted (toggle this off to keep everything as strings), and flattened headers like address.city are rebuilt into nested objects.

Simple Desk Tools vs. the usual suspects

This toolTypical "free" tool sites
PriceFree, foreverFree tier, then paywall
AccountNone — open the page and goSign-up or email required
Your filesStay on your device; nothing is uploadedUploaded to their servers, kept for hours
WatermarkNoneOn the free tier
LimitsNone — any size, any number of filesDaily caps and file-size limits
SpeedInstant — runs in your browserQueue, upload, wait, download

The no-bullshit promise: no registration, no upsell, no "premium" button, no watermark, no file limits, and your files never leave your computer. The site is paid for by a couple of ads, nothing else.

Privacy: your data never leaves the browser. There is no server and no upload.