Command Palette

Search for a command to run...

JS

JSON to CSV Converter

Convert JSON to CSV online. Turns an array of objects into a spreadsheet-ready file, flattens nested objects, and escapes fields per RFC 4180. Client-side, no signup.

Delimiter:
Line ending:
Arrays:
Category:data
Mode:Offline
Version:1.0.0
Access:Free

What is a JSON to CSV converter?

JSON to CSV Converter interface on Toolz.dev - Convert JSON to CSV online. Turns an array of objects into a spreadsheet-ready file, flattens nested objects, and escapes fields per RFC 4180. Client-side, no signup.

A JSON to CSV converter takes a JSON array of objects and rewrites it as comma-separated values, with one column per property and one row per object. Paste the response from an API, a database query, or an exported document and get back a file you can open directly in Excel, Google Sheets, or Numbers. The property names become the header row and every object becomes a data row underneath.

Here is what this online JSON to CSV converter does with an uneven input. Paste [{"id":1,"name":"Lovelace, Ada","address":{"city":"London"}},{"id":2,"name":"Grace Hopper","tags":["navy","cobol"]}] and click Convert to CSV. The header comes out as id,name,address.city,tags: the nested city becomes its own column, and tags, which only the second object has, is added at the end. The first row is 1,"Lovelace, Ada",London, with the name quoted because it contains a comma, and the second row keeps the tags array as JSON in one cell with its quotes doubled.

JSON is the format APIs and JavaScript programs speak, but spreadsheets, business intelligence tools, and non-technical colleagues need tabular CSV. Doing the conversion by hand means picking the columns, handling records that are missing a field, and quoting any value that contains a comma or a line break. This tool builds the header from the union of every key across all objects, so rows with different shapes still line up, and it escapes fields using the RFC 4180 rules so a value like a full address survives the trip into a spreadsheet intact. Nested objects can be flattened into dot-notation columns such as address.city, and arrays can be joined or kept as JSON in a single cell.

Everything runs in your browser with no libraries and no server, so the JSON you paste - which often holds API payloads, user records, or internal data - is never uploaded or stored. The converter works offline once loaded, lets you choose the delimiter and line ending, and warns you when an item is not an object or when the input is a single object rather than an array.

How to use the JSON to CSV converter?

1

Paste or load your JSON

Paste a JSON array of objects into the input panel, or click Load Sample to start from a realistic example. A single object works too and becomes one row.

2

Choose flattening and arrays

Flatten nested objects is on by default and expands address.city style columns; untick it to keep a nested object as JSON in one cell. Pick As JSON or Join with ; for arrays.

3

Set the delimiter and line ending

Select comma, semicolon, tab, or pipe, and choose LF (Unix) or CRLF (Excel) line endings. CRLF is the line ending RFC 4180 specifies and the safer pick for older Windows software.

4

Copy or download the CSV

Click Convert to CSV. Copy the result to your clipboard or download it as data.csv, then open it in your spreadsheet or import tool.

Key Features

Union Header Detection

The header row is built from every key seen across all objects in first-seen order, so records with different fields still produce aligned columns

Nested Object Flattening

Optionally expand nested objects into dot-notation columns like address.city and address.zip instead of dumping raw JSON into one cell

RFC 4180 Escaping

Any value containing the delimiter, a quotation mark, or a line break is wrapped in double quotes and internal quotes are doubled, so the file parses correctly

Delimiter and Line-Ending Control

Export with comma, semicolon, tab, or pipe separators and LF or CRLF line endings to match Excel, Sheets, or your import pipeline

Frequently Asked Questions

Paste a JSON array of objects into the input panel and click Convert to CSV. The tool uses the object keys as the header row and each object as a data row. You can then copy the CSV or download it as a .csv file to open in Excel or Google Sheets. All processing happens in your browser - nothing is uploaded.

Comments

0 comments

0/2000 characters

No comments yet. Be the first to share your thoughts!

json to csvjson to csv converterconvert json to csvjson to csv onlinejson to exceljson array to csvjson to spreadsheetexport json to csvonline json to csv converterjson to csv converter online