Skip to content

JSON to CSV Converter

Convert JSON to CSV for Excel or Google Sheets: nested objects as columns, arrays split or joined, RFC 4180 quoting, optional BOM. Runs in your browser.

Runs in your browser

Everything happens on your device: nothing you paste or type is sent to our server or stored. A share link holds your settings, and your input only if you choose to include it.

Joining is easiest to read but can’t be converted back exactly if an item contains "; ".

Excel in countries with a decimal comma expects semicolons.

More options

Excel on Windows reads accented letters correctly only when the file starts with this invisible mark. Other programs may show it as a stray character.

Spreadsheets run a cell that starts with = + - or @ as a formula, which an attacker can abuse (OWASP “CSV injection”). Turn this on for data from untrusted sources that people will open in a spreadsheet. It changes the values, including negative numbers stored as text.

328 characters · 330 bytes (UTF-8) · limit 5 MB

Output: 177 characters.

Rows
3
Columns
7
Input size (bytes)
330
Output size (bytes)
179

Method: JSON, RFC 8259 → CSV, RFC 4180 · FindMySum reader and writer (no library)

Off by default. When on, your input is packed into the part of the link after “#”, which browsers never send to any server; anyone you give the link to will see it.

How it works

The JSON is read with the same strict parser as our JSON formatter, so a syntax error shows its line and column. Each object in the array becomes one row. Columns are collected in the order keys first appear (or sorted by name), so a key missing from one object simply leaves that cell empty. An object whose values are all arrays is read as columns instead, and an array of arrays becomes rows with no header.

Nested objects become columns named by their path, such as address.city, or a single cell of JSON text. Arrays become one column per item (tags[0], tags[1]), one cell joined with a semicolon and a space, or JSON text. Numbers are copied exactly as written, so long IDs are not rounded, and null becomes an empty cell.

The CSV follows RFC 4180: values containing the delimiter, a double quote or a line break are wrapped in double quotes, and a double quote inside is written twice. Lines end with CRLF unless you choose LF. Everything runs in your browser and nothing you paste is uploaded.

Standards this tool follows

JSON to CSV: Turn API Data Into a Spreadsheet

By FindMySum · Last reviewed

This JSON to CSV converter turns an array of JSON objects, the shape most APIs return, into rows and columns you can open in Excel, Google Sheets or Numbers. Paste the JSON above and the CSV appears straight away; it is built in your browser, so the data stays on your device.

When you need it

APIs, databases and logging tools speak JSON, while finance, operations and anyone without a developer at hand works in spreadsheets. Converting to CSV is the quickest bridge: export the orders, users or events as JSON, convert, and sort or filter them in a spreadsheet.

How to use it

  1. Paste a JSON array of objects. A single object, an object of column arrays or an array of arrays works too.
  2. Decide how nested data should look. Dot-path columns are best for filtering in a spreadsheet; JSON text keeps the structure intact in one cell.
  3. Pick the delimiter your spreadsheet expects and, under advanced settings, the line endings, the byte order mark for Excel and the formula protection.
  4. Copy the CSV, or download it and open the file.

A worked example

Two records with a nested address and a list of tags:

[
  {"id": 1, "name": "Ann", "address": {"city": "Ottawa"}, "tags": ["admin", "beta"]},
  {"id": 2, "name": "Lee, Sam", "address": {"city": "Lyon"}, "tags": ["beta"]}
]

With the default settings this becomes:

id,name,address.city,tags[0],tags[1]
1,Ann,Ottawa,admin,beta
2,"Lee, Sam",Lyon,beta,

The name containing a comma is quoted so it stays one value, the nested city became an address.city column, and the second record's missing second tag is an empty cell. With arrays joined instead, the tags column would read admin; beta.

Common mistakes

Pasting several objects without an array. {...}{...} or one object per line is not one JSON document. Put the objects inside [ and ], separated by commas.

Double-clicking the file in Excel and losing zeros. Excel guesses types when it opens a CSV, so 00123 becomes 123 and long numbers turn into scientific notation. The CSV still holds the right text; import it with Data > From Text/CSV and set those columns to Text.

Very wide output. Index columns grow with the longest array. If one record has 200 tags you get 200 columns; switch arrays to joined or JSON text instead.

Check the input first with the JSON formatter, and use the CSV to JSON converter to go back.

Sources

Frequently Asked Questions

How do I open the CSV in Excel with accents intact?

Turn on the byte order mark under advanced settings before downloading. Excel on Windows assumes an older character set unless a UTF-8 file starts with that invisible mark, which is why é can turn into é. Google Sheets and LibreOffice read UTF-8 correctly without it.

Why does Excel put everything in one column?

In countries where the comma is the decimal separator, Excel expects semicolons between values. Choose the semicolon delimiter, or use Excel's Data > From Text/CSV import, which lets you pick the delimiter.

What does "neutralise formulas" do?

A spreadsheet treats a cell starting with =, +, - or @ as a formula. If the data came from strangers, such as form submissions, a crafted value could run a formula when someone opens the file. The option adds an apostrophe in front of those text cells so they show as text. It changes the values, so leave it off for data you trust.

Can I convert the CSV back to the same JSON?

For flat records, yes: the CSV to JSON converter reads it back with the same values, as text. Nested objects come back as keys with dots in their names unless you choose JSON text cells, and joined arrays can't be split again reliably.

Spotted a wrong result or a bug? Report a problem (the link sends the page address only, never what you entered).

May we count your visits with Invoker Analytics? It keeps a random visitor number in your browser. Your calculator inputs are never sent. Privacy policy