HTML Table Generator

Generate HTML table code from your data. Paste CSV or enter rows manually.

About this calculator

Paste CSV data and get ready-to-use HTML table code, with options for striped rows, borders and hover highlighting. Copy the markup into your page.

Quick to build a table for a blog post or documentation without writing tags by hand.

How to use it

  1. Paste your CSV.
  2. Tick Striped rows, Border and Hover.
  3. Press Generate HTML and Copy HTML.

Output

The first row is used as the header (<th>) and the rest as body rows (<td>). Style options add CSS rules such as alternating row colours and hover highlights.

Worked example

Name,Age / Asha,30

HTML<table>…<th>Name</th><th>Age</th>…<td>Asha</td><td>30</td>…</table>

Tips and common mistakes

  • Keep tables narrow on mobile or allow horizontal scroll.
  • Add a caption for accessibility.
  • Don't use tables for page layout.
  • Escape special characters in cells.
  • Combine with CSS for brand colours.

Frequently asked questions

How do I make an HTML table?

Use table, tr, th and td tags, or paste CSV here.

Does it style the table?

Optionally, with stripes, borders and hover.

Can I paste from Excel?

Copy as CSV or tab-separated text.

Is the first row a header?

Yes.

Is the markup valid?

It uses standard table elements.

Is it free?

Yes.

Related tools