◇

HTML Table Generator

Generate html table using the options shown.

0Words
0Characters
0Sentences
0mReading time
Choose a file or fill the fields, then click Create HTML table.

About HTML Table Generator

Sometimes you need a small table on a page, such as plan prices, office hours or a comparison of three products, and the data is in your head or in a few spreadsheet cells. Typing rows here, or copying cells from Excel or Google Sheets, gives you ready table markup without remembering the nesting of thead, tr and td.

How it works

Type one row per line. Separate columns with commas, or paste cells copied from a spreadsheet, which arrive separated by tabs. The tool checks each line: if it contains a tab, it splits on tabs; otherwise on commas. Double quotes protect a comma inside a cell. The first row becomes the header row, every cell is trimmed and escaped, and the result is a <table> with <thead> and <tbody>. There are no options for borders, captions, merged cells or alignment.

How to use HTML Table Generator

  1. Enter the text or data in the format shown in the text box above (Enter rows; separate columns with commas or tabs).
  2. Select “Create HTML table” and check the result before copying or downloading it.

Worked example

Copy a 3-by-3 range from a spreadsheet: 'Plan, Price, Users', 'Basic, $5, 1', 'Team, $20, 10'. Because the cells are tab-separated, the result is a table with headers Plan, Price and Users and two body rows: Basic | $5 | 1 and Team | $20 | 10. A price like '$1,200' in a cell stays intact because tabs, not commas, separate the columns.

Tips for a better result

  • Paste straight from a spreadsheet when your values contain commas; tab-separated rows avoid splitting numbers like 1,200.
  • Keep the row with the column names first, because the first line always becomes the header.
  • For merged cells or a caption, generate the basic table here and then add colspan, rowspan or <caption> by hand.

Frequently asked questions

Can I make a table without a header row?

No. The first line is always placed in <thead> as header cells. If you do not want headers, change those <th> tags to <td> after generating.

How do I include a comma in a cell when typing?

Wrap the cell in double quotes, for example "Austin, TX". Inside quotes, commas do not split the cell. Write a literal quote as two double quotes.

Does the table come with CSS?

No. The markup has no classes, borders or inline styles, so it takes on your site's default table styling. Add CSS separately for borders or striped rows.

What to check

Test generated markup in your own page. Sanitize untrusted content before inserting it into a live website.

Read the Privacy Policy for information about local processing, connected services and advertising.