Excel to JSON converter (XLSX to JSON)
Convert an Excel sheet to a JSON array of objects using the first row as keys, or to an array of rows, ready for an API or a website.
Input
Tip: press Ctrl + Enter to run
Saved settings
About this tool
Developers often receive data as a spreadsheet and need it as JSON for an API, a configuration file, a static website or a test fixture. This converter reads an .xlsx sheet in your browser and gives you either an array of objects, using the first row as property names, or a plain array of rows.
Numbers stay numbers, empty cells become empty strings, rows that are completely empty are skipped, and date-formatted cells are written as readable dates.
How to use it
- Choose the .xlsx file and enter the sheet number.
- Choose “objects” to use the header row as keys, or “arrays” for raw rows.
- Run it and copy or download the JSON.
How the calculation works
The sheet is read from the workbook XML; with “objects” each subsequent row becomes {header: value}. Values keep their stored types and date-formatted numbers are converted to dates. Blank headers become column1, column2…; repeated headers get a _2, _3 suffix.
row n → { header₁: cell₁, header₂: cell₂, … }Worked example
A web developer receives a sheet of 40 store locations with columns name, city, lat and lng. Converting with “objects” gives [{"name": "Downtown", "city": "Calgary", "lat": 51.045, "lng": -114.06}, …], ready to load into a map script.
Sample input and result
Choose a file and press Run. The converted file downloads straight from your browser.
Limitations
- One sheet at a time; .xls is not supported.
- Merged cells and formatting are ignored.
- Large sheets produce large JSON that may be slow to display.
Last updated:
Frequently asked questions
What if two headers are the same?
The second one gets a suffix, such as price_2, so no data is overwritten.
Are empty cells included?
Yes, as empty strings, so every object has the same keys; completely empty rows are skipped.
Can I get nested objects?
Not directly; use dotted headers and restructure in code, or use JSON to Excel for the reverse.
Troubleshooting
Keys are column1, column2….
The first row must contain headers when using objects.
Dates look like numbers.
The cell may be formatted as a number in Excel; apply a date format and save.
Leading zeros were lost.
They were stored as numbers in Excel; format the column as text before saving.
Privacy & Free to use
Are my inputs stored?
Your inputs stay in this tab. We do not receive your files, pasted text or calculation values.
Is this tool free?
Yes. No signup or payment is required.
See also
Useful next steps
JPG to PNG converter
Convert JPG images to PNG in your browser, up to 30 at a time. PNG keeps every pixel and supports transparency, so it is best for screenshots, logos and graphics.
File convertersPNG to JPG converter
Convert PNG images to JPG in your browser, up to 30 at a time. JPG files are small and open everywhere, so they are best for photos and uploads to forms; transparent areas become white.
File convertersWebP to JPG converter
Convert WebP images to JPG in your browser, up to 30 at a time. JPG files are small and open everywhere, so they are best for photos and uploads to forms; transparent areas become white.
File converters