Skip to content

HTML Table Generator

Build an HTML table in a spreadsheet-like grid and copy the code.

5.0 (1 rating)

Table content (type into the cells, or paste rows copied from a spreadsheet into any cell)

HTML code
Preview

Processing and privacy

Processing varies by tool. Check the instructions for local processing, server requests, external services and any file or request limits before entering sensitive information.

Read the privacy policy

Share this tool

Found it useful? Send it to a friend or teammate.

Rate this tool

5.0

1 rating

  • 5 stars 1
  • 4 stars 0
  • 3 stars 0
  • 2 stars 0
  • 1 star 0

Click a star to rate this tool

Clear instructions

Find steps, examples and limitations below.

Use online

Open the tool in a supported web browser.

Free to use

No sign-up required. Tool-specific limits may apply.

How to use the HTML Table Generator

The HTML table generator lets you build a table visually instead of typing tags by hand. Set the number of rows and columns, type into the cells or paste a range straight from Excel or Google Sheets, turn the first row into a header, add a caption and optional basic styles, and copy clean, accessible table code with a live preview.

  1. 1 Choose the number of rows and columns.
  2. 2 Type into the grid, or paste cells copied from a spreadsheet into any cell.
  3. 3 Toggle the header row, styles and caption, then copy the HTML.

Example and practical tips

Paste a 5 × 3 range of sales figures from Excel into the first cell and the grid expands to fit. The tool outputs a table with a <thead> header row, ready for a blog post.

Frequently asked questions

Why use a <thead> header row?

Header cells (<th>) tell screen readers and search engines what each column contains, making tables more accessible.

Can I paste from Excel or Google Sheets?

Yes. Copied cells are tab-separated, and the generator fills the grid from the cell you paste into.

Are the styles required?

No. Turn off basic styles to get plain HTML that uses your site's own CSS.

  • How to Use HTML Table Generator

    Create an HTML table in a spreadsheet-like editor: set rows and columns, add a header and caption, paste from Excel and copy clean table code. Free.

Browse all guides

Report an issue

Something broken or not quite right? Tell us and we will look into it.

Accessibility Menu

Personalize your experience. Open with Ctrl+U (Option+U on Mac). Preferences stay in this browser when storage is available.

Move / Hide Widget

Restore at any time with Ctrl+U (Option+U on Mac).

Accessibility statement and help