How to use the Excel to JSON
- 1
Open a workbook
Drop an Excel, ODS, Numbers or CSV file — a two-sheet sample is loaded first.
- 2
Choose sheet and shape
Array of objects, array of rows, or all sheets keyed by name.
- 3
Set options
Empty cells as null, dates as ISO strings and indentation.
- 4
Copy or download
Copy the JSON or save it as a .json file named after the workbook.
Features
Header keys
The first row names the fields.
Real types
Numbers and booleans stay unquoted.
Date choice
ISO strings or Excel serial numbers.
Null option
Keep every key in every object.
Whole workbook
All sheets in one object.
Never uploaded
Converted in your browser.
Who uses it — and for what
Web apps
Seed data for front-ends and tests.
APIs
Prepare request bodies from a sheet.
Content
Product or location lists for static sites.
Automation
Feed no-code tools that take JSON.
From spreadsheet to JSON
JSON is how web apps, APIs and databases exchange data, while people keep data in Excel. This converter reads your workbook and turns a sheet into an array of objects — each row becomes an object whose keys come from the header row — or into plain arrays of rows. Numbers stay numbers, true/false stay booleans and dates become ISO strings like 2026-10-15 instead of Excel’s serial numbers. Choose “All sheets” to export a whole workbook in one object keyed by sheet name.
Tips for clean output
- Put a single header row at the top with unique, simple names — they become your JSON keys.
- Remove merged cells and totals rows that aren’t real records.
- Formulas are exported as their calculated values.
- Need the opposite? Use JSON to Excel.
Spreadsheets are read with SheetJS, the library used by thousands of apps to open Excel files in the browser. It supports .xlsx, .xls, .xlsm, .xlsb, OpenDocument .ods, Apple Numbers and CSV files.
Your file is read by your own browser and never uploaded — safe for payroll, customer lists and other private data.
Values, not formatting
JSON receives each cell’s underlying value, not what the cell displays. A cell showing ₹2,450.50 exports as 2450.5, a cell showing 15% exports as 0.15, and a formula exports as its last calculated result. That is usually what code wants — format numbers again when displaying them. Dates are the exception people notice: Excel stores them as day counts (46295 is 30 September 2026, counting from the start of 1900), so the ISO option turns date-formatted cells into readable strings like 2026-09-30, adding the time when the cell has one.
Which output shape to choose
| Shape | Looks like | Best for |
|---|---|---|
| Array of objects | [{"SKU": "MUG-01", "Price": 9.5}, …] | APIs, JavaScript, most apps |
| Array of rows | [["SKU", "Price"], ["MUG-01", 9.5], …] | Sheets without a header row, or compact data |
| All sheets | {"Orders": [...], "Products": [...]} | Exporting a whole workbook in one file |
In the rows shape the header row is the first inner array. Choose “Minified” indentation for the smallest file, or 2 or 4 spaces for readability. To turn JSON back into a spreadsheet, use JSON to Excel.
Worked examples
One sample row as an object
With default options, the first order becomes {"Order": 1001, "Customer": "Priya Sharma", "Date": "2026-09-30", "Amount": 2450.5, "Paid": true, "City": "Mumbai"}. Untick “Dates as ISO strings” and Date becomes 46295 — Excel’s serial number for that day.
Missing values
If a row has no City, the key is simply left out of that object. Tick “Include empty cells as null” and it appears as "City": null, which is easier for code that expects every field to exist.
Pro tips
- Header text becomes the key exactly as typed — rename “Amount (₹)” to “amount” in Excel if your code expects simple keys.
- Check the result with the JSON Formatter if you plan to edit it by hand.
- Delete totals rows before converting so they don’t become fake records.
Glossary
- Serial number (date)
- Excel’s internal day count used to store dates.
- null
- The JSON value meaning “no value”.
- Minified
- JSON with all optional spaces and line breaks removed.
Frequently asked questions
Can it convert all sheets at once?
Yes — choose “All sheets” to get one JSON object keyed by sheet name.
How are dates handled?
They are converted to ISO date strings, unless you untick the option.
Is there a file size limit?
Only your browser’s memory; files with tens of thousands of rows work fine.
Why is a date showing as a number like 46295?
The ISO dates option is off, so Excel’s serial number is exported. Tick “Dates as ISO strings”.
Why does 15% become 0.15?
JSON gets the stored value; the percent sign is only display formatting.
Can I export without a header row?
Yes — choose Array of rows, which treats every row as data.
Last updated 2026-11-28 · Built by Vinayak Agarwal · Part of Data & Spreadsheets (8 tools)