HTML Table Generator

Build HTML tables without writing markup by hand. Set rows and columns, toggle a header row and borders, preview the rendered table, and copy clean HTML — ready to paste into your site or email template.

  • Free to Use
  • No Signup
  • Privacy Friendly

How to generate an HTML table

  1. 1

    Set dimensions

    Enter the number of rows (1–50) and columns (1–20). Check Header row for a <thead> row and Borders for visible cell borders.

  2. 2

    Preview the table

    The left panel renders your table live. Adjust rows, columns, or options and the preview updates instantly.

  3. 3

    Copy the HTML

    Click copy on the generated code panel. Paste into the HTML editor or HTML viewer to test further.

HTML table structure

<table>
  <thead><tr><th>Header</th></tr></thead>
  <tbody><tr><td>Cell</td></tr></tbody>
</table>
  • <thead> — header row with <th> cells
  • <tbody> — data rows with <td> cells
  • border attribute — adds visible cell borders (legacy but widely supported)

Why Use This Tool?

  • Flexible Size

    Generate tables from 1×1 up to large grids.

  • Live Preview

    See the rendered table before copying code.

  • Copy HTML

    One-click copy of clean, indented table markup.

  • Browser-Based

    Generated code stays on your device.

Frequently Asked Questions

Does the generator include thead and tbody?

Yes. When Header row is checked, the first row uses <th> inside <thead>. Remaining rows go in <tbody> with <td> cells.

How do borders work?

With borders enabled, the table uses border="1". With borders off, inline CSS adds subtle cell borders for structure without the legacy border attribute.

Can I edit cell content after generating?

The generator creates placeholder cells (Header 1, Cell 1,1). Copy the HTML and edit content in your editor or the HTML editor.

Is the output responsive?

The generated table is standard HTML. Wrap it in a scrollable div or add CSS classes for responsive layouts on your site.

Is this HTML table generator free?

Yes. Free with unlimited tables and no signup.

HTML Table Generator — TetraKits

Table Markup Without Hand-Coding

Documentation pages, email templates, and prototype layouts often need a quick HTML table. Set dimensions, preview the result, and copy semantic thead/tbody markup — faster than writing rows of td tags manually.