Skip to content
Back to all articles
File Convert3 min readNovember 13, 2026

How to Convert JSON to CSV for Excel (Even Nested JSON)

Turn API responses and app exports into a spreadsheet: how nested objects become columns, how missing fields are handled, and how to make Excel open the file correctly.

How to Convert JSON to CSV for Excel (Even Nested JSON) article
In this guide
  1. Convert JSON to CSV in four steps
  2. The shapes JSON comes in
  3. Nested objects become columns
  4. Lists inside a record
  5. Missing fields do not shift columns
  6. Make Excel open it correctly
  7. When your JSON is invalid
  8. Going further
  9. Common questions

You have data as JSON: an API response, an export from an app, a Firebase or MongoDB dump. Your manager, accountant or client wants it in Excel. Pasting JSON into a spreadsheet gives you one long unreadable cell, and simple converters often lose fields or show [object Object].

This guide explains what has to happen to turn JSON into a proper table and shows how to do it with the free JSON to CSV Converter, which runs in your browser.

Convert JSON to CSV in four steps

  1. Open the JSON to CSV Converter and paste your JSON, or open or drop a .json, .jsonl or .ndjson file.
  2. Check the table preview. It shows the first 50 rows and how many rows and columns there are.
  3. Choose the options: separator, header row, flattening and how lists are written.
  4. Download the CSV (or copy it) and open it in Excel or Google Sheets.

The shapes JSON comes in

Your JSON looks likeWhat becomes the rows
[{...}, {...}] (an array of objects)Each object
{"data": [{...}, {...}]} (a wrapped API response)The array inside
{...} (a single object)One row
One object per line (JSON Lines)Each line

Nested objects become columns

JSON is often nested:

json
{ "id": 1, "name": "Rahul", "address": { "city": "Pune", "pin": "411001" } }

A table cannot hold a box inside a cell, so the converter flattens it into dotted column names: id, name, address.city, address.pin. Turn Flatten off if you would rather keep the whole address object as JSON text in one cell.

Lists inside a record

A field like "tags": ["new", "vip"] can be written as new; vip, which is easy to read in Excel, or kept as JSON text (["new","vip"]), which is better if you will convert the data back later.

Missing fields do not shift columns

Real data is uneven: one record has a phone number, another does not. The converter collects every key from every record and makes a column for each, in the order it first appears. Records without a value get an empty cell, so values never slide into the wrong column.

Make Excel open it correctly

Two settings prevent most problems:

  • Encoding. Excel only reads UTF-8 text correctly when the file starts with a byte-order mark. The downloaded CSV includes one, so names in Hindi, accented letters and the rupee sign display properly.
  • Separator. In countries that use a comma as the decimal mark, Excel expects semicolons. If all your data lands in one column, export again with Semicolon. Choose Tab for a .tsv file.

Values that contain commas, quotes or line breaks are wrapped in quotes automatically, so an address like 12, MG Road stays in one cell.

When your JSON is invalid

If the converter shows an error, the JSON itself has a problem, typically a missing comma, a trailing comma or a single quote instead of a double quote. Paste it into the JSON Formatter to find and fix the exact spot.

Going further

  • Need a real Excel workbook rather than CSV? Use JSON to Excel.
  • Need the reverse? CSV to JSON turns a spreadsheet back into JSON and detects numbers and true/false values.
  • Working with a CSV someone sent you? View it as a table with the CSV Viewer.

Common questions

Is my data uploaded? No. Everything is converted in your browser, so customer data stays on your device.

How large can the file be? Up to 30 MB can be opened; very large files may be slow on older phones.

Why do some values look like dates in Excel? Excel guesses types when it opens a CSV. To keep values exactly as text, import the CSV with Data → From Text/CSV and set the column type.

Was this article helpful?

Found this guide useful?

Share it with someone who is struggling with the same problem.

Free tool · No sign-up

JSON to CSV Converter

Convert JSON to CSV for Excel and Google Sheets. Nested objects become columns, every key from every row is kept, and you see a table preview as you type.

Open tool

Written by

Hemant Adhikari HemantInsights

Senior Software Engineer · Developer of Toolyconvert

I’m a senior software engineer from Dehradun, India, building websites since 2014. I designed and developed Toolyconvert, from the Next.js front end and headless WordPress back end to the tools themselves, and I review every guide before it goes live.