Skip to the content

Contact usFree tools · No signup · Files stay on your device

Developer Tools

JSON to Excel: the complete guide to turning JSON into a spreadsheet

JSON to Excel: the complete guide to turning JSON into a spreadsheet

An API gives you JSON, but the person who needs the data wants a spreadsheet. Our free JSON to Excel tool turns JSON into a real .xlsx workbook in your browser: keys become the header row, nested objects become columns, and numbers, true/false values and dates keep their type so Excel can sort, filter and add them.

This guide shows which JSON shapes work, what happens to nested data and arrays, and how to avoid the traps with dates and long numbers. For the opposite direction, see the Excel to JSON guide.

What JSON to Excel does

It reads JSON text, decides how to lay it out as rows and columns, and writes an Excel workbook with:

  • A bold header row that stays visible when you scroll and has filter buttons (both optional).
  • Numbers as numbers, true and false as TRUE and FALSE, and null as an empty cell.
  • Dates written as ISO text turned into real Excel dates (optional).
  • Column widths fitted to the content.

It does not change the meaning of your data, remove duplicates or write formulas. It also does not fetch JSON from a URL: you paste the text or open a file.

How to use JSON to Excel, step by step

  1. Open JSON to Excel.
  2. Paste your JSON into the box labelled "Paste JSON: a list of objects, a list of lists, or an object of lists (one sheet per key)". Or press Open file and choose a .json file. Press Sample to see a working example first.
  3. Read the information note above the preview. It tells you how the JSON was understood, for example "A list of objects: the keys became the header row."
  4. Look at the preview, and change the Excel options if needed.
  5. Press "Download .xlsx". A note confirms the file name and size.

The file is called after the JSON file you opened, with .xlsx at the end, or data.xlsx if you pasted the text.

The five JSON shapes

Your JSON looks like Result
[{"a":1},{"a":2}] a list of objects One sheet. The keys become the header row.
[[1,2],[3,4]] a list of lists One sheet. Each inner list becomes a row, as it is. No header is added.
{"Dhaka":[…],"Sylhet":[…]} an object of lists One sheet per key, named after the key.
{"a":1,"b":2} a single object One row, with the keys as headers.
"hello" or 42 a single value One cell.

The object-of-lists shape applies only when every value in the object is a list. If even one is not, the whole object becomes a single row.

Every option explained

Arrays inside a value

A value that is itself a list, such as "tags": ["paid","dhaka"], stays in one cell. You choose how it is written:

  • As JSON text (the default): ["paid","dhaka"].
  • Joined with commas: paid, dhaka. Only lists of plain values are joined; if the list holds objects, those stay as JSON text.

Turn ISO dates into Excel dates

Ticked by default. A string such as 2024-01-15 or 2024-01-15T10:30:00Z becomes a real Excel date, shown as yyyy-mm-dd, with the time added when there is one. You can sort and filter these as dates.

Details worth knowing:

  • A time with an offset is converted to UTC. 2026-03-02T09:30:00+06:00 is shown as 2026-03-02 03:30:00, which is the same moment. Add six hours in Excel if you want Bangladesh time, or untick the option to keep the original text.
  • Impossible dates such as 2024-02-31 and dates before 1900 stay as text.
  • Untick this box when an ID or code happens to look like a date.

Bold header row that stays visible

Ticked by default. Row 1 is bold and frozen at the top. Untick it if your first row is ordinary data. This setting applies to every sheet, including a list of lists, where the first inner list is simply your first row.

Filter buttons on the header

Ticked by default. Adds the filter drop-downs to row 1 over the full width and length of the sheet.

How nested data is flattened

Nested objects are flattened into columns named with a dot. A record like this:

{
  "orderId": "BD-20418",
  "customer": { "name": "Rahim Uddin", "phone": "01712345678" },
  "tags": ["paid", "dhaka"],
  "paid": false,
  "date": "2026-03-01",
  "total": 2101
}

gives these columns: orderId, customer.name, customer.phone, tags, paid, date and total.

Columns are collected from every record in the order they first appear. If the second record has no customer.phone, its cell is empty. A key that appears only in later records still gets its own column.

Two more rules:

  • An empty object {} is written as the text {}.
  • Items that are plain values rather than objects, such as [1, 2, "x"], go into a single column called value.

If two keys flatten to the same column name, for example a key literally called "a.b" and a nested a containing b, the later value wins and a warning explains it.

What it accepts and its limits

  • Input: valid JSON. Comments, single quotes, unquoted keys and trailing commas are errors.
  • Errors: shown as "Invalid JSON at line 3, column 12: …", with the reason. Fix that spot and the preview appears. The JSON Validator explains each message in detail.
  • Rows and columns: Excel allows 1,048,576 rows and 16,384 columns per sheet. Anything beyond is dropped, with a warning that says how many.
  • Large input: above 2 million characters, the page stops converting as you type. A Convert button appears, with a note such as "Large input (2.4 MB): converts when you click." If you change the text afterwards, a warning says "The input changed since the last conversion. Click Convert to update."
  • Preview: the first 100 rows of the selected sheet. The download contains all of them. With several sheets, a Preview sheet list lets you switch.
  • Sheet names: Excel's rules apply (31 characters at most, no : \ / ? * [ ]).

Privacy

JSON to Excel runs in your browser. Your JSON is read and the workbook is built on your device; nothing is sent to a server. You can safely use it with customer records or internal API output, although you should still be careful with live passwords or secret keys.

Dates, numbers and IDs

Numbers stay numbers. 2101 and 720.5 arrive as numbers. A whole number of 1,000,000,000,000,000 or more is written as text, because Excel keeps only 15 digits.

But read this about long IDs. The browser reads your JSON before the converter sees it, and JavaScript cannot hold whole numbers above 9,007,199,254,740,991 exactly. A JSON value of 12345678901234567890 is already rounded by then, and the tool writes 12345678901234567168 as text, a nearby value that was never in your data. The cure is on the sending side: put long IDs, card-like numbers and transaction numbers in quotes so they are strings.

Phone numbers are safe as strings. "01712345678" stays as text with its zero. Written without quotes, 01712345678 is not valid JSON at all, because numbers cannot start with a zero.

A worked example

Paste this list of two orders:

[
  {"orderId":"BD-20418","customer":{"name":"Rahim Uddin","phone":"01712345678"},"tags":["paid","dhaka"],"paid":false,"date":"2026-03-01","total":2101},
  {"orderId":"BD-20419","customer":{"name":"Nusrat Jahan"},"tags":[],"paid":true,"date":"2026-03-02T09:30:00+06:00","total":720.5}
]

The info note says it is a list of objects. The preview shows 2 rows and 7 columns:

orderId customer.name customer.phone tags paid date total
BD-20418 Rahim Uddin 01712345678 ["paid","dhaka"] false 2026-03-01 2101
BD-20419 Nusrat Jahan [] true 2026-03-02 03:30:00 720.5

Switch "Arrays inside a value" to "Joined with commas" and the tags cells read paid, dhaka and an empty cell. In the downloaded workbook the paid column holds real Excel TRUE and FALSE values.

Tips to work faster

  • Run the JSON through the JSON Formatter first if you want to see its structure. A tree view makes it clear whether you have a list of objects or an object wrapping a list.
  • If the response has a wrapper such as {"status":"ok","data":[…]}, copy only the data list. Otherwise it becomes a single row with the list in one cell.
  • Keep the same keys in every record. Missing keys are fine, but renamed keys create extra columns.
  • For a flat CSV rather than a workbook, JSON to CSV is the shorter route.

Common problems and how to fix them

"Invalid JSON at line 1, column 1"

If the text starts with <, you copied an HTML page, such as a login or error page, instead of JSON. For other messages, see what "unexpected token" means in JSON.

Everything is in one row

Your JSON is a single object, or an object with a mix of lists and other values. Find the list inside it and paste only that.

The sheet is called Sheet1, not what I wanted

Sheet names come from the keys of an object of lists. A plain list always gives Sheet1; rename the sheet in Excel.

Columns like address.city are awkward

That is how nesting is shown. Rename the headers in Excel, or flatten the JSON in your code first.

"This sheet has no rows."

The list was empty, so there is nothing to show. The warning "there are no rows, so the sheet is empty" appears with it.

Quick checklist

  • Paste a list of objects for the simplest result.
  • Send long IDs and phone numbers as strings.
  • Check the date option if a code looks like a date.
  • Copy the inner list when the response has a wrapper.
  • Validate the JSON when you see an error.

Frequently asked questions

What JSON can I convert to Excel?
A list of objects (keys become the header row), a list of lists (each inner list becomes a row), an object whose values are lists (each key becomes a sheet), or a single object (one row). Other values, such as a lone string, become one cell.
What happens to nested objects?
They are flattened into columns named with a dot, so {"customer":{"name":"Rahim"}} gives a column called customer.name. Arrays inside a value stay in one cell, as JSON text or joined with commas.
Why did my date change to a different time?
ISO dates with a time and an offset, such as 2026-03-02T09:30:00+06:00, are converted to UTC before they become Excel dates, so that example shows 2026-03-02 03:30:00. Untick the date option to keep the original text.
Why do long numbers in my JSON look wrong in Excel?
Browsers cannot hold whole numbers above 9,007,199,254,740,991 exactly, so the digits are already rounded when the JSON is read. Send long IDs as strings, in quotes, and they arrive unchanged.
Is there a limit on rows and columns?
Excel allows 1,048,576 rows and 16,384 columns per sheet. If your data has more, the extra rows or columns are dropped and a warning tells you how many.
Found this useful? Share it

Tools in this guide

Main tool

JSON to Excel

Paste or open JSON and download a real Excel workbook: keys become the header row, nested objects become columns like address.city, and numbers.

Open tool

Excel to JSON

Turn a spreadsheet into JSON you can use in code: an array of objects keyed by your header row, or plain arrays.

Open tool

JSON Formatter

Paste messy or minified JSON to get clean, indented output instantly — or minify it for production.

Open tool

JSON Validator

Check whether your JSON is valid and get the exact line, column and reason for any error.

Open tool

Back to all guides & blog