HTML Table Generator

All tools

Edit table cells or import CSV/TSV data, choose table options, preview the result, and copy ready-to-use HTML.

Table data

Paste data from a CSV file or copy cells from a spreadsheet, then select Import data.

Live preview

Generated HTML

About this HTML table generator

This tool creates semantic HTML tables from an editable grid or imported CSV and TSV data. It generates table headers, body rows, optional captions, and responsive wrappers.

The generated snippet uses inline styles so borders, spacing, alignment, and striped rows work immediately when pasted into a page.

How to use it

  1. Edit the table cells directly or import CSV or TSV data.
  2. Add or remove rows and columns, then choose the table options.
  3. Review the live preview and copy the generated HTML.

Tips

  • Use the first row as headers to generate an accessible thead with scoped th elements.
  • Add a concise caption when the table needs extra context.
  • Keep responsive wrapping enabled for tables that may be wider than mobile screens.
  • Use HTML Attribute Sorter / Cleaner afterward if you want a different attribute order.

Related tools

You may also find these tools useful.

HTML table generator FAQ

Can I import spreadsheet data?
Yes. Paste comma-separated CSV or tab-separated data copied from a spreadsheet.
Does the generated table work on mobile?
Yes. The responsive option wraps the table in a horizontally scrollable container.
Is the generated HTML accessible?
When headers are enabled, the first row is generated as scoped column headers inside thead. You can also add a caption.
Is my table data sent to the server?
No. Editing, importing, previewing, and HTML generation happen locally in your browser.