JSON to CSV Converter

A free tool by DeepRit, a Google Ads agency that does PPC and nothing else. We build and run Google Ads accounts so every click is accounted for. Book a free audit call

Convert JSON to CSV free in your browser. Nested objects become columns, quotes and commas are escaped correctly, and the file opens cleanly in Excel or Sheets.

Rows
0
Columns
0
CSV

Free, no sign-up. Runs in your browser: nothing you type is uploaded or saved.

How to convert JSON to CSV

  1. Paste your JSON into the box: an export from an app, an API response, a database dump or a file a developer sent you.
  2. Choose the separator. Comma is standard. Choose semicolon if you'll open the file in Excel in a country that uses a comma as the decimal mark, such as Germany, France, Spain or Brazil. Tab is handy for pasting straight into a spreadsheet.
  3. Leave "Turn nested objects into columns" on to spread nested data across columns, or turn it off to keep nested values together as JSON text in one column.
  4. Copy the CSV, or press Download .csv. The downloaded file opens straight in Excel, Google Sheets, Numbers or LibreOffice with accented letters and symbols intact.

The JSON to CSV converter runs in your browser, so the data you paste is never uploaded. That matters when the JSON contains customer names, emails or orders.

What JSON the converter understands

JSON comes in many shapes. The converter handles the common ones:

  • An array of objects, like [{"name": "Rye", "price": 9}, {"name": "Sourdough", "price": 8}]. Each object becomes a row and each key a column. This is the most common shape for exports.
  • An object that holds one array, like {"products": [ … ]}. Many APIs wrap their results this way; the converter finds the array and uses it.
  • A single object, which becomes a one-row CSV.
  • An array of plain values, like ["rye", "sourdough"], which becomes one column called "value".

If objects have different keys, the columns are the union of all keys, in the order they first appear, and cells are left empty where a row doesn't have that key. Nothing is dropped because it only appears in some rows.

Nested objects and arrays

CSV is flat: rows and columns. JSON can nest objects inside objects. When "Turn nested objects into columns" is on, nested keys are joined with dots:

{"name": "Rye", "shop": {"city": "Leeds", "postcode": "LS1"}}

becomes the columns name, shop.city and shop.postcode. This dot notation is widely understood, and the CSV to JSON converter can read the columns back into nested objects.

Arrays are handled in two ways:

  • Arrays of simple values, such as tags, are joined into one cell with semicolons: bread; seeded. That keeps them readable in a spreadsheet.
  • Arrays of objects, such as order lines, are kept as JSON text in one cell, because spreading them across columns would make a different number of columns for every row. If you need one row per order line, split them out before converting.

With the option off, any nested object or array is written into a single cell as compact JSON.

Correct CSV quoting

A CSV file looks simple, but quoting rules trip up many quick converters. This one follows RFC 4180, the CSV standard that Excel and Google Sheets understand:

  • A value containing the separator, a double quote or a line break is wrapped in double quotes.
  • Double quotes inside a value are doubled: Say "hi" becomes "Say ""hi""".
  • Values with spaces at the start or end are quoted so the spaces survive.
  • Lines end with CRLF, the Windows line ending that every spreadsheet reads correctly.

Numbers, true and false are written as they are, and null becomes an empty cell.

Opening the CSV in Excel

Excel decides how to read a CSV from your computer's regional settings, which causes two classic problems:

Everything ends up in column A. In many countries Excel expects semicolons, not commas, because the comma is the decimal mark. Choose "Semicolon" as the separator and download again.

Accented letters look wrong, for example "Café" instead of "Café". Excel needs a byte order mark to recognise UTF-8. The Download button adds one, so downloaded files open correctly. If you copy and paste instead, accents are kept automatically.

Google Sheets is more forgiving: use File → Import and it detects the separator for you.

Watch out for values Excel "helpfully" changes: long ID numbers can turn into scientific notation and lose digits, leading zeros on product codes and phone numbers disappear, and things that look like dates become dates. To keep them exactly as they are, import the file with Data → From Text/CSV and set those columns to Text.

Common uses

Exports from apps and APIs. Shopify, Stripe, CRM systems, form builders and analytics tools often export JSON. Converting JSON to CSV lets you sort, filter and total the data in a spreadsheet without writing code.

Sharing data with non-developers. A colleague who doesn't read JSON can open a CSV in Excel.

Importing into other tools. Many email platforms, accounting packages and ad tools import CSV but not JSON.

Checking data. A table makes missing values and inconsistent formats easy to spot.

Reports. Pull a list of orders from an API, convert JSON to CSV, then build a pivot table.

To tidy the JSON first, or find a syntax error, use the JSON formatter. To present the result on a web page, the HTML table generator turns CSV into an HTML table, and the Markdown table generator makes a table for README files and documentation. If the CSV has repeated rows, the remove duplicate lines tool cleans them up.

Errors and how to fix them

If the JSON isn't valid, the converter shows the parser's message. Common causes:

  • Trailing commas after the last item: [{"a": 1},]. JSON doesn't allow them.
  • Single quotes instead of double quotes around keys and strings.
  • Unquoted keys, like {name: "Rye"}, which is JavaScript, not JSON.
  • Comments. JSON doesn't support them.
  • Several JSON documents pasted one after another, as in some log files (JSON Lines). Wrap them in [ ] and separate them with commas.

Big files

There's no fixed size limit: the conversion happens in your browser's memory. A few megabytes convert instantly. For very large exports of tens of megabytes, a desktop browser is faster than a phone, and spreadsheet apps have their own limits: Excel stops at 1,048,576 rows and Google Sheets at 10 million cells.

Why convert JSON to CSV instead of reading the JSON?

JSON is built for programs: it nests data and keeps types, which makes it perfect for APIs but awkward for people. A spreadsheet is built for people: you can sort a column, filter rows, add a total and spot a missing value at a glance. Converting JSON to CSV is the quickest bridge between the two. It also makes data easier to share, because almost every business tool, from accounting software to email platforms, can import a CSV file, while far fewer accept JSON. Keep the original JSON as well: the CSV is a flattened view, and the JSON is the full record.

A worked example

A bakery's online shop exports its product list from the store's API as JSON. The owner wants it in a spreadsheet to update prices before Christmas. The export looks like this:

{"products": [
  {"name": "Seeded rye", "price": 9, "tags": ["bread", "seeded"], "stock": {"shop": 12, "online": 30}},
  {"name": "Mince pies (6)", "price": 7.5, "tags": ["seasonal"], "stock": {"shop": 40}}
]}

She pastes it into the JSON to CSV converter. It finds the products array and shows 2 rows and 5 columns: name, price, tags, stock.shop and stock.online. The tags become "bread; seeded" and "seasonal", and the mince pies have an empty cell under stock.online, because that product isn't sold online.

She's in Germany, so she chooses "Semicolon" and presses Download .csv. The file opens in Excel with each value in its own column and "Mince pies (6)" spelled correctly. She updates the prices, and her developer re-imports the file with the CSV to JSON converter.

Need more customers from Google?

This tool is free and runs in your browser. If your business also needs more leads or sales, Google Ads is where people search with their wallet out. That is the whole job of DeepRit: a PPC-only agency that sets up and runs Google Ads accounts so every click is accounted for. You keep full ownership of your account, get a written report every week, and can stop at any time. See our pricing or ask for a free audit.

Frequently asked questions

How do I convert JSON to CSV?

Paste the JSON into this JSON to CSV converter, choose a separator, and copy the result or press Download .csv. It's free and runs in your browser.

How are nested JSON objects converted?

Nested keys become dotted column names, such as shop.city. Arrays of simple values are joined with semicolons, and arrays of objects are kept as JSON text in one cell.

Why does my CSV open in one column in Excel?

Your Excel probably expects semicolons. Choose "Semicolon" as the separator and download the file again.

Will special characters and accents survive?

Yes. Values are quoted correctly, and the downloaded file includes a UTF-8 marker so Excel shows accented letters properly.

Is my data uploaded?

No. The JSON to CSV converter works entirely in your browser; nothing is sent to a server.

Can I convert CSV back to JSON?

Yes, with the CSV to JSON converter, which reads dotted column names back into nested objects.

Free PPC audit

See where your ad budget leaks.

We look at your Google Ads account before the call, then walk you through what we'd fix first, in dollars. No obligation, no hard sell.

Book a free audit call 30-minute call · Free · The audit is yours to keep