HTML Table Generator

Build clean, responsive HTML tables visually — no coding required. Preview live and copy the code.

Table Settings

Leave empty to generate a blank template. First row becomes header if enabled below.

Live Preview

Generated HTML

<!-- Click "Generate Table" to see output -->

How it works

The generator reads your input as either CSV (comma-separated) or tab-separated text. Each line becomes one table row. If "Include header row" is on, the first line is wrapped in <th> elements inside a <thead>; the rest go into <tbody> with <td> cells. Options toggle CSS classes that apply striped backgrounds, hover states, centered text, borderless styling, or a responsive horizontal-scroll wrapper. The final HTML is escaped into the code box so you can paste it directly into any CMS, email template, or static site.

Frequently asked questions

How do I paste data from Excel into the generator?

Copy the cells in Excel (Ctrl+C) and paste directly into the Data box — the tool auto-detects tab-separated values. If you prefer, replace tabs with commas first. The first pasted row becomes the header when the header option is enabled.

Is the generated table responsive on mobile?

Yes. Enable "100% width" and the "Responsive wrapper" option. The wrapper uses overflow-x: auto so narrow screens scroll horizontally instead of breaking the layout. You can also use media queries on the table's class for stacking behavior.

Can I use the output in WordPress, Notion, or email?

Absolutely. The output is plain, standards-compliant HTML — paste it into WordPress's Custom HTML block, Notion's embed, or any email builder that accepts raw HTML. Inline styles are not forced, so you can add your own CSS by editing the class names.

Related tools

Copied!