HTML Table Generator
Build accessible HTML tables visually or from CSV, with header rows, captions and optional styling.
Runs in your browser. Your input is processed on your device and is not uploaded to our server.
Import CSV or spreadsheet data
Preview
How to use the HTML Table Generator
- Set the number of rows and columns, or paste CSV or spreadsheet data.
- Edit cells directly in the grid and choose header and caption options.
- Copy the generated HTML, with or without the CSS.
The generator produces semantic, accessible markup: <caption>, <thead> with scope="col" header cells and <tbody>. Cell content is HTML-escaped. Data pasted from Excel or Google Sheets (tab-separated) and CSV with quoted fields are both understood.
Frequently asked questions
Can I paste from Excel?
Yes. Copy the cells and paste them into the import box; tab-separated data is detected automatically.
Should I use tables for layout?
No. Use tables for tabular data only; use CSS grid or flexbox for layout.