T

Text Machine

Powerful text tools, in your browser

HTML Table Generator

Create HTML tables easily. Enter data in the grid below or import from CSV/Excel.

Table Options

Add Row:

Add Column:

Header Scope::

Caption::

Basic Options

Table Width::

Table Height::

Bordered Table:

Border Width::

Border Color::

Cell Padding::

Border Collapse::

Table Options

How to use HTML Table Generator

  1. 1

    Enter your data

    Fill in cells in the Grid Editor and add rows or columns, or paste CSV and Excel data in the CSV Import tab.

  2. 2

    Style the table

    Set basic options like bordered, striped, hover, and responsive, or open Advanced Options for ID, class, caption, and border colors.

  3. 3

    Generate the table

    Click Generate Table to build the HTML and preview exactly how it will look.

  4. 4

    Copy the HTML

    Open the HTML Code tab and use Copy HTML to paste the markup into your web page.

Frequently asked questions

Can I import data instead of typing it?
Yes. The CSV Import tab accepts comma, tab, semicolon, or pipe separated data pasted from a spreadsheet, and you can mark the first row as a header.
Can I make the table responsive?
Yes. Enable the Responsive Table option to wrap the table so it scrolls cleanly on small screens and adapts to different layouts.
What styling options are available?
You can add borders, striped rows, hover highlighting, a caption, custom ID and class names, cell padding and spacing, border width and color, and header scope for accessibility.
Will the generated code be valid HTML?
Yes. The tool outputs properly structured table, thead, tbody, th, and td tags so the markup is clean and ready to drop into your site.
Is the table data sent anywhere?
No. Everything is generated in your browser, so your table data stays on your device, and the tool is completely free to use.

Related tools

Keep going with these handy tools

HTML to Text Converter

Text to HTML Converter

HTML List Generator

HTML Compressor

JSON Formatter

Regex Tester