Web tool

HTML Table Generator

Set the size, type into the grid (or paste from a spreadsheet), and copy the finished table as HTML, Markdown, or CSV.

Pasting from a spreadsheet

Copy a range of cells from Excel or Google Sheets and paste it into the box above — spreadsheet cells arrive tab-separated, which this tool detects automatically. Cell text is HTML-escaped, so characters like < and & are safe to use.

About the HTML Table Generator

The HTML Table Generator lets you build a table visually and copy the code as HTML, Markdown or CSV. Choose the number of rows and columns, type into the grid, pick a style, add a caption and see a live preview. You can also paste data from a spreadsheet to fill the grid at once.

Well-formed tables use thead for headings, tbody for body rows and th cells with proper scope, which helps screen readers. Tables should present tabular data, not page layout. The style options (plain, bordered, striped and dark header) add small amounts of CSS to the output so the table looks good immediately, and you can edit that CSS to match your site.

How to use it

  1. Set the number of rows and columns.
  2. Type content into the grid or paste copied spreadsheet cells and press Fill grid from pasted data.
  3. Pick a style and optional caption.
  4. Copy HTML, Markdown or CSV from the output.

Tips and good to know

Frequently asked questions

Can I paste from Excel or Google Sheets?

Yes; copy the cells and paste them into the paste box.

Is the HTML responsive?

The table is simple; add overflow handling for narrow screens.

Can I merge cells?

The generator creates simple grids; edit colspan or rowspan manually.