Toolstia / HTML table generator

HTML table generator

Choose how many rows and columns you need, type your content into the grid and copy the table code. You can add a heading row, a caption and simple borders without writing any CSS.

How it works

  1. Set the number of rows and columns.
  2. Type into the cells. Turn the heading row on or off.
  3. Pick a style and copy the HTML.

Heading row

With the heading row on, the first row uses th cells inside thead and the rest use td cells inside tbody. This helps screen readers and search engines understand the table.

Styling choices

None gives a bare table. Inline CSS adds borders and padding so it looks right even in an email or a page with no stylesheet. Class adds class="table" so your own CSS can style it.

Caption

A caption names the table. It is read out by screen readers and is good practice for any data table.

Size limits

The grid goes up to 20 rows and 10 columns. For bigger tables, paste your data into the CSV to HTML table tool instead.

Questions

Are cell contents escaped?

Yes, so characters like < and & are safe.

Can I merge cells?

Not in this tool. Add colspan or rowspan to the code by hand.

Is anything uploaded?

No. Your table stays in your browser and is never sent anywhere.