HTML Table Generator

Paste from a spreadsheet or CSV
HTML
<table>
  <thead>
    <tr>
      <th scope="col">Name</th>
      <th scope="col">Role</th>
      <th scope="col">Start date</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>Ana</td>
      <td>Designer</td>
      <td>2026-03-01</td>
    </tr>
    <tr>
      <td>Ben</td>
      <td>Engineer</td>
      <td>2026-04-15</td>
    </tr>
  </tbody>
</table>
Preview
Name Role Start date
Ana Designer 2026-03-01
Ben Engineer 2026-04-15

Type your data into the grid, or paste it straight from Excel, Google Sheets or a CSV file, and copy the HTML table code. The markup is clean and indented: a <thead> with proper <th> header cells, a <tbody> for the rest, and nothing else, so it drops into a web page, a blog post or a Markdown file without a pile of inline junk to delete. If you're pasting into an email or an editor that strips CSS, one switch adds simple inline borders and padding instead. Anything you type is escaped, so a < or & in a cell shows up as text rather than breaking the page. A live preview under the code shows exactly what you'll get.

Built by Bob QA by Ben Shipped

How to use

  1. 1

    Set the number of rows and columns, then type into the grid. The first row is the header unless you switch that off.

  2. 2

    Or open "Paste from a spreadsheet or CSV", paste your rows, and press Import into the grid.

  3. 3

    Add a caption if the table needs a title.

  4. 4

    Turn on inline borders if the table is going into an email or an editor that strips CSS.

  5. 5

    Press Copy HTML and paste the code into your page.

Frequently asked questions

Ratings & Reviews

Rate this tool

Sign in to leave a written review.
Loading reviews…