JSON to Excel Converter
Paste JSON or drop a file and download a real .xlsx workbook with a bold header row and filters. Nested objects become columns, and nothing leaves your browser.
JSON input
Excel preview
Your spreadsheet will appear here. Paste JSON on the left or press Load sample.
Choose columns
Options
How to convert JSON to Excel
- Add your JSON. Paste it into the input box, drop a .json or .jsonl file onto the page, or press Load sample to see how it works.
- Check the preview. The table shows the first 100 rows as they will appear in Excel. If your records sit inside an object, such as an API response, choose the right array under Rows come from. Hide any columns you do not want.
- Download the workbook. Download Excel (.xlsx) saves a file you can open in Excel, Google Sheets, LibreOffice or Numbers.
The preview updates as you type or change an option, so there is no convert button to press.
JSON in
[
{"id": 1, "name": "Ava", "zip": "00501",
"paid": true, "address": {"city": "Austin"}},
{"id": 2, "name": "Omar", "zip": "78701",
"paid": false, "address": {"city": "Lisbon"}}
]
Sheet in Excel
id name zip paid address.city
1 Ava 00501 TRUE Austin
2 Omar 78701 FALSE Lisbon
Why an .xlsx file instead of a CSV
A CSV is plain text, and Excel guesses what each cell means when it opens one. An .xlsx file states it, so the guesses stop. This is what you get from the workbook that this page builds:
- Text stays text. A JSON string such as
"00501"is stored as text, so the zip code keeps its leading zeros. Long IDs and phone numbers are not turned into scientific notation. - Numbers and booleans are real. JSON numbers arrive as numbers you can sum and sort, and true and false arrive as TRUE and FALSE.
- No delimiter or encoding trouble. The file does not depend on your regional list separator, and accented letters, Arabic, Chinese and emoji display correctly.
- Ready to work with. The header row is bold, frozen at the top and has filter arrows, and the column widths fit the data.
- Nothing runs as a formula. Text that starts with
=,+,-or@is stored as text, so an untrusted value cannot execute when you open the file.
The workbook has one sheet. If you need plain text instead, the JSON to CSV converter writes a CSV with the same options.
Convert nested JSON to Excel
A worksheet is a flat grid, and JSON is not. When a record contains an object, each inner key becomes its own column and the path is joined with a dot, so address.city becomes a column named address.city. You can change the separator, or keep nested objects as JSON text in a single cell.
Arrays can be handled four ways, and you choose under Options:
- Index columns writes
tags.0,tags.1and so on. It suits short arrays. - Join values puts a list such as red; blue into one cell. It suits tags and labels.
- Expand into rows writes one row per item and repeats the other fields. It suits order lines and events.
- Keep as JSON text leaves the array untouched in one cell.
Expand into rows writes every combination when a record holds several arrays. It stops with a message if the result would pass one million rows.
Excel limits this converter checks for you
According to Microsoft's specifications, a worksheet holds at most 1,048,576 rows and 16,384 columns, and a single cell holds at most 32,767 characters. Excel also keeps only 15 significant digits of a number.
- If your data needs more rows or columns than a sheet allows, the converter says so and turns the download off instead of writing a broken file.
- If a cell is longer than 32,767 characters, it is shortened and you are told how many cells were affected.
- Integers longer than 15 digits are kept as text, so IDs from many APIs keep every digit.
The file is read and built entirely in your browser, so very large inputs depend on your device's memory. Files over 300 MB are rejected before loading.
What this converter does
- Private by design
- The workbook is built in your browser with JavaScript. Your JSON is not sent to a server, so it is safe to use with internal or customer data.
- JSON and JSON Lines
- It reads a normal JSON document or a JSON Lines file (also called NDJSON) with one record per line, and tells you the line number if something is invalid.
- Finds the records for you
- Paste an API response such as
{"data": [...]}and the largest array of records is picked automatically. Choose another array to export that one instead. - Choose your columns
- Click a column name under Choose columns to leave it out of the workbook.
- Why not just a CSV?
- Excel changes long IDs and drops leading zeros when it opens a CSV. Read why it happens and how to stop it.
Frequently asked questions
How do I convert JSON to Excel?
Paste your JSON into the input box, or drop a .json or .jsonl file onto the page. Check the preview, then press Download Excel (.xlsx). The file opens in Excel, Google Sheets, LibreOffice and Numbers. There is no convert button, and the preview updates as you change an option.
Is my JSON uploaded to a server?
No. The workbook is built by JavaScript in your browser, and your data is never sent anywhere. That makes it safe for customer records and internal exports.
Why does my zip code keep its leading zeros?
Because JSON strings are written to the workbook as text. A value such as "00501" stays 00501. A CSV opened in Excel would lose the zeros, since Excel guesses that the cell is a number. JSON numbers, in contrast, are written as real numbers.
What is the difference between this and the JSON to CSV converter?
The CSV converter writes plain text that you can feed into other tools, with options for the delimiter and quoting. This page writes a finished .xlsx workbook with a formatted header, filters and typed cells. Both use the same rules for flattening nested JSON.
Can it convert nested JSON or an API response?
Yes. Nested objects become columns named with dots, such as address.city. If the records sit inside an object, such as {"data": [...]}, the largest array is chosen for you, and you can pick another one under Rows come from. Arrays can be indexed, joined, expanded into rows or kept as JSON text.
How many rows and columns can the Excel file hold?
A worksheet holds up to 1,048,576 rows and 16,384 columns, and a cell holds up to 32,767 characters, according to Microsoft. If your data needs more rows or columns, the converter tells you and disables the download. Cells that are too long are shortened and reported.
Will long IDs lose digits?
No. Excel keeps only 15 significant digits of a number, so integers longer than that are kept as text, and every digit survives. The same applies when the JSON is read: IDs that plain JavaScript would round are preserved.
Does it make .xls files or several sheets?
It makes .xlsx files, the format used by Excel 2007 and later, with one sheet. To export a different array from the same JSON, choose it under Rows come from and download again.
How are dates handled?
JSON has no date type, so dates arrive as text such as 2026-01-15. They stay exactly as written. If you want Excel to treat them as dates, convert the column in Excel, for example with the DATEVALUE function.
Can text that starts with an equals sign run as a formula?
No. Every text value is stored as text in the workbook, so a cell that begins with =, +, - or @ is displayed rather than calculated. That protects you when the JSON comes from an untrusted source.