跳到主要内容

HTML Table Generator Online Tool

Output

Table Editor

3 rows × 3 columns
#
1
2
3

HTML Table Generator

This HTML table generator lets you create an HTML table online without writing tags by hand. Set the number of rows and columns, type into a grid, and copy clean <table> markup for a web page, CMS post, email template, or admin UI. You can also paste CSV, Markdown, JSON, or upload Excel and turn it into an HTML table. Everything runs in your browser.

What the Generated Markup Looks Like

The first row becomes the header row. The output uses the structural elements described on MDN's <table> reference and in the WHATWG HTML tables section:

<table>
  <thead>
    <tr>
      <th>Plan</th>
      <th>Price</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>Basic</td>
      <td>$5</td>
    </tr>
  </tbody>
</table>
  • Header cells use <th> inside <thead>; data cells use <td> inside <tbody>
  • &, <, >, and " in cell text are escaped as HTML entities, so the content displays as text instead of breaking the markup
  • No inline styles or classes are added, so the table picks up your site's CSS

Common Uses

  • Comparison and pricing tables in blog posts or documentation
  • Data tables for internal dashboards and admin pages
  • Turning a spreadsheet or CSV export into HTML you can paste into a CMS