HTML Table Generator

Build a table visually, get clean HTML. Configure the structure on the left (rows, columns, header, caption, borders, colours, alignment), type straight into the grid, or paste TSV / CSV / Excel data. The HTML is generated in real time and shown both as code and as a sandboxed live preview. Choose Classic output (border / cellpadding attributes) or Modern output (inline CSS), then copy the code or download a self-contained .html file. Everything runs locally — nothing is uploaded.
Dimensions
Structure
Size & Borders
Appearance
Output
Paste tab/ newline separated data (Excel or TSV), or comma separated (CSV with quotes supported).
5 × 5 click the small × on a row/column edge to remove it
Type into the cells or press Generate to create the HTML.
sandboxed - scripts disabled
Tips: cell content is HTML-escaped by default so <script>-style input cannot break the generated code or the preview; untick "Escape cell HTML" only when you intentionally want to inject markup. Paste Excel rows as TSV (the "Import data..." button auto-detects tabs or commas). The grid supports up to 100 rows × 30 columns and the preview iframe is sandboxed (no scripts).
Tables that mean something

<th scope="col"> and scope="row" tell screen readers what each header describes, and a <caption> names the whole table. colspan and rowspan merge cells for genuinely merged data, but they confuse parsers when used for visual layout.

Use tables for data relationships and CSS grid or flexbox for layout — layout tables hurt both accessibility and responsiveness.