Free HTML Table Generator
Build an HTML table visually — set the number of rows and columns, type your content directly into the grid, add a header row, and copy clean, semantic table markup for your website.
Tables that need to become data are easier to work with after the HTML to Markdown Converter, and their content can be counted with the Word & Character Counter. If the table is destined for a spreadsheet, the CSV to JSON Converter is the bridge.
How to use the HTML Table
- 1 Set the number of rows and columns, or paste tabular data.
- 2 Enter your content into the grid, using the cell controls to merge or split where needed.
- 3 Set the header row, alignment, and any column widths.
- 4 Copy the generated markup.
Building a table that is readable
The single most valuable element is the header row, marked as such rather than merely styled. It is what lets a screen reader announce which column a cell belongs to when a user navigates through the grid, and it is what lets you apply styling to headings without styling every cell. A table without one is a grid of numbers with no way to know what they measure.
The second is a caption, which describes what the table shows. It appears above or below and gives context that the surrounding paragraph may not, particularly when the table is referenced from several places or extracted into a document.
Practical details
- Mark the header row explicitly; bold text alone carries no meaning.
- Give the table a caption that says what it contains.
- Add a scope attribute to header cells so each one is tied to the right direction.
- Decide on narrow screens whether the table scrolls or restacks, and implement it.
Semantic table tips
Use th elements for header cells, not styled td elements — screen readers and search engines rely on them. Keep tables for tabular data only (never for page layout) and add a caption when the table benefits from a title.
Frequently asked questions
Why use a table element rather than layout styling?
Because a table is what the content is. A grid built from styled elements looks identical and conveys nothing to a screen reader, which will read the cells as a run of unrelated text. The table element communicates that these values belong to rows and that these headings describe these columns, which is information the styling alone does not carry.
When is a table the wrong choice?
When the content is not tabular. Tables have historically been used to lay out whole pages, which produces rigid markup, breaks on narrow screens, and tells assistive technology that the page is a spreadsheet. If the rows are not comparable records with shared headings, the content probably wants ordered or unordered lists instead.
How should a table behave on a phone?
A wide table cannot fit a narrow screen without either scrolling horizontally or collapsing into a stacked layout. Either is acceptable if chosen deliberately; neither is acceptable if ignored, because the default is a table that overflows its container and pushes the page sideways. Deciding the mobile behaviour as part of building the table is what prevents that.
Related SEO & Webmaster Tools
You might also need
Tools from other categories that people pair with the HTML Table: