How to Convert JSON to CSV for Excel and Google Sheets
An API hands you a wall of JSON, but the person who needs it lives in Excel. Pasting raw JSON into a spreadsheet gets you one ugly cell of brackets and quotes. What you want is a CSV: clean rows and columns that open straight into Excel or Google Sheets. Converting JSON to CSV is a small, common task, and this guide shows how to do it cleanly with the free JSON to CSV tool.
Why flatten JSON into CSV at all
JSON is built for code. CSV is built for people who work in spreadsheets. Most of the time you convert because the data needs to leave the developer world and land in front of someone who filters, sorts, and charts in a familiar grid. Typical reasons include:
- Building a report a manager or client will open in Excel.
- Exporting records from an app or API so a non-technical teammate can review them.
- Importing into another tool that accepts CSV uploads but not JSON.
- Doing quick analysis with spreadsheet formulas instead of writing code.
In short, CSV is the universal handshake between your data and everyone who does not read JSON for a living.
How an array of objects becomes a table
The cleanest JSON to convert is an array of flat objects, because it maps perfectly onto a table. Take this:
[{"name": "Ada", "role": "dev"}, {"name": "Linus", "role": "lead"}]
Every key (name, role) becomes a column header. Every object becomes one row. The result is a tidy two-column CSV with a header line and two data lines. One object in, one row out, with the keys doing the labeling. This is the shape spreadsheets are happiest with, so aim for it when you can.
Handling nested fields
Real JSON is rarely perfectly flat. A record might hold an address object or a list of tags inside it. A spreadsheet cell, by contrast, wants a single value. There are two sensible ways this gets handled:
- Flattening with a path. A nested field like
address.citybecomes its own column calledaddress.city, pulling the inner value up to the top level so each piece gets its own cell. - Stringifying. A value that cannot be flattened cleanly, such as an array, is written into the cell as compact text so no data is lost.
Knowing which happened tells you what to expect. If you see a column named with a dot, that is a flattened nested field. If you see brackets inside a cell, that branch was kept as text. Either way nothing is silently dropped.
How to convert JSON to CSV in your browser
The free JSON to CSV tool runs entirely in your browser, so your data is never uploaded. That matters when the JSON holds user records, emails, or internal numbers you would not paste into an unknown site.
- Open the tool and paste your JSON, or load a
.jsonfile. An array of objects converts most cleanly. - Let it build the column headers from the keys it finds across your records.
- Copy the CSV output, or download it, then open it in Excel or Google Sheets.
Because the conversion happens in the tab, sensitive exports stay on your own machine the entire time.
Get the JSON clean first
A failed conversion is usually a malformed input, not a tool problem. Before converting, it pays to confirm the JSON is valid and well structured. Paste it into the JSON Formatter first: it indents the structure, flags a missing comma or unbalanced bracket, and lets you confirm you are actually working with an array of objects rather than a single nested blob. Two minutes there saves a confusing CSV later.
Related tools
The round trip runs both ways. When a colleague edits the CSV in Excel and you need it back as structured data, the CSV to JSON tool turns those rows into objects again. And if your data originally arrived as XML, the XML to JSON tool gets it into JSON first, ready to flatten into a spreadsheet from there.
The short version
JSON to CSV is about getting code-shaped data into a grid that anyone can open. An array of flat objects converts perfectly: keys become columns, objects become rows. Nested fields are either flattened into dotted columns or kept as text, so nothing is lost. Validate your JSON in the formatter first, then run the free JSON to CSV tool right in your browser to get a clean, private, spreadsheet-ready file in seconds.
Try JSON to CSV now
Convert a JSON array to CSV free in your browser. A live two-pane converter: paste JSON on the left, get clean spreadsheet-ready CSV on the right instantly, then copy or download. Private, no upload, no sign-up.
Open JSON to CSV