Skip to the content

Contact usFree tools · No signup · Files stay on your device

Excel to HTML Table Converter

Get clean table code from a spreadsheet: open an .xlsx or .csv file or paste copied cells, choose your styling, and copy the HTML or a Markdown table. Cell text is always escaped, and numbers line up on the right.

  • PrivateYour data never leaves this device
  • No uploadsProcessed in your browser, not on a server
  • 100% freeNo signup, no watermark, no trial
  • UnlimitedUse it as often as you like, no daily caps

How we protect your privacy →

Excel or CSV file

or drop a file here, or paste with Ctrl+VProcessed in your browser — files are never uploaded.
Tab-separated (copied cells), comma, semicolon and pipe are detected automatically.
Opens .xlsx and .csv. An old .xls file needs to be saved as .xlsx first. Converted in your browser: nothing is uploaded.
Was this tool helpful?
How it works

How to use the Excel to HTML Table.

4 short steps. Nothing to install, nothing uploaded.

  1. 1

    Choose an .xlsx or .csv file, or paste cells copied from Excel or Google Sheets.

  2. 2

    Pick the sheet and set the options: header row, styling, number alignment, caption and rows to include.

  3. 3

    Check the live preview.

  4. 4

    Copy the HTML or switch to Markdown, or download the file.

Guides

Guides for Excel to HTML Table

All

How to make a Markdown table from Excel or Google Sheets

Copy cells from Excel or Google Sheets and get a Markdown table in seconds: aligned columns, right-aligned numbers, escaped pipes and a check before…

Excel to HTML Table: the complete guide to putting spreadsheet data on a web page

How to turn an Excel sheet into a clean HTML table: inline styles or CSS classes, header row, captions, number alignment, rows to include, and safe…

XML to JSON: the complete guide to converting XML data

Learn how to convert XML to JSON online: how attributes, text, repeated tags and namespaces are written, what each option does, and what JSON cannot…

XML Formatter: the complete guide to validating and beautifying XML

A complete guide to formatting XML online: beautify or minify, pick the indent, sort attributes, strip comments, and read every well-formedness error…

Word to Text: the complete guide to getting plain text from Word files

How to get plain text out of a Word .docx file: how headings, lists, tables and links are laid out, how to wrap lines at 72 or 80 characters, and what…

Word to Markdown: the complete guide to converting DOCX to MD

How to convert a Word DOCX to GitHub-flavoured Markdown: headings, lists, tables, escaping, pictures and page breaks, and what Markdown cannot keep…

Page 1 of 19
Questions

Frequently asked questions.

Quick answers about the Excel to HTML Table.

Can I paste cells straight from Excel or Google Sheets?
Yes. Copied cells arrive as tab-separated text, which is detected automatically, and so are comma, semicolon and pipe separated values. Cells with line breaks are kept.
What is the difference between inline styles and classes?
Inline styles write borders, padding and alignment into each tag, so the table looks right in an email, a CMS or any page. “Classes only” leaves styling to your own CSS and marks number cells with class “num”. “Plain” outputs bare markup with no style or class attributes at all (the right-align option then only affects the Markdown table).
Is the HTML safe to publish?
Every cell is escaped, so <, >, & and quotes in your data show as text and can't inject tags or scripts. Class names are limited to letters, digits, hyphens and underscores, and the live preview is built from plain table cells rather than injected HTML.
How are numbers aligned?
A column is right-aligned when most of its filled cells are numbers, including thousands separators, currency, percentages and bracketed negatives. Phone numbers, codes with leading zeros, dates and text stay left-aligned. You can switch this off.
Does it make a Markdown table too?
Yes. Switch to Markdown for a GitHub-style table with aligned columns and --: for number columns. Pipes in cells are escaped and line breaks become <br>.
Is my spreadsheet uploaded anywhere?
No. The file or pasted text is read and converted inside your browser and never leaves your device.