How to use the HTML Table Generator
Anatomy of an HTML table
<table>
<thead>
<tr><th scope="col">Plan</th><th scope="col" style="text-align: right">Price</th></tr>
</thead>
<tbody>
<tr><td>Pro</td><td style="text-align: right">$12</td></tr>
</tbody>
</table>
- <thead> and <th scope="col"> mark the header row, so screen readers announce the column name for each cell.
- <tbody> holds the data rows; browsers add it anyway, but writing it keeps your CSS selectors predictable.
- Only use tables for tabular data — for page layout, use CSS Grid instead.
Tables in emails
Email clients ignore most CSS, so keep the table simple and use the alignment attributes the generator adds. Test in the clients you care about.
Have the data as a CSV file? CSV to HTML Table converts it directly.
Also searched as: create html table, html table code, table generator html, excel to html table, html table maker, table html online, html table builder.
Tools that pair well with the HTML Table Generator
- Markdown Table Generator — Build a table in a spreadsheet-like editor — or paste cells from Excel, Google Sheets or CSV — set column alignment and get a neatly aligned Markdown table (GitHub-flavored) or clean HTML.
- HTML Formatter — Paste minified or messy markup and get clean, consistently indented HTML — including embedded <style> and <script> blocks.
- HTML Minifier — Shrink HTML pages and templates by removing comments and redundant whitespace, minifying inline <style> and <script>, and cleaning up attributes — while keeping the layout identical.
- Online HTML Editor — A lightweight code playground: edit HTML, CSS and JavaScript side by side, see the result instantly, read console output and download your page as one HTML file.
Frequently asked questions
How do I make an HTML table?
| for header cells and | for data cells.How do I convert an Excel sheet to an HTML table?Copy the cells in Excel and paste them into the first cell of the editor. The HTML updates instantly. Is the HTML accessible?Yes — the header row is in with cells, which screen readers use to announce columns. | Can I style the table?Add a class to the |
|---|