UtilDojo

Popular

Menu

JSON to CSV Converter Online

  • This tool runs entirely in your browser. Nothing you enter or upload is sent to a server.

JSON

Tab indents · Shift+Tab outdents · Esc then Tab moves on

CSV

Your CSV shows up here

Paste or type on the left, upload a file, or drop one onto the input.

Waiting for input

JSON & data

About this tool

Paste a JSON array of objects and get a CSV you can open in Excel or Google Sheets. The header row is built from every key found in the data, in the order they first appear, so records with different fields still line up in the right columns.

Nested objects are flattened with dots — { "address": { "city": "Pune" } } becomes an address.city column — and arrays are kept as a single JSON cell. Values that contain the delimiter, quotes or line breaks are quoted for you. With the Sample button, two records, one with an address pin and one with a tags array, give the header id,name,address.city,address.pin,tags. The second record leaves the pin empty and stores the tags as ["admin","beta"] in one quoted cell.

Pick comma, semicolon, tab or pipe as the delimiter. Semicolons suit spreadsheets in regions where the comma is the decimal separator, and tabs give a TSV that pastes into a sheet cleanly. A null value or a missing key becomes an empty cell, so you cannot tell the two apart in the CSV.

Some limits to know. Each array inside a record is one cell, not many rows, so a record with ten line items is still one row. Phone numbers and codes with leading zeros are written as given, but Excel may drop the zeros when it opens the file; import the column as text if that matters. If the input is not valid JSON, the tool shows the parser’s message with the position. The file is built in your browser and can be downloaded as data.csv; nothing is uploaded.

Frequently asked questions

What JSON shape works best?

An array of objects, where each object becomes one row. A single object is treated as a one-row table.

How are nested objects and arrays handled?

Nested objects are flattened into dotted column names such as user.name. Arrays are written into one cell as JSON text so no data is lost.

Which delimiter should I choose?

Comma is the standard. Use semicolon if your spreadsheet uses a comma as the decimal separator, or tab for TSV files.

What about an array of plain values such as [1, 2, 3]?

Each value becomes its own row under a single column named value.

Can I turn the CSV back into JSON?

Yes, use the CSV to JSON converter. Dotted column names are not rebuilt into nested objects there, so a round trip returns flat keys.

Related tools