HTML Table Generator

Create HTML tables with this tool. Just type in the number of rows and columns you want and the table will be generated for you.

Table generator settings
Click on any cell to start editing and use tab key to move to the next cell

Frequently asked questions

Does it create a header row?

Yes, if you ask for one. The first row is then marked up with header cells rather than ordinary ones, which is what lets screen readers announce which column a value belongs to.

Can I paste my data straight into the table?

Yes. Fill the cells in the editor and the markup updates as you go, so you can build the table by typing rather than by writing tags.

Is the generated table responsive?

There is an option for it. A wide table on a narrow screen has to either scroll or reflow, and the responsive option wraps it so it scrolls instead of forcing the whole page sideways.

How do I merge cells?

Not here. Merging needs colspan or rowspan attributes, which you add to the generated markup by hand afterwards.

Should I use a table for page layout?

No. Tables are for tabular data. Layout belongs in CSS, and a table used for layout reads badly on phones and gives screen readers a structure that means nothing.

Does the table come with any styling?

The markup is plain HTML, so it takes whatever your own stylesheet says. Add your class names to the tags once you have pasted it in.