HTML Table Generator
Build an HTML table visually — edit cells in a grid and copy clean, indented table markup.
Table content
HTML code
Import CSV / TSV
Preview
How it works
Set the number of rows and columns, type straight into the cells, and the HTML table
code is generated as you type — complete with <thead>,
<tbody>, an optional <caption> and clean
two-space indentation. Pick a styling option to get a small, copy-ready CSS block for
bordered or striped tables, or keep it plain if your site already styles tables. If your
data already lives in a spreadsheet, paste it into the CSV/TSV box and the whole grid is
filled in one go. Special characters such as <, > and
& are escaped into HTML entities so the markup stays valid. Everything
runs in your browser with plain JavaScript — nothing you type is uploaded, and there are
no ads or sign-ups.
Frequently asked questions
How do I make a table in HTML?
An HTML table is a <table> element containing rows (<tr>) built from header cells (<th>) inside <thead> and data cells (<td>) inside <tbody>. Instead of typing that by hand, set the number of rows and columns above, type into the grid, and this generator writes the complete, correctly indented markup for you — ready to paste into your page.
Can I turn CSV or spreadsheet data into an HTML table?
Yes. Open the "Import CSV / TSV" box and paste comma- or tab-separated rows — copying straight from Excel, Google Sheets or Numbers gives you tab-separated data that pastes perfectly. The first line becomes the header row when the header option is on, and the grid resizes to match your data automatically.
Is the HTML table generator free and is my data private?
It is completely free with no ads, sign-up or usage limits. Everything runs as JavaScript inside your browser, so the cell contents you type or paste are never uploaded to a server — safe to use with internal or confidential spreadsheet data.