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.
Build a table in a spreadsheet-style editor and get clean HTML or Markdown code instantly. Fast, free and no signup.
Tip: press Enter to move down a row and Tab to move right. Use the small menus above each column to align its text.
Type in the grid, or paste cells from Excel, Google Sheets or CSV.
Pick a style, header, footer, alignment and a responsive wrapper.
Copy the HTML or Markdown, or download it as a file.
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.
Type directly into cells, add rows and columns, align text and paste data from Excel or Google Sheets. The preview updates live.
Choose basic borders, striped rows, a modern style or a dark header. Get the CSS as a style block, inline styles or plain HTML.
Copy semantic HTML table code or a Markdown table for GitHub README files, documentation and blog editors.
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.
| Tag | What 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 |
<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>
tbody tr:nth-child(even) to give every second row a light background.tbody tr:hover to highlight the row under the mouse.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.
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.
| 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 |
The generator can deliver the CSS in three ways. Choose the one that matches where the table will live.
| 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.
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.
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.
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.
A table that looks right can still be hard to use. These are the problems that come up most often.
| 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 |
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.
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.
Building a table is usually one step in a bigger workflow. These related free tools make the rest of the job easier:
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.
Find answers to common questions about creating HTML tables 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.
Yes. You can create as many tables as you like without signup and without a watermark.
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.
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.
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.
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.
No. The table is generated in your browser, so your data is not uploaded or saved by this tool.
Build tables here, then view CSV files, format HTML, minify HTML or convert HTML to Markdown in seconds. Explore free developer tools to format, convert and debug your code in one place.
Explore All Developer Tools →