Excel To HTML Table

Login

Email
Password

Don't have an account yet?

Go to Sign up

{{ workbook ? 'Online Table Editor' : 'Input Data' }}
Change File Enter Data
Row Col Row Col
Transpose Clear Delete Empty Deduplicate
ABC abc Abc
Replace
First Row as Header
{{ displayRows.length }} rows x {{ displayHeaders.length }} columns{{ firstRowAsHeader ? ' (1 header)' : '' }} {{ selectedRows.length > 0 ? selectedRows.length + ' selected' : '' }}
Output Data
{{ copied ? 'Copied!' : 'Copy to Clipboard' }} Download File
Properties
Convert Excel to HTML online — paste, edit, and download HTML.

Escape HTML Characters:
Escape HTML special characters (&, <, >, ", ')
DIV Table:
Use DIV+CSS layout instead of TABLE tags
Minify Code:
Remove whitespace and line breaks
Table Head Structure:
Generate <thead> and <tbody> structure
Column Header:
Use first row as column headers (<th>)
Table Caption:
Table Class:
Table ID:
Convert Restart
Insert Row Below
Insert Row Above
Insert Column Right
Insert Column Left
Delete Row {{ contextMenu.row + 1 }}
Delete Column {{ contextMenu.col + 1 }}
Clear Cell
Clear Row
Case sensitive Use regex Cancel Replace All

What Is an HTML Table?

An HTML table is a structured markup element used to display tabular data in web pages. It consists of <table> as the container, <tr> for rows, <th> for header cells, and <td> for data cells. Semantic tables also include <thead>, <tbody>, and <caption> elements for accessibility and structure.  

HTML tables are used in documentation, reports, comparison pages, product listings, dashboards, email templates, and any web content that requires structured rows and columns of data.  

What Is Excel to HTML Table Converter?

Excel to HTML Table is a free online tool that converts spreadsheet data from Excel files (.xlsx, .xls, .xlsm) into clean, well-structured HTML table code. You can customize the output with semantic markup (<thead>/<tbody>), HTML entity escaping, minification, CSS class and ID attributes, and even a DIV+CSS alternative layout. All processing happens in your browser — your files are never uploaded to any server.  

A built-in table editor lets you clean and modify your data before generating the HTML output.  

Core Features

  • Semantic HTML Structure — Generate proper <thead> and <tbody> sections with <th> header cells for accessible, standards-compliant tables.

  • HTML Entity Escaping — Automatically escape special characters (&, <, >, ", ') so the output renders correctly in any browser.

  • DIV+CSS Layout Mode — Optionally generate a DIV-based table layout using CSS grid or flexbox instead of <table> tags, useful for responsive email templates and modern layouts.

  • Code Minification — Remove whitespace and line breaks to produce compact HTML for production use.

  • Table Caption — Add a <caption> element for accessibility and SEO.

  • CSS Class and ID — Set custom class and id attributes on the table element for styling with CSS frameworks (Bootstrap, Tailwind) or custom stylesheets.

  • Built-in Table Editor — Edit cells, add or remove rows and columns, transpose, deduplicate, remove empty rows, apply case transforms, and find-and-replace before conversion.

  • Multi-Sheet Support — Select which sheet to work with in multi-sheet workbooks.

  • 100% Client-Side Processing — Files are parsed and converted entirely in your browser.

  • Copy and Download — Copy the HTML output to clipboard or download as a file.

How to Use Excel to HTML Table Converter?

Step 1: Upload or Enter Your Data

Drag and drop an Excel file (.xlsx, .xls, or .xlsm) onto the upload area, or click to browse. Alternatively, click Enter Data to type or paste data directly into the editor.  

Step 2: Edit Your Data (Optional)

After loading, your data appears in an editable table. Use the toolbar to modify cells, add or remove rows and columns, transpose data, remove duplicates and empty rows, change text case, or find and replace values. Toggle First Row as Header to define column names.  

Step 3: Configure HTML Options

In the Properties panel on the right:  

  • Escape HTML Characters — Convert &, <, >, ", and ' to HTML entities to prevent rendering issues.

  • DIV Table — Generate a <div>-based layout using CSS instead of <table> tags. Useful for responsive designs and email templates where table support varies.

  • Minify Code — Remove line breaks and extra whitespace to produce compact HTML.

  • Table Head Structure — Wrap the first row in <thead> and remaining rows in <tbody> for semantic HTML.

  • Column Header — Render the first row using <th> tags instead of <td>.

  • Table Caption — Add a <caption> element inside the table.

  • Table Class — Set a CSS class name (e.g., table table-striped for Bootstrap).

  • Table ID — Set a unique ID attribute for JavaScript targeting.

Conversion Example

Given this Excel table:

ProductPriceStock
Widget A$29.99150
Widget B$49.9985

With Table Head Structure and Column Header enabled, the tool generates:

<table>
 <thead>
   <tr>
     <th>Product</th>
     <th>Price</th>
     <th>Stock</th>
   </tr>
 </thead>
 <tbody>
   <tr>
     <td>Widget A</td>
     <td>$29.99</td>
     <td>150</td>
   </tr>
   <tr>
     <td>Widget B</td>
     <td>$49.99</td>
     <td>85</td>
   </tr>
 </tbody>
</table>

Step 4: Convert and Export

Click Convert to generate the HTML code. The output appears in the Output Data panel. Click Copy to Clipboard to copy it, or use Download File (Premium) to save it as an .html file. Click Restart to reset all data and start over.  

Common Use Cases

  • Web Content Management — Convert spreadsheet data into HTML tables for CMS platforms (WordPress, Drupal, Joomla) that accept HTML input.

  • Documentation — Generate HTML tables for technical documentation, API references, and user guides.

  • Email Templates — Create table-based layouts for HTML email campaigns where <table> is the most reliable layout method.

  • Comparison Pages — Build product or feature comparison tables from structured Excel data.

  • Data Presentation — Convert research data, survey results, or financial reports into web-ready HTML tables.

  • Bootstrap Integration — Set the Table Class to table table-striped table-bordered to generate Bootstrap-compatible tables instantly.

  • Static Site Generators — Generate HTML table snippets for Jekyll, Hugo, Eleventy, or other SSG projects.

  • Responsive DIV Tables — Use DIV Table mode for responsive layouts that work better on mobile devices than traditional <table> elements.

HTML Table Best Practices

  • Use semantic markup — Always include <thead> and <tbody> for accessibility and correct rendering.

  • Use <th> for headers — Screen readers use header cells to provide context for data cells.

  • Add a <caption> — The caption element provides an accessible table title and improves SEO.

  • Escape HTML entities — Data containing <, &, or > must be escaped to prevent broken rendering or XSS vulnerabilities.

  • Consider responsive design — Large tables may need horizontal scrolling wrappers or DIV-based layouts on mobile devices.

  • Use CSS for styling — Apply classes and external stylesheets rather than inline styles for maintainability.

Frequently Asked Questions (FAQ)

  • Is my Excel data uploaded to a server?

    No. All file parsing and HTML generation happens entirely in your browser using client-side JavaScript. Your files are never uploaded, transferred, or stored on any server. The tool works offline once the page has loaded.

  • What Excel file formats are supported?

    The tool supports .xlsx (Excel 2007+), .xls (Excel 97-2003), and .xlsm (macro-enabled) files. Multi-sheet workbooks are supported — use the sheet selector to choose which sheet to convert.

  • What is the difference between TABLE and DIV table modes?

    TABLE mode generates standard HTML <table> markup — the correct choice for tabular data. DIV mode uses <div> elements with CSS to create a table-like layout. DIV mode is useful for responsive email templates and layouts where <table> rendering is inconsistent. For regular web pages displaying data, use TABLE mode.

  • Why should I use <thead> and <tbody>?

    The <thead> and <tbody> elements provide semantic structure that improves accessibility (screen readers use them for navigation), enables CSS styling of header and body separately, allows sticky header positioning, and is required by many CSS frameworks (Bootstrap, DataTables) for proper functionality.

  • When should I enable HTML character escaping?

    Enable escaping when your data contains characters like &, <, >, ", or '. Without escaping, these characters can break the HTML structure or cause XSS vulnerabilities in user-generated content. Always enable escaping for data you don't control.

  • How do I style the generated HTML table?

    Use the Table Class field to add CSS classes. For example, enter table table-striped table-bordered for Bootstrap styling, or w-full border-collapse for Tailwind CSS. You can also set a Table ID to target the table with custom CSS or JavaScript.

  • Can I edit the data before converting?

    Yes. After uploading your file, the built-in table editor lets you modify cell values, add or remove rows and columns, transpose data, remove duplicates and empty rows, change text case, and find-and-replace — all before generating the HTML output.

  • What does the Minify option do?

    Minify removes line breaks, indentation, and extra whitespace from the generated HTML code, producing a single-line output. This reduces file size and is useful for production environments. Disable minification during development for readable, maintainable code.

  • Is there a limit on file size or number of rows?

    Since processing is entirely client-side, the practical limit depends on your device's available memory. Most modern browsers handle files with tens of thousands of rows without issue. For very large files (100,000+ rows), performance may vary by device.

  • Can I use this tool without uploading a file?

    Yes. Click the Enter Data button to open a blank editor where you can type or paste data manually, then convert it to an HTML table as usual.

Featured Tools

Featured tools that you might find useful.

Popular Tools

List of popular tools that users love and frequently use.

New Tools

The latest tools added to our collection, designed for you.

Topics

The tools grouped by topics to quickly find what you need.
Free online Excel to JSON converter. Transform XLSX, XLS, XLSM files into JSON arrays, objects, or keyed formats instantly in your browser — no upload, 100% private.

Excel To JSON

Free online Excel to JSON converter. Transform XLSX, XLS, XLSM files into JSON arrays, objects, or keyed formats instantly in your browser — no upload, 100% private.
Free Excel to CSV converter. Convert XLSX, XLS, XLSM to CSV instantly in your browser. No upload, 100% private. Edit, transpose, deduplicate before exporting.

Excel To CSV

Free Excel to CSV converter. Convert XLSX, XLS, XLSM to CSV instantly in your browser. No upload, 100% private. Edit, transpose, deduplicate before exporting.
Free online Excel to SQL converter. Generate CREATE TABLE and INSERT statements from spreadsheets for MySQL, PostgreSQL, SQLite, and SQL Server. Supports batch insert, primary keys, and type inference.

Excel To SQL

Free online Excel to SQL converter. Generate CREATE TABLE and INSERT statements from spreadsheets for MySQL, PostgreSQL, SQLite, and SQL Server. Supports batch insert, primary keys, and type inference.
Free online Excel to ASCII table converter with 10 border styles (MySQL, Unicode, reStructuredText, and more). Add code comment wrappers in 8 languages. Supports text alignment. Client-side processing.

Excel To ASCII Table

Free online Excel to ASCII table converter with 10 border styles (MySQL, Unicode, reStructuredText, and more). Add code comment wrappers in 8 languages. Supports text alignment. Client-side processing.