JSON to Excel
Convert a JSON array into .xlsx — keys become columns automatically. Paste or pick a file, no upload.
What is JSON to Excel
JSON to Excel conversion expands object keys into columns and each object into a row. Key order follows first appearance, and keys that only exist in some objects still get their own column (missing cells stay empty). Nested objects and arrays are written as JSON strings inside a single cell, so flatten them beforehand if you need separate columns.
File
🔒 Everything runs in your browser. Nothing is uploaded.
What this tool actually does with your file
- Where it runs
- In your browser, on this page
- Upload
- None — the file never leaves your device
- Offline
- Works with the network disconnected
Flattening nested data into rows
An array of objects becomes one row per object, with the union of all keys as the header. Objects that are missing a key simply leave that cell empty, so a ragged array still produces a clean rectangular sheet.
Nested objects are flattened with dot notation (customer.name becomes a column called customer.name), which keeps the meaning visible without inventing column names. Arrays inside an object are joined into a single cell rather than expanded into extra rows — expanding them would multiply the row count and lose the one-to-one mapping with the source records.
A top-level object that is not an array becomes a single row. That is the right behaviour for a config file or an API response describing one entity, and it is the case most converters get wrong by refusing to convert at all.
Types, nulls and very large values
Numbers stay numbers so they can be summed. Strings that look like numbers stay strings, which preserves leading zeros in postcodes and account numbers — and which is why a JSON export of numeric IDs sometimes arrives as text in one column and numbers in another.
null is written as an empty cell rather than the text «null». Writing the word would make COUNT and AVERAGE treat it as text and quietly exclude the row.
Integers longer than 15 digits lose precision the moment Excel stores them as numbers — that is a limit of the spreadsheet's floating-point format, not of the conversion. IDs, hashes and phone numbers with a leading plus should be forced to text.
How to use it
- 1.Paste JSON or choose a .json file
- 2.Click Run
- 3.Download the generated .xlsx
How JSON to Excel works under the hood
An .xlsx file is not a table — it is a ZIP archive of XML parts. Everything you see as a grid is rebuilt from cell references on this page, in memory, without a round trip to a server.
- 1
Read the file as bytes
The file is read into an ArrayBuffer with the File API. This is a local read, not a request — nothing leaves the tab.
- 2
Unzip and parse the workbook
SheetJS inflates the archive, reads workbook.xml for sheet order, sharedStrings.xml for text, and each sheet's XML for cells and types.
- 3
Rebuild rows in memory
Cells are placed by their A1 reference, gaps become empty cells, and the sheet is materialised as a two-dimensional array.
- 4
Write the output locally
The result is serialised to CSV text or a new workbook and handed to the browser as a Blob download.
Processing pipeline
Why formulas arrive as values
A spreadsheet stores two things per formula cell: the formula text, and the value Excel last computed and cached. A browser parser reads the cached value. Making the formula itself run would mean reimplementing Excel's calculation engine — including volatile functions, circular-reference detection and locale-specific parsing. So the exported CSV contains what you last saw on screen, not a live formula.
What has no CSV equivalent
Merged cells, cell fills, fonts, conditional formatting, comments and pivot tables have no representation in a comma-separated file. A merged cell becomes its value in the top-left position and empty cells elsewhere. Dates are written as dates only when the cell is typed as a date; a date stored as text stays text. These are format limits, not bugs.
Where it gets slow
Parsing is linear in cell count, and the browser holds the whole workbook in memory. A 30 MB file with a million populated cells can take several seconds and a few hundred MB of RAM; the tab may feel frozen while SheetJS works. Splitting the file by sheet, or exporting only the range you need, is faster than retrying with a bigger limit.
Verify it yourself
You do not have to take this on faith. Run the tool once with DevTools open.
- 1.Open DevTools on this page and switch to the Network tab
- 2.Keep the filter on Fetch/XHR and run the tool
- 3.Confirm no request carries your file — you should see only page assets and fonts
Frequently asked questions
What JSON shapes are accepted?
An array of objects, an array of arrays (a ready-made table), or a single object. Nested values are stored as JSON text in one cell.
My objects have different keys — will columns break?
No. The union of all keys becomes the header row and anything missing is left empty, so rows never shift.
Is my data uploaded?
No. Both the JSON parsing and the .xlsx assembly happen inside this page.
What this kind of conversion cannot keep
Spreadsheet conversion is lossy by nature: a workbook carries formulas, styles, merged cells and multiple sheets, while CSV carries rows of text. This tool keeps values and order, recalculates nothing, and drops presentation on purpose. That is why it can run without a server — and why a converted file will not look like the original.
More in Spreadsheets & Docs
On this page
- What is JSON to Excel
- What this tool actually does with your file
- How it actually behaves
- How to use it
- How it works inside
- Frequently asked questions
Excel formula reference
29 functions with syntax, arguments and a table you can retype.
Browse the list →