Free HTML Table Generator

Free HTML table generator: edit cells in a grid or paste from Excel and Google Sheets, then copy clean table code with thead, caption and optional CSS styling.

  • No upload, 100% private
  • Instant, in your browser
  • 100% free, no signup
Loading tool…
Read the complete guideHow to Create Accessible HTML Tables With thead, th and caption →

About the HTML Table Generator tool

Writing an HTML table by hand means typing <tr> and <td> tags over and over and hoping they all match. This HTML table generator lets you fill in a spreadsheet-like grid and produces clean, properly indented table markup for you.

Add or remove rows and columns, type into cells and mark the first row as a header to get a <thead> with <th scope="col"> cells, which screen readers use to announce column names. Add an optional caption to describe the table. The fastest way to start is “Paste from spreadsheet”: copy a range in Excel, Google Sheets or Numbers and paste it, or paste straight into any cell to fill the grid from that point. CSV text works too.

Tick “Include basic CSS” to get a small stylesheet with borders, padding and a shaded header, and add striped rows or a hover colour if you like. The code updates live next to a rendered preview. Copy it or download it as an HTML file. Cell text is escaped so characters like < and & display correctly. Everything happens in your browser.

How to use HTML Table Generator

  1. Type into the grid, or click “Paste from spreadsheet” and paste cells from Excel or Google Sheets.
  2. Use “Add row”, “Add column” and the minus buttons to change the table size.
  3. Set “First row is header” and add a caption if needed.
  4. Choose “Include basic CSS”, “Striped rows” and “Row hover colour”.
  5. Copy the “HTML code” or download it, and check the preview.

Features

Spreadsheet-style editing

Edit cells directly and paste ranges from Excel, Google Sheets or CSV.

Accessible markup

Header rows use <thead> and <th scope="col">, with an optional <caption>.

Optional CSS

Borders, padding, header shading, striped rows and hover effects on demand.

Safe cell content

Special characters are escaped so text never breaks the HTML.

Live preview

See the rendered table next to the code as you edit.

When to use it

  • Turn an Excel price list into an HTML table for a website.
  • Create a comparison table for a blog post or product page.
  • Build a table for an HTML email or newsletter.
  • Add a schedule or timetable to a CMS that accepts raw HTML.
  • Teach HTML table structure with a live example.

Frequently asked questions

Can I paste data from Excel or Google Sheets?

Yes. Copy cells in the spreadsheet and paste them into “Paste from spreadsheet”, or directly into a grid cell. Tab-separated and comma-separated data are both detected.

Does it support merged cells (colspan/rowspan)?

No. The generator creates regular grids. You can add colspan or rowspan attributes to the generated code by hand.

Is the generated table responsive?

The CSS sets the table to 100% width. For wide tables on phones, wrap it in a div with overflow-x: auto.

How big can the table be?

Up to 200 rows and 20 columns, which covers most web tables.

Is my data uploaded?

No. The table is built in your browser.

Related tools