Convert Excel to an HTML Table
Select cells in Excel, Google Sheets or Numbers, copy, and paste them below. You get a clean HTML table with a real header row, no Office markup and no inline styles. You can also drop an .xlsx file. Everything runs in your browser.
Drop your file here or click to browse
Maximum file size: 10MB
How to convert an Excel table to HTML
- In Excel or Google Sheets, select the range including the header row and copy it.
- Click the text box above and paste. Cells detected on the clipboard are read directly; plain tab-separated text is parsed as a fallback.
- Pick a style preset, add a caption if you want one, and copy the HTML or download it.
If the first row of your selection is data rather than headings, switch off “First row is a header” and generic Column 1, Column 2… headings are used instead.
Why not use Excel’s own HTML export?
File → Save As → Web Page writes markup that carries every font, border, column width and number format as CSS classes plus Office-only XML, and it is designed to round-trip back into Excel. Pasting it into a CMS drags all of that along. The table this page generates contains only table, thead, tbody, tr, th and td, with an optional caption and class, so it takes the styling of the page you paste it into.
Works with
- Microsoft Excel (Windows and Mac) via copy & paste or .xlsx / .xls upload
- Google Sheets via copy & paste
- Apple Numbers and LibreOffice Calc via copy & paste, .ods upload for Calc
- Any CSV or tab-separated text, for example an export from a database or analytics tool
Frequently asked questions
- How do I convert an Excel table to HTML?
- Select the cells in Excel (or Google Sheets, Numbers, LibreOffice Calc), copy them, and paste into the box on this page. The clipboard carries a tab-separated copy and an HTML copy of the selection; the converter reads whichever is richer and builds a clean table from it.
- Can I upload an .xlsx file instead of pasting?
- Yes. Drop an .xlsx, .xls or .ods workbook in the upload box and the first sheet is converted. The spreadsheet parser is only downloaded when you actually drop a workbook, so the page stays light for everyone who just pastes.
- Are merged cells and formulas preserved?
- Formulas are replaced by their calculated values, which is what you see in the cells. Merged cells from a copy-paste are expanded into empty cells so every row has the same number of columns; colspan is not emitted.
- Why does Excel say "Save as Web Page" produce a huge file?
- Excel's HTML export reproduces fonts, borders, column widths and Office-specific XML for every cell. It is meant to be reopened in Excel. This converter emits only the table structure, so a 30-row sheet is a few kilobytes instead of a few hundred.
- Does the table stay responsive on mobile?
- The presets set width: 100% and let the browser handle wrapping. For very wide sheets, wrap the table in a container with overflow-x: auto on your site so it scrolls horizontally instead of breaking the layout.
- Is my spreadsheet uploaded anywhere?
- No. Pasting and file parsing happen in your browser. Nothing is sent to a server.
More free HTML converters
- Google Docs to HTML
Paste from a Doc, get clean semantic HTML.
- Word (.docx) to HTML
Upload a .docx and convert it in the browser.
- Markdown to HTML
Turn Markdown (or AI output) into HTML.
- CSV to HTML table
Upload a CSV and get a searchable table.
- JSON to HTML table
Arrays of objects become a table.
- HTML table generator
Type into a grid, copy the markup.