Skip to content
⚠ TESTING ENVIRONMENT You are viewing a testing copy of Tolioo. Changes here do not affect the live website.

HTML Table Generator

Build a table in a spreadsheet-style editor and get clean HTML or Markdown code instantly. Fast, free and no signup.

  • 100% free
  • No Signup
  • Live preview

Table data

Paste data from Excel, Google Sheets or CSV

Tip: press Enter to move down a row and Tab to move right. Use the small menus above each column to align its text.

Create an HTML table in 3 simple steps

  1. 1

    Enter your data

    Type in the grid, or paste cells from Excel, Google Sheets or CSV.

  2. 2

    Style your table

    Pick a style, header, footer, alignment and a responsive wrapper.

  3. 3

    Copy the code

    Copy the HTML or Markdown, or download it as a file.

HTML TABLE GENERATOR GUIDE

Free HTML Table Generator – Create HTML Table Code with CSS Online

An HTML table generator lets you create clean, ready-to-use HTML table code without typing a single tag by hand. This free online HTML table generator gives you an easy spreadsheet-style editor where you can type your data, add or remove rows and columns, set the alignment of each column and see a live preview of your table as you work. You can also paste data straight from Excel, Google Sheets or a CSV file and turn it into an HTML table in seconds. Choose a header row, a footer row, a caption and row headers for better accessibility, then pick a ready-made style such as basic borders, striped rows, a modern look or a dark header, with the CSS added as an embedded style block, as inline styles or not at all. The generator produces semantic HTML with thead, tbody, tfoot and th scope attributes, can wrap your table in a responsive container so it scrolls on small screens, and can minify the code for production. When your table is ready, copy the HTML code, download it as an HTML file, or switch to the Markdown tab to get a Markdown table for README files and documentation. Web developers, bloggers, students, marketers and content managers use an HTML table maker to build pricing tables, comparison charts, schedules, reports and data tables for websites, WordPress posts, email templates and landing pages. The tool runs entirely in your browser, so your data is never uploaded or stored, and there is no signup, no watermark and no limit on how many tables you can create.

This free HTML table maker was designed for everyday use. Maybe you need a pricing table for a landing page, a comparison chart for a blog post, a schedule for an email template or a table of results for your README. Writing every tr, th and td by hand is slow and easy to get wrong, so a good online HTML table generator is the quickest solution. It also works as a table to HTML converter for spreadsheet data, a CSS table style generator and a Markdown table generator, and it runs in your browser on Windows, Mac, Linux, Android and iPhone.

Spreadsheet-Style Table Editor

Type directly into cells, add rows and columns, align text and paste data from Excel or Google Sheets. The preview updates live.

HTML Table with CSS Styles

Choose basic borders, striped rows, a modern style or a dark header. Get the CSS as a style block, inline styles or plain HTML.

HTML and Markdown Output

Copy semantic HTML table code or a Markdown table for GitHub README files, documentation and blog editors.

What Is an HTML Table?

An HTML table displays data in rows and columns. It is built from a set of tags: the table tag wraps everything, tr creates a row, th creates a header cell and td creates a normal data cell. Tables are the right choice for real tabular data such as prices, schedules, statistics and comparisons. They should not be used to lay out a page, which is a job for CSS.

HTML Table Tags Explained

TagWhat it does
<table>Wraps the whole table
<caption>Adds a title that describes the table
<thead>Groups the header rows
<tbody>Groups the main data rows
<tfoot>Groups the footer row, such as totals
<tr>Creates a table row
<th>Creates a header cell (bold and centered by default)
<td>Creates a standard data cell
scope="col" / scope="row"Tells screen readers whether a header applies to a column or a row

A Simple HTML Table Example

<table>
  <caption>Price list</caption>
  <thead>
    <tr><th scope="col">Product</th><th scope="col">Price</th></tr>
  </thead>
  <tbody>
    <tr><td>Mouse</td><td>$19.99</td></tr>
    <tr><td>Keyboard</td><td>$79.00</td></tr>
  </tbody>
</table>

How to Create an HTML Table Online

  1. Fill in the grid: Type your data into the cells, or paste copied cells from a spreadsheet or CSV file.
  2. Add rows and columns: Use the plus buttons to grow the table, and the remove buttons to delete what you do not need.
  3. Set the options: Turn the header, footer and row headers on or off, add a caption and align each column.
  4. Pick a style: Choose a ready-made look and decide whether the CSS is a style block, inline or left out.
  5. Copy or download: Copy the HTML or Markdown code, or download it as a file.

How to Style an HTML Table with CSS

  • border-collapse: Set it to collapse so neighboring cell borders merge into one clean line.
  • padding: Add padding to th and td so the text has room to breathe.
  • Striped rows: Use tbody tr:nth-child(even) to give every second row a light background.
  • Hover effect: Use tbody tr:hover to highlight the row under the mouse.
  • text-align: Align numbers to the right and text to the left for easier reading.

How to Make an HTML Table Responsive

Wide tables can overflow on small screens. The simplest fix is to wrap the table in a container with overflow-x: auto, so the table scrolls sideways instead of breaking the page layout. Turn on the Responsive wrapper option and the generator adds this container for you.

HTML Table Accessibility Tips

  • Use a caption: It gives screen reader users a quick summary of what the table contains.
  • Use th for headers: Header cells let assistive technology link each data cell to its heading.
  • Add the scope attribute: Use scope="col" for column headers and scope="row" for row headers.
  • Keep it simple: Avoid merged cells and nested tables where you can, because they are harder to navigate.

HTML Table Style Options Explained

You can output a plain table and style it yourself, or pick one of the ready-made looks. The table below shows what each choice is for.

Table styles in the HTML table generator
Style What it looks like Best used for
Plain (no styling) The browser default with no borders or colors Tables that you will style with your own site CSS
Basic borders Thin lines around every cell with some padding Simple data tables, documentation and quick drafts
Striped rows Alternating light backgrounds on every second row Long tables where the eye must follow a row
Modern Clean spacing with soft separators Pricing tables, feature lists and landing pages
Dark header A dark header row with light data rows Reports and comparison charts that need a strong heading

CSS Output: Style Block, Inline Styles or HTML Only

The generator can deliver the CSS in three ways. Choose the one that matches where the table will live.

How the CSS can be added to your table
Output How it works Use it when
Style block (class) A style tag with rules for your table class name, followed by the table You are building a web page or template and want clean, reusable markup
Inline styles Every tag gets its own style attribute You paste into an email, a CMS editor or any place that removes style tags
HTML only Only the table tags and no CSS at all Your site already has table styles that you want to reuse

Use the Table class name field to give the table a class that matches your own stylesheet, for example pricing-table or data-table.

Paste Data from Excel, Google Sheets or CSV

You do not have to type a big table cell by cell. Copy the data where it already exists and let the tool build the grid.

  1. Copy your cells in Excel, Google Sheets or Numbers, or copy CSV text from a file.
  2. Open the paste box above the grid and paste the data.
  3. Press Fill the table. Tabs, commas, semicolons and pipes are recognized as column separators.
  4. Fix the details by editing cells, adding rows or columns and setting the alignment of each column.

If your data is in a CSV file and you want to look at it first, open it with the CSV Viewer. If it is JSON, change it into rows with JSON to CSV and then paste it here.

HTML Table to Markdown: Table Syntax for README Files

Switch to the Markdown tab to get the same table in GitHub style Markdown. Markdown tables are used in README files, wikis, documentation sites and many blog editors. The header is separated from the body by a row of dashes, and colons in that row set the alignment of a column.

| Product  | Price  |
            | :------- | -----: |
            | Mouse    | $19.99 |
            | Keyboard | $79.00 |

Markdown tables cannot hold complex content such as nested lists or merged cells. If you need those, use the HTML tab instead, or turn existing HTML into Markdown with the HTML to Markdown Converter.

Common HTML Table Mistakes and How to Fix Them

A table that looks right can still be hard to use. These are the problems that come up most often.

HTML table mistakes and fixes
Mistake Why it is a problem How to fix it
Using a table for page layout Tables are for data, and layout tables confuse screen readers and break on phones Use CSS flexbox or grid for layout
No header cells Assistive technology cannot connect data to headings Turn on the header row so the first row uses th
Missing scope attributes Screen readers may read headers in the wrong order Keep the tool's scope="col" and scope="row" output
Table overflows on small screens A wide table pushes the page sideways Turn on the Responsive wrapper option
No caption Visitors and search engines get no summary of the table Add a short caption such as Price list 2026
Needing merged cells The editor does not create colspan or rowspan Add the attribute by hand to a th or td after copying the code
Pasting into an email Email apps often remove style tags Choose Inline styles instead of a style block

Where to Use an HTML Table Generator

  • Web developers: Create data tables for pages and prototypes without typing every tag.
  • Bloggers and WordPress users: Add comparison tables and price lists to posts through the HTML or Custom HTML block.
  • Email marketers: Build simple schedules and product tables with inline styles for newsletters.
  • Content managers: Turn a spreadsheet into table code for a CMS page.
  • Students and teachers: Learn how table, thead, tbody, tr, th and td fit together.
  • Technical writers: Create Markdown tables for README files and documentation.

Create HTML Tables on Mobile, Windows and Mac

Our HTML table generator runs in your web browser, so you can build tables on Android, iPhone, Windows, Mac and Linux without installing an editor or a plugin. Open the page, fill the grid or paste your data, choose a style and copy the code. On a computer, press Enter to move down a row and Tab to move right, just like in a spreadsheet.

Tips for Better HTML Tables

  • Keep headings short: Short column names are easier to scan and fit small screens better.
  • Align numbers to the right: Right-aligned figures are easier to compare.
  • Use a footer for totals: The footer row keeps sums and summaries apart from the data.
  • Minify for production: Turn on Minify code to remove extra whitespace once your table is final.
  • Allow HTML in cells carefully: Enable it only for content you trust, such as links or bold text that you wrote yourself.
  • Test on a phone: Check the preview at a narrow width before you publish.

Is It Safe to Create Tables Online?

Your table is built inside your browser. The data you type or paste is not uploaded, saved or stored by this tool, and it disappears when you close or refresh the page. As a general habit with any online tool, avoid putting confidential figures or personal data into a table that you plan to publish.

More Free Developer Tools You May Need

Building a table is usually one step in a bigger workflow. These related free tools make the rest of the job easier:

Free HTML Table Generator Online: Fast, Private and Easy to Use

Our free HTML table generator was built to make it simple for everyone to create clean table code with CSS. If you want an HTML table maker with a live preview, spreadsheet-style editing and Markdown output, with no signup, no installation and no uploads, this page gives you exactly that. Fill the grid, pick your style and copy the code.

COMMON QUESTIONS

Frequently Asked Questions About HTML Tables

Find answers to common questions about creating HTML tables online.

How do I create an HTML table online?

Type your data into the grid, set the options you want and copy the HTML code from the code box. You can add rows and columns with one click, and the preview shows exactly how the table will look.

Is this HTML table generator free?

Yes. You can create as many tables as you like without signup and without a watermark.

Can I paste data from Excel or Google Sheets?

Yes. Copy the cells in your spreadsheet, open the paste box above the grid, paste them and press Fill the table. CSV text with commas, semicolons or pipes also works.

How do I make an HTML table responsive?

Turn on the Responsive wrapper option. The table is placed inside a container with horizontal scrolling, so wide tables scroll on small screens instead of breaking your layout.

How do I add borders and colors to my table?

Choose a table style such as Basic borders, Striped rows, Modern or Dark header. You can output the CSS as a style block with a class name, as inline styles, or leave it out and write your own CSS.

Can I merge cells with colspan or rowspan?

The editor does not merge cells. After you copy the code, you can add a colspan or rowspan attribute to any th or td tag by hand.

Is my table data stored anywhere?

No. The table is generated in your browser, so your data is not uploaded or saved by this tool.