Excel to JSON with Sheet & Range Options
Convert Excel or CSV to JSON with full control: pick the sheet, set a cell range, choose the header row and the output format. For a quick first-sheet conversion with no settings, use the Quick Excel to JSON tool.
Upload Excel/CSV File
Drag & drop your file here
or
Conversion Options
JSON Output
No JSON Generated
Upload a file and click "Convert to JSON" to see the output
How the Excel to JSON converter works
Choose an .xlsx, .xls or .csv file of up to 5MB. The page reads the file in your browser with the SheetJS library, lists the real sheets it finds, and turns the rows of the sheet you pick into JSON. The page code runs in your browser and does not upload the file. Two external scripts are loaded: SheetJS from cdn.sheetjs.com (reads the file) and Tailwind CSS from cdn.tailwindcss.com (page styling).
Inputs, output and limits
Input: one .xlsx, .xls or .csv file of up to 5MB, a sheet, an optional range such as A1:D10, and the header row. Output: JSON text in the output box, which you can copy or download. Worked example: a sheet with the header row name, age and one data row Ann, 30 gives [{"name":"Ann","age":30}] as an array of objects. Messages: a wrong file type, a file over 5MB, an unreadable file, an invalid range and a sheet with no data rows each show a message above the upload area instead of output. Only the selected sheet is converted. Formulas are read as the values stored in the file. Cell formatting such as colors, merged cells and charts is not carried over.
Common mistakes
Picking the wrong header row so that a data row becomes the keys. Entering a range with a sheet name such as Sheet1!A1:D10 (enter only A1:D10). Expecting every sheet at once. Opening a file that is password protected, which cannot be read.
Steps
- Drop a file on the upload area or use Browse Files.
- Pick a sheet. Optionally enter a range such as A1:D10; leave it empty to use all data.
- Choose which row holds the column names (Row 1, Row 2, Row 3) or "No header row".
- Choose the output format and press Convert to JSON, then copy or download the result.
Output formats
- Array of objects: one object per row, with the header names as keys.
- Object with keys: the same objects stored under keys row1, row2, and so on.
- Minified JSON: the array of objects on one line.
- Pretty-printed JSON: the array of objects with indentation.
Frequently asked questions
What happens to empty header cells?
They are named column_1, column_2 and so on by position. Repeated header names get a number added, for example name and name_2.
With no header row, what are the keys?
Every row becomes an object with keys column_1, column_2 and so on.
How are dates and empty cells shown?
Date cells are written as ISO date-time text, and empty cells inside a row are written as null.
Does it read only one sheet?
It converts the sheet selected in the list. Select another sheet and convert again to get its JSON.
Which files work?
.xlsx, .xls and .csv up to 5MB. Other formats show an error message.