HTML Table Generator

Generate HTML table code with a live preview.

Free online HTML table generator. Set rows and columns or paste tab- or comma-separated data to generate clean HTML table code, with a live rendered preview. Runs in your browser.

How to use the HTML Table Generator

  1. 01Set the rows and columns, or paste your tab/comma data.
  2. 02See the generated HTML and a live rendered preview side by side.
  3. 03Copy the HTML table code.

Frequently asked questions

Can I paste data from a spreadsheet?

Yes — copy cells from Excel or Google Sheets and paste them in. Tab-separated columns are detected automatically, and comma-separated values work too.

Can the first row be a header?

Yes — toggle the header option to wrap the first row in a <thead> with <th> cells for proper table semantics.