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,
trueandfalseas TRUE and FALSE, andnullas 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
- Open JSON to Excel.
- 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
.jsonfile. Press Sample to see a working example first. - 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."
- Look at the preview, and change the Excel options if needed.
- 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:00is shown as2026-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-31and 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 calledvalue.
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 thedatalist. 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.
Related tools
- Excel to JSON: turn a workbook back into JSON.
- JSON to CSV: a plain CSV file instead of a workbook.
- CSV to Excel: when your data is already a CSV.
- JSON Validator: find the line and column of a syntax error.
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.



