HTML Table Generator

Pick rows and columns, toggle a header and styling, get clean HTML with a live preview.

Frequently asked questions

How do I generate an HTML table?

Set the number of rows and columns and toggle a header row, borders and striping. The tool outputs clean, indented HTML (with a small style block when needed) and shows a live preview.

Does it use thead and tbody?

Yes. With the header option on, the first row is wrapped in thead and the data rows in tbody, which is the semantically correct structure.

Can I edit the cell text?

Replace the placeholder 'Cell 1,1' text in the generated HTML with your content. The generator gives you a correct skeleton to fill in.