Skip to content
CornerTools

Excel to JSON Converter

Convert Excel sheets to JSON or CSV: pick the sheet and the header row, with dates, times and empty cells handled correctly.

Drop an Excel file here, or

Your files never leave your device

Reads .xlsx and .xlsm up to 50 MB · converted in this browser

Turns a sheet of an Excel workbook (.xlsx or .xlsm) into a JSON array of objects, one per row, or into CSV. Open the file and pick the sheet: the preview marks the header row found, and a click on another row changes it. Numbers stay numbers, dates and times become ISO text, and empty cells are handled the way you choose. You can also paste cells copied from Excel or Google Sheets. The workbook is read in your browser and never uploaded.

How to use it

  • Open a workbook of up to 50 MB, or drop it on the page. Older .xls workbooks, password-protected ones and OpenDocument (.ods) files are refused with a message: save them as .xlsx first.
  • Sheet lists every sheet in tab order. Hidden sheets are marked and can be converted; chart sheets are listed but hold no cells. All sheets gives one JSON object keyed by sheet name, or, for CSV, a ZIP of one .csv file per sheet.
  • The header row starts as the first row holding at least half as many values as the fullest of the sheet's first 20 rows, so a title above the table is passed over; click another row in the preview to change it. The preview shows the first 100 rows with Excel's row numbers and column letters. Rows above the header are left out, and the output says how many. No header row writes each row as an array instead of an object. With All sheets, the row chosen applies to every sheet; a sheet with nothing at or below it is left out and named.
  • Empty cells (JSON only): left out of their row's object by default, or written as null or "". In arrays, left out means trailing empty cells are dropped and inner ones are null.
  • Fill merged cells: Excel keeps a merged range's value in its top left cell only, so by default the other cells read as empty. On, every cell of the range takes the value.

The table spans the columns that hold a value at or below the header. A blank header cell becomes column_C (its column letter) and a repeated name is numbered, name_2; both are listed under the output. Empty columns inside the table are kept; rows with no value are left out. A line break inside a cell becomes \n.

Pasted cells arrive as the text each cell shows: plain numbers and TRUE or FALSE are typed, while shown forms such as 1,234.50 or 28/02/2026 stay text. Open the file itself for real dates and numbers.

How dates and numbers are read

Excel stores a date as a number of days, a serial, and a time as the fraction of a day; only the cell's number format shows it as a date. The converter reads the format of each cell: one with a day or a year and a time (dd/mm/yyyy hh:mm) gives a date-time, midnight included, rounded to the second; one with a day or a year alone (dd/mm/yyyy) gives a date, or a date-time where the serial holds a time the format hides; one with only hours, minutes or seconds (h:mm) gives a time of day; elapsed time ([h]:mm:ss, [mm]:ss) gives the whole duration in hours, minutes and seconds. Any other format, such as a percentage, gives the stored number: the tool reads values, not their display.

Workbooks count serials from one of two starts. The 1900 system, Excel's default, counts 1 January 1900 as day 1 and treats 1900 as a leap year, as Lotus 1-2-3 did, so serial 60 is a 29 February 1900 that never existed and every later serial is a day ahead of a true count. The converter writes serial 60 as 1900-02-29, just as Excel shows it. The 1904 system, used by old Mac workbooks, counts from 1 January 1904 as day 0; the workbook says which it uses, and the converter follows it. Dates before 1900 cannot be serials at all: Excel holds them as text, and they stay text.

Numbers are written as Excel shows them in General format, to 15 significant digits, the precision Excel keeps: 0.1 + 0.2 stored as 0.30000000000000004 becomes 0.3. An error such as #N/A becomes null in JSON and stays as Excel shows it in CSV, and a formula is read as the result Excel saved with it; both are counted under the output.

Examples

A sheet with a title above the table

Row 1 holds a title and row 3 the column names, with Joined formatted as a date and Hours empty for Ben Lee. Row 3 holds the most values, so it is the header without a click; the one-cell title in row 1 is passed over:

Row 1
Staff list, March 2026
Row 2
(empty)
Row 3
Name | Joined | Hours
Row 4
Asha Rao | 1 Apr 2024 | 37.5
Row 5
Ben Lee | 17 Nov 2025 |
JSON
[
  {
    "Name": "Asha Rao",
    "Joined": "2024-04-01",
    "Hours": 37.5
  },
  {
    "Name": "Ben Lee",
    "Joined": "2025-11-17"
  }
]

The title row is left out, Ben Lee's empty Hours cell is left out of his object, and the dates come out as ISO text.

Dates, times and a percentage

What a sheet stores and the format it shows it in, and the value each cell gives in JSON:

46081 as dd/mm/yyyy
"2026-02-28"
46081.6041666667 as dd/mm/yyyy hh:mm
"2026-02-28T14:30:00"
46082 as dd/mm/yyyy hh:mm
"2026-03-01T00:00:00"
0.604166666666667 as h:mm
"14:30:00"
1.5 as [h]:mm:ss
"36:00:00"
1.5 as [mm]:ss
"36:00:00"
0.25 as 0%
0.25

Quick reference

Serials as dates in the two date systems
Serial1900 system1904 system
11900-01-011904-01-02
591900-02-281904-02-29
601900-02-291904-03-01
611900-03-011904-03-02
46,0812026-02-282030-03-01

Frequently asked questions

No. The older .xls format is a different binary format; open it in Excel, LibreOffice or Google Sheets and save it as .xlsx, then open that here. A password-protected .xlsx is stored the same way as an .xls and is refused with the same message.
Excel saves each formula's last result beside it, and the converter reads that result. Files written by some programs and libraries hold the formula without a result; the converter does not calculate formulas, so those cells are null and counted under the output. Open the file in Excel and save it to store the results.
A merged range keeps its value in the top left cell, so by default only that cell has it. Turn on Fill merged cells to repeat the value in every cell of the range, useful when a merged label covers several rows.
Yes, where the cell holds text, as an ID typed with a leading apostrophe or in a Text-formatted cell does: "007" stays a string. A number shown with zeros by a format such as 000 is stored as 7 and comes out as 7.
A percentage is a number shown through a format: the cell stores 0.25. The converter writes stored values, so sums and comparisons in your code work on the real number.

See also