Start a project

Tool 36 of 57 · Code

JSON ⇄ CSV Converter

Turn an API response into a spreadsheet, or a spreadsheet into JSON, with quotes, commas, nested objects and Excel's quirks handled for you.

JSON ⇄ CSV Converter at a glanceIllustration: 1, JSON; 2, processed in your browser; 3, CSV for Excel.JSON ⇄ CSV Converter{ }1JSON3CSV for Excel2In yourbrowser
1 JSON 2 processed on your device 3 CSV for Excel

JSON ⇄ CSV Converter

JSON in

CSV

01

What it does

Converts JSON to CSV and back, flattening nested data and handling quotes, commas and Excel correctly.

  • Nested objects flattened to dotted columns
  • Proper quoting for commas, quotes and new lines
  • Comma, semicolon or tab
  • Byte-order mark so Excel shows £ and accents

02

Private by design

Everything happens in your browser. Nothing you type, paste or upload is sent anywhere, and it keeps working offline once the page has loaded.

03

What you get

CSV or JSON, with a table preview, with a Copy and a Download button on every result.

  • JSON
  • CSV
  • Excel

Why it matters

Clients live in spreadsheets and websites live in JSON. Moving product lists, form entries or analytics exports between the two is a weekly job, and naïve conversions break on the first comma inside a value.

This converter follows the CSV standard (RFC 4180) for quoting, flattens nested objects into readable columns, and adds the small byte-order mark that stops Excel turning £ into £.

How it works

  1. InputJSON or CSV
  2. In your browserFlattened or rebuilt, with types kept
  3. OutputCSV that opens in Excel, or JSON

Where it fits in a designer's workflow

  1. Plan
  2. Design
  3. Build
  4. Test
  5. Launch
Moving data between spreadsheets and code.

By the numbers

The sample data as JSON and as CSVJSON (minified): 193 bytes; CSV (flattened): 138 bytesJSON (minified)193 bytesCSV (flattened)138 bytes
Measured: the tool's 2-row sample converted by its own code. CSV drops the repeated keys, so it's smaller and opens in Excel, but it loses types and nesting, which the tool flattens into dotted columns like stock.warehouse. Source: RFC 4180: CSV.
Show the numbers as a table
FormatBytes
JSON193
CSV138

How to use it

  1. Choose a direction with the tabs.
  2. Paste your JSON array or CSV.
  3. Pick the delimiter and options.
  4. Check the preview, then download the result.

FAQ

What JSON shapes work?

An array of objects works best. A single object becomes one row, and an object holding one array (like {"items": […]}) is unwrapped automatically.

How are arrays inside objects handled?

Arrays of plain values are joined with a semicolon in one cell. Arrays of objects are kept as JSON text in the cell.

Why semicolons?

Excel in many European locales expects semicolons, because the comma is the decimal separator there.

Is my data uploaded?

No. Everything is converted in your browser.

Work with me

Want a site that gets these right?

I build fast, accessible websites and web apps that pass these checks from day one. Tell me about your project and I'll reply personally with honest next steps.

All developer tools · Back to leej.uk