Paste cells from Excel or upload an .xlsx file and get a JSON array of objects.
Paste cells from Excel or Google Sheets, or upload or drop an .xlsx, .xls, .ods or .csv file. Workbooks with several sheets get a Sheet picker.
Updates as you type. Copy it or download a .json file.
Converting…
This free Excel to JSON converter turns a spreadsheet into a JSON array of objects. Upload an .xlsx, .xls, .ods or .csv file, or just copy a range of cells in Excel and paste it into the editor. The first row becomes the property names, every following row becomes an object, and the result updates as you type.
The file is read in your browser, so the workbook is never uploaded anywhere. That matters when the sheet holds customer lists, prices or anything else you would rather not send to a server. There is nothing to install and no sign-up.
.xlsx, .xls, .ods or .csv file onto the Excel Data editor. Prefer to paste? Select cells in Excel or Google Sheets, copy them, and paste them in.data.json. If something is wrong with the input, the status bar says what.These cells were copied from a small product sheet. Numbers and TRUE/FALSE values are typed, the SKU codes keep their leading zeros, and the empty cells in the last row become null.
id name price in_stock sku added 1 Desk lamp 24.9 TRUE 00417 2024-05-06 2 USB hub 19 FALSE 00502 2024-05-09 3 Notebook TRUE 00618
[
{
"id": 1,
"name": "Desk lamp",
"price": 24.9,
"in_stock": true,
"sku": "00417",
"added": "2024-05-06"
},
{
"id": 2,
"name": "USB hub",
"price": 19,
"in_stock": false,
"sku": "00502",
"added": "2024-05-09"
},
{
"id": 3,
"name": "Notebook",
"price": null,
"in_stock": true,
"sku": "00618",
"added": null
}
]| Excel cell | JSON | Notes |
|---|---|---|
| Text | string | Quotes, commas and line breaks inside a cell are kept. |
| Number | number | Uploaded files give the stored value: a cell showing 25% becomes 0.25. |
TRUE / FALSE | true / false | Needs Convert numbers and booleans. |
| Date or time | ISO 8601 string | 2024-01-15, 2024-01-15T13:30:00 or 18:00:00. |
| Empty cell | null | Every column is kept, so all objects have the same keys. |
| Formula | its saved result | The value Excel last calculated, not the formula text. |
| Error such as #N/A | string | Written as the text "#N/A". |
| Merged cells | top-left cell only | The other cells in the merged range are empty. |
Excel stores a date as a serial number, the count of days since 1900, so a naive Excel to JSON conversion gives you values like 45306. When you upload a file, this converter checks each cell's number format and writes date cells as ISO 8601 text instead. Cells with a time get a T and the time, and time-only cells become 18:00:00. A plain number in a General-format cell is left alone.
Pasted cells are different: Excel puts the text it displays on the clipboard, so a pasted date is whatever the sheet shows, such as 1/15/2024. Upload the file if you need ISO dates.
When you upload a workbook with more than one sheet, the converter opens the first sheet that contains data and a Sheet picker appears above the editors. It lists every sheet with data in workbook order and leaves empty sheets out. Choosing a sheet loads its cells into the editor and converts them, so you can check each sheet's JSON in turn without uploading the file again. Each sheet is converted on its own; to get several sheets into one JSON document, convert them one at a time and combine the results.
A value such as 02134 or 0049170 would lose its leading zero as a JSON number, so it stays a string. The same goes for integers beyond 253 and decimals with more digits than a JavaScript number can hold. Values like 1,234 or $5 are not numbers either, so they stay text. Untick Convert numbers and booleans if you want strings everywhere. Note that a cell Excel stores as text, such as 123, is converted to a number while that option is on.
Header names are trimmed. An empty header becomes column_2 (using its column position), and a repeated header gets a suffix, so id, id becomes id and id_2. A trailing column with no header and no values is dropped.
Working the other way? The JSON to Excel converter builds an .xlsx file from a JSON array. If your data is already a CSV, try the CSV to JSON converter, and use JSON to CSV for the reverse. Once you have the JSON, the JSON Schema Generator can describe its structure, the JSON Generator makes more sample records, and our guide to seeding test databases in CI/CD shows where such data ends up.
Upload an .xlsx, .xls or .ods file, or copy cells in Excel and paste them into the Excel Data editor. The JSON appears as you type. Copy it, or click Download to save data.json.
The converter opens the first sheet that contains data and shows a Sheet picker listing every sheet with data. Choose another sheet to convert it instead; empty sheets are left out of the list.
When you upload a file, cells formatted as dates become ISO 8601 text such as 2024-01-15 or 2024-01-15T13:30:00 instead of Excel serial numbers like 45306. Cells you paste arrive as the text Excel displays, so a pasted date keeps whatever format the sheet shows.
With Convert numbers and booleans on, a value with a leading zero such as "02134" is kept as a string, because turning it into a number would drop the zero. Integers larger than 2^53 are also kept as strings, since a JSON number in JavaScript cannot hold them exactly.
Yes. Cells copied from Excel, Google Sheets, Numbers and LibreOffice Calc arrive as tab-separated text, which the converter reads directly. Include the header row and leave First row is header ticked.
No. The file is read and converted in your browser with JavaScript, so the contents never leave your device. That makes it safe for spreadsheets with customer or financial data.
Yes. Use the JSON to Excel converter, or click Swap direction above the editors, to turn a JSON array into an .xlsx file you can open in Excel.