Skip to content

HTML Table Generator

Build an HTML table in a spreadsheet-like grid and copy the code.

Table content (type into the cells, or paste rows copied from a spreadsheet into any cell)

HTML code
Preview

Continue your work

Rate this tool

0.0

0 ratings

  • 5 stars 0
  • 4 stars 0
  • 3 stars 0
  • 2 stars 0
  • 1 star 0

Click a star to rate this tool

Share this tool

Found it useful? Send it to a friend or teammate.

Report an issue

Something broken or not quite right? Tell us and we will look into it.

Clear instructions

Find steps, examples and limitations below.

Use online

Open the tool in a supported web browser.

Free to use

No sign-up required. Tool-specific limits may apply.

How to use the HTML Table Generator

The HTML table generator lets you build a table visually instead of typing tags by hand. Set the number of rows and columns, type into the cells or paste a range straight from Excel or Google Sheets, turn the first row into a header, add a caption and optional basic styles, and copy clean, accessible table code with a live preview.

  1. 1 Choose the number of rows and columns.
  2. 2 Type into the grid, or paste cells copied from a spreadsheet into any cell.
  3. 3 Toggle the header row, styles and caption, then copy the HTML.

Example and practical tips

Paste a 5 × 3 range of sales figures from Excel into the first cell and the grid expands to fit. The tool outputs a table with a <thead> header row, ready for a blog post.

Frequently asked questions

Why use a <thead> header row?

Header cells (<th>) tell screen readers and search engines what each column contains, making tables more accessible.

Can I paste from Excel or Google Sheets?

Yes. Copied cells are tab-separated, and the generator fills the grid from the cell you paste into.

Are the styles required?

No. Turn off basic styles to get plain HTML that uses your site's own CSS.