How to use the Excel to JSON converter
- Choose or drop an
.xlsxfile. It is read in your browser and never uploaded. - Sheets: One sheet (pick it by number or name) or All sheets.
- First row is header: objects keyed by the header row, or arrays of rows when off.
- Indent: 2 or 4 spaces, tabs, or minified.
- Copy or Download
sheet.json, or open it in the JSON Viewer to explore it as a tree.
Example
The Sales sheet of the sample workbook becomes an array of objects with real types:
[
{
"Date": "2026-09-01",
"Region": "Hà Nội",
"Product": "Mechanical keyboard",
"Units": 42,
"Revenue (USD)": 3775.8,
"Paid": true
}
]
Units and Revenue (USD) are numbers, Paid is a boolean, and the accented text is kept exactly. With All sheets, the output looks like {"Sales": [...], "Targets": [...]}.
How values are read
Excel keeps a cell’s value separate from how it is displayed. This converter reads the value and the cell’s number format together:
- A number with a date or time format becomes ISO text, using whichever of the 1900 or 1904 date systems the workbook uses.
- Other numbers are written as Excel stored them, without thousands separators or currency signs.
- Shared strings, inline strings and rich text become plain strings, and error values such as
#N/Astay as strings. - A formula is replaced by its cached result. If a file has no cached result for some formulas, they become
nulland a warning says how many.
Column names are used exactly as written, so a header like __proto__ or constructor is an ordinary key in the output.
Tips
To flatten the JSON back into a spreadsheet later, use JSON to Excel or JSON to CSV. To check or reformat the output, paste it into the JSON Formatter. If you only need a flat file for another program, Excel to CSV is the simpler route.
Choosing between rows and objects
Objects are easiest to work with in code: row.Revenue is clearer than row[4], and the output survives reordered columns. Arrays of rows are smaller and keep duplicate or blank headers exactly as they are, which is handy for spreadsheets without a real header row, or when you plan to reshape the data yourself.
Frequently asked questions
How are rows turned into objects?
With First row is header on (the default), the first row gives the keys and every following row becomes an object. Empty header cells get the column letter as their key (C, D…), and repeated headers get a suffix such as name_2, so no column is lost. Turn the option off to get plain arrays of rows instead.
Are numbers and booleans kept as real JSON types?
Yes. Numbers stay numbers, TRUE and FALSE become true and false, empty cells become null, and dates become ISO text such as 2026-09-30, because JSON has no date type.
Can I convert every sheet at once?
Yes. Set Sheets to All sheets and the output is one object with a key per sheet name, each holding that sheet's rows or objects. Hidden sheets are included and flagged in a warning.
Is the file uploaded?
No. The workbook is unzipped and parsed in your browser, so the data never leaves your computer.
What about formulas, merged cells and .xls files?
Formulas come out as the value Excel saved with them. Merged cells keep their value in the top-left cell unless you turn on Repeat merged cells. Old .xls, .ods and password-protected files are recognised and explained, but not converted: save them as .xlsx first.
Last updated