HTML Table Generator

Type or paste your data into the grid and get clean HTML table code, with optional styling.

FreeNo sign-upPrivate — runs in your browser
Tip: paste cells copied from Excel or Google Sheets into any cell.
Import from CSV, Excel or Sheets

Preview

HTML

How to use the HTML Table Generator

  1. Enter your dataType into the grid, or paste a block of cells straight from Excel or Google Sheets. Press Enter to move down.
  2. Choose the optionsMark the first row as the header, add a caption, and pick a style.
  3. Copy the HTMLCopy the code and paste it into your page or blog post.

Example

A 3-column price list becomes a <table> with a <thead> of <th scope="col"> cells and a <tbody> of rows.

Special characters such as < and & are escaped automatically, so your table always displays correctly.

Frequently asked questions

How do I paste data from Excel?

Copy the cells in Excel or Google Sheets, click a cell in the grid, and paste. The grid grows to fit the data.

Is the table accessible?

Yes. Header cells use <th scope="col"> inside <thead>, which screen readers use to announce each column. Add a caption to describe the table.

Can I use the table in Blogger or WordPress?

Yes. Switch the post editor to HTML view and paste the code. Untick “Include CSS” if your theme already styles tables.

Popular posts from this blog

Character Counter

Speech to Text Online

Keyboard Tester