HTML Table Generator

Generate HTML tables online for free — set rows and columns, edit cells directly, paste data from Excel or Google Sheets, choose a bordered, striped or minimal style, and copy clean, semantic HTML with optional CSS.

100% private — everything runs in your browser. Conversion happens on your device; nothing is uploaded.

100% private — runs in your browser

Edit the cells

Import from a spreadsheet (paste CSV or tab-separated)

Preview

Generates clean, semantic HTML with thead/tbody and escaped content. Paste straight into WordPress (Custom HTML block), emails or any web page.

How to create an HTML table

  1. Set the number of rows and columns (or import pasted spreadsheet data).
  2. Click into the cells and type.
  3. Choose a style and whether the first row is a header.
  4. Copy the HTML (with or without CSS).

What you can use it for

  • Add tables to WordPress posts via a Custom HTML block
  • Build pricing and comparison tables
  • Put tables in HTML emails and documentation
  • Convert spreadsheet data into web tables

More free tools

Building for the web?

Format, minify, convert and generate code with our free, private developer tools.

See all free tools →

Frequently asked questions

How do I make an HTML table?

Set the size, type into the cells, and copy the generated code. The tool writes proper <table>, <thead>, <tbody>, <th> and <td> markup.

Can I paste data from Excel or Google Sheets?

Yes. Copy the cells, open “Import from a spreadsheet”, paste and click Import — tab-separated and CSV data both work.

Is the content escaped safely?

Yes. Characters like <, > and & are escaped, so the table displays exactly what you typed.

How many rows and columns can a table have?

Each table can have 1 to 50 rows and 1 to 15 columns, set with the Rows and Columns boxes. The tool opens with a 3 × 3 sample table (Name, Role, City) that you can type over. When the first row is set as the header, it counts as one of the rows, so 50 rows gives a header plus 49 body rows.

What's the difference between the Bordered, Striped and Minimal styles?

Bordered, the default, draws a light grey line around every cell and gives the header a pale grey background. Striped gives the header a dark background with white text and shades every second body row in light grey. Minimal uses only thin lines under each row, with a thicker line under the header. All three span the full width, use the system font at 15 px and align text left.

What does “First row is a header” do?

When it's ticked, the first row of your grid is written inside <thead> as <th> header cells, and the other rows go into <tbody> as <td> cells. Each style shows header cells in a semi-bold weight. Untick it if your data has no header row: every row, including the first, is then written as ordinary <td> cells inside <tbody>.

What happens if I untick “Include CSS”?

The copied code is then only the table markup, without the <style> block that sets borders, padding and colours. The table still carries class="data-table", so you can style it with your own stylesheet. With Include CSS ticked, the <style> block for your chosen style sits above the table, and its colours are plain hex values you can edit after pasting. The preview shows the chosen style either way.

How does the spreadsheet import handle CSV and large sheets?

Paste your rows and click Import. If the pasted text contains a tab, each line is split at tabs; otherwise it is read as CSV, where quoted values keep their commas and a doubled quote becomes one quote mark. The import replaces the current table and sets the size to match, up to 50 rows and 15 columns. Shorter rows are filled out with empty cells.

Will changing the number of rows or columns delete my content?

Adding rows or columns keeps everything you've typed and adds empty cells at the bottom or on the right. Reducing them removes the last rows or the rightmost columns along with their text, and raising the number again brings back empty cells, not the old text. The table resizes on every keystroke in those boxes, so typing 20 over 10 briefly sets 2 rows; set the size before filling in cells.

Can I use the tables in commercial projects?

Yes. The HTML and CSS the tool writes are yours to use in client work, commercial websites, emails and products, with no credit needed and no sign-up. The included styles call only the visitor's system font, so no font file or font licence comes with them. You still need the rights to whatever you put in the table, such as text or data taken from someone else.