Excel to HTML Table Converter
CV-126Open an .xlsx workbook and get a plain HTML table for the sheet you pick, ready to paste into a page or an email template. Every value is escaped, and you can check the rendered table before you copy it.
Runs in your browser. Nothing is uploaded.
Excel file (.xlsx)
HTML
How to use it
- Press Open file or drop an .xlsx file on the left pane. Press Sample to try a small workbook.
- Pick a sheet, or All sheets to get one table per sheet with the sheet name as its caption.
- Leave First row as table header ticked to put the first row in a thead with th cells.
- Choose Table only or Full HTML page, press Preview to see it rendered, then Copy or Download.
What the HTML looks like
You get a table element with one tr per row and the same number of cells in every row, indented two spaces so it is easy to read and edit. With the header option on, the first row goes in a thead as th cells with scope="col", which helps screen readers. Rows with no values are left out. Full HTML page wraps the table in a small document with a doctype, a charset and a few lines of CSS for borders.
Escaping and line breaks
Cell text is escaped before it goes into the markup: & becomes &, < becomes <, > becomes > and double quotes become ". A cell that holds <b>bold</b> shows those characters as text instead of turning bold, so a spreadsheet cannot inject tags or scripts into your page. A line break typed inside a cell with Alt+Enter becomes a <br> tag, so multi-line cells keep their lines.
Values, not formatting
The table carries the values Excel saved, not how the sheet looked. Fill colors, fonts, borders, column widths, merged cells and conditional formatting are not copied, and a formula gives its last saved result. Dates come out as ISO text such as 2026-11-21, TRUE and FALSE stay in capitals, and a long ID such as a 20-digit account number keeps every digit. Style the table with your own CSS.
Error messages and what to do
| Message | What it means | Fix |
|---|---|---|
This is not an .xlsx file (it is not a ZIP package). Old .xls files are not supported; save as .xlsx first. | The file is not an Office Open XML workbook. It may be an old binary .xls file, a CSV renamed to .xlsx, or not a spreadsheet at all. | Open it in Excel or another spreadsheet program and save it as .xlsx, then open the new file. |
This ZIP file is not an Excel workbook (no xl/workbook.xml). Word and PowerPoint files are not spreadsheets. | The file is a ZIP package, but it has no workbook inside, for example a .docx or .pptx renamed to .xlsx. | Pick the real .xlsx file. For a Word file, use the Word to HTML converter instead. |
Questions people ask
How do I convert an Excel sheet to an HTML table?
Open the .xlsx file here, pick the sheet and copy the result. The table markup appears at once, with the first row as the header if you leave that option on. Press Preview to check it renders the way you expect before pasting it into your page.
Does it keep the cell colors and fonts from Excel?
No. It copies values only, so the HTML stays small and clean. Colors, fonts, borders, merged cells and column widths are left out. Add your own CSS to the table, or use the Full HTML page output, which includes simple borders as a starting point.
Can I convert every sheet in the workbook at once?
Yes. Choose All sheets in the Sheet list. Each sheet becomes its own table with the sheet name as a caption element, in the order the sheets appear in the workbook, separated by a blank line.
Is the HTML safe to paste into a web page?
Cell values are HTML-escaped, so text that looks like a tag or a script shows as plain text and never runs. The table itself uses only table, caption, thead, tbody, tr, th, td and br elements, with no inline styles or classes.
Is my spreadsheet uploaded anywhere?
No. The workbook is unpacked and read by your browser on this device, and the preview is drawn in a sandboxed frame that cannot load anything from the web. Nothing is sent to a server.
Why are some rows missing from the table?
Rows that hold no values at all are left out, so blank spacer rows in the sheet do not become empty table rows. A row with even one value is kept, and its empty cells become empty td elements so the columns line up.
About this tool
Reads .xlsx and .xlsm workbooks in your browser and writes a plain HTML table: a thead with th cells for the first row when that option is on, and a tbody with one tr per row. Every value is HTML-escaped, so text such as <b> shows as text and never becomes markup. Line breaks inside a cell become <br>. Rows with no values are left out and every row gets the same number of cells. Cell colors, fonts, borders, merged cells, number formats and formulas are not copied: you get the values, with dates as ISO text such as 2026-11-21. Old .xls files are not supported.