To convert Excel to JSON, open our free Excel to JSON converter, drop in an XLSX, XLS or ODS file, pick the sheet and click Download JSON. You get an array of objects: one object per row, with the header row as the keys. The workbook is read in your browser and never uploaded. Below is exactly what happens to headers, numbers, dates, blank cells and codes with leading zeros, so the JSON works the first time you load it in code.
A worked example
Here is a small example sheet called Products, shown as the cells display it:
| SKU | Product name | Price | In stock | Added on |
|---|---|---|---|---|
| 00412 | Desk lamp | 24.5 | TRUE | 2026-11-03 |
| 00413 | Desk lamp, large | 1,250 | FALSE | 4 Nov 2026 |
| 00414 | Lamp shade | 15% |
With the default settings, the converter writes this:
[
{
"SKU": "00412",
"Product name": "Desk lamp",
"Price": 24.5,
"In stock": "TRUE",
"Added on": "2026-11-03"
},
{
"SKU": "00413",
"Product name": "Desk lamp, large",
"Price": 1250,
"In stock": "FALSE",
"Added on": "4 Nov 2026"
},
{
"SKU": "00414",
"Product name": "Lamp shade",
"Price": "15%",
"In stock": "",
"Added on": ""
}
]
Every choice in that output follows a rule, and each rule is explained below. Three are worth spotting now: the SKUs keep their zeros, 1,250 became the number 1250, and the two dates came out in two different formats because the cells were formatted differently.
Step by step
- Open the Excel to JSON converter.
- Choose or drop one file: .xlsx, .xls or .ods, up to 50 MB. The tool works on one file at a time.
- If the workbook has more than one sheet with data, pick the one you want in the Sheet list. Each option shows the sheet name and its number of rows.
- Check the preview. It shows the first 100 rows and a count of rows and columns; the download includes every row.
- Leave Save numbers as numbers (Excel and JSON). Leading zeros are always kept. ticked, or untick it to make every value a string.
- Click Download JSON. The file is named after your workbook, so products.xlsx gives products.json. Download Excel and Download CSV are there too.
How the keys are made
The keys come from the header row, with a few rules:
- The first non-empty row is the header. Rows that are completely empty are skipped anywhere in the sheet. If your sheet has a title such as "Stock list, November" above the real header, that title becomes the header, so delete it first.
- Header text is kept as written. Spaces at the ends are trimmed and runs of spaces become one, but nothing else changes. "Product name" stays "Product name", with its space and capital letter. If your code expects keys like product_name, rename the headers in the sheet before converting.
- An empty header cell is named by its position, such as column_4.
- A repeated header gets a number. Two columns called Price become Price and Price_2. The check ignores case, so Email and email also become Email and email_2.
- Every object has every key, in the same order, from the first column to the last column that holds any data.
How the values come out
The converter reads each cell as it is displayed, not as Excel stores it underneath. Then, with the number option on, values that look like plain numbers become JSON numbers. Everything else is a string.
| Cell shows | JSON value | Why |
|---|---|---|
| 24.5 | 24.5 | A plain number |
| 1,250 | 1250 | Thousands separators are understood |
| -3.25 | -3.25 | Minus signs are fine |
| 00412 | "00412" | Starts with a zero, so it stays a string |
| 1234567890123456 | "1234567890123456" | 16 characters or more always stay a string |
| 15% | "15%" | Symbols stay as written |
| $99 | "$99" | Same rule |
| TRUE | "TRUE" | Shown as text, so it stays text |
| 2026-11-03 | "2026-11-03" | Dates are taken as displayed |
| (empty cell) | "" | Blanks are empty strings, not null |
With the number option off, every value is a string exactly as displayed, so 24.5 becomes "24.5".
Two things follow from this. If your code needs true and false, or null for blanks, convert those fields after loading. And if a number arrives as a string, look at how the cell is formatted in Excel, because the format decides what the cell shows.
Dates: set the format before you convert
Because dates are taken as displayed, a column can mix formats, as the example shows. The fix is quick in Excel: select the date column, open Format Cells, choose Custom and type yyyy-mm-dd. Every date then comes out like "2026-11-04", a single fixed format that is easy to parse in any language.
Long numbers and ID columns
Long numbers need care. A long number in a cell with the General format is shown in scientific notation, such as 1.23457E+11, and that text is what goes into the JSON. Format the column as Number with no decimals, or store the IDs as text, before you convert. Excel also keeps only 15 significant digits of any number, which our guide to Excel scientific notation and long numbers explains.
Watch out for ID columns that mix styles. If one order ID is 00123 and another is 457, the first stays the string "00123" and the second becomes the number 457. Code that compares IDs will then miss matches. When a column holds codes rather than amounts, untick the number option so every ID is a string, and convert the amount fields in code instead.
Workbooks with several sheets
- JSON holds one sheet. The page says so: "CSV and JSON contain the table you are viewing. Excel contains every table, one per sheet."
- Empty sheets are skipped and do not appear in the list.
- Hidden sheets and hidden rows are included. The converter does not skip them, so unhide and check them, or delete what you do not want.
- Converting every sheet means picking each in turn and downloading. Each download uses the workbook's name, so rename each file as you save it.
Formulas give the value the cell shows, not the formula itself. Colours, comments and images are ignored, because only cell values are read.
Limits and messages
| Situation | What happens |
|---|---|
| File types | .xlsx, .xls and .ods |
| File size | Up to 50 MB |
| Columns | Up to 2,000 |
| Password protected workbook | "is password protected. Please remove the password in Excel and try again." |
| Workbook that unpacks to a very large size | "unpacks to more data than a browser can safely handle. Please split it into smaller files." |
| No data anywhere | "has no data in any sheet." |
| More than one file dropped | "This tool works on one file at a time. Please choose just one file." |
The file is read on your device, which matters for price lists, customer lists and staff exports you would rather not hand to a server you know nothing about.
Using the JSON in code
The file is standard JSON (RFC 8259), so any language can read it. Because keys can contain spaces, use bracket access rather than dot access.
In JavaScript, after reading the file into a string (JSON.parse on MDN):
const rows = JSON.parse(text);
for (const row of rows) {
console.log(row["SKU"], row["Product name"], row["Price"]);
}
In Python:
import json
with open("products.json", encoding="utf-8") as f:
rows = json.load(f)
print(rows[0]["SKU"]) # "00412", still a string
To describe the structure for an API or an AI tool, paste a sample into our JSON Schema generator.
Other routes
- From Google Sheets: use File > Download > Microsoft Excel, then open the file here.
- From a CSV: use CSV to JSON, which applies the same zero and number rules; our guide to CSV to JSON with IDs kept as strings covers it.
- Back the other way: JSON to Excel turns JSON into a workbook.
Frequently asked questions
What does the JSON look like?
An array of objects. Each row of the sheet is one object, each column header becomes a key, and every object has the same keys in the same order.
My workbook has several sheets. Which one is converted?
The one you pick in the Sheet list. The JSON download holds that sheet only. Pick another sheet and download again if you need more; the Excel download holds every sheet.
Why is my date a string?
The converter takes each cell as it is shown, so a date comes out as the text the cell displays. Set the column's format to yyyy-mm-dd before converting if your code needs one fixed date format.
Why are some IDs numbers and others strings?
With the number option on, plain numbers become JSON numbers, while codes with a leading zero stay strings. A mixed ID column can therefore hold both. Untick the option to keep every value as a string.
Is my Excel file uploaded?
No. The file is read in your web browser on your own computer and is never sent to a server.
Can I convert a Google Sheet to JSON?
Yes. In Google Sheets, use File > Download > Microsoft Excel, then open that file in the converter.
Spotted an error? Write to dealmahal.official@gmail.com.
Questions or corrections: dealmahal.official@gmail.com.