HTML Table Generator

Create HTML tables by typing in a grid or pasting from Excel. Header row, stripes and CSS included. Free.

50 free uses every 24 hoursUnlimited with Pro →

Private by design — your data stays on your deviceEverything runs right here in your browser. What you type is not sent to our server and is not stored.
  • Runs in your browser
  • Not stored
  • No sign-up

This HTML table generator builds a styled table for your website or email without you writing any code. Type your data into a grid or paste it from Excel, check the live preview, and copy the finished HTML. It is free, and it suits bloggers, marketers, students and anyone who needs a clean table fast.

How do you create an HTML table with this tool?

You can have a working table in about a minute. The steps follow the tool from top to bottom.

  1. Set the rows and columns. Pick the grid size that matches your data. A rough guess is fine.
  2. Type or paste your data. Click a cell and type, or copy a range from Excel and paste it into the grid.
  3. Choose your styles. Turn on the header row and stripes if you want them. The CSS is included.
  4. Check the live preview. Make sure the table looks right before you take the code.
  5. Copy the HTML. Paste it into your page, post or email template.
How to use the HTML Table Generator on OneHubTools: 5 steps with a real screenshot of the tool
How to use the HTML Table Generator, step by step.

When you are done here, you might also want the CSV to JSON or the HTML CSS JS Playground.

What is an HTML table generator good for?

Hand-written table markup is repetitive. Every cell needs its own tags, and one missing closing tag can break the layout. A generator does that part for you, so you only deal with the content.

  • Pricing and plan comparisons on a landing page or blog post.
  • Product specs such as sizes, weights and materials.
  • Schedules and timetables for events, classes or opening hours.
  • Reports and small data sets that started life in a spreadsheet.
  • Email content where you need a simple table and no extra tools.
  • Learning examples if you are studying how table markup is structured.
Result from the HTML Table Generator on OneHubTools
What the HTML Table Generator gives you.

How do you turn an Excel sheet into an HTML table?

Select the cells in Excel, copy them, and paste them into the grid. The tool reads the pasted data and fills the cells for you. You can then fix typos, change the rows and columns, and copy the result as HTML.

This is much quicker than retyping a spreadsheet. It also avoids the mess you get when you paste a sheet straight into a page editor.

Before you copy from Excel, tidy the range:

  • Include the header labels in the first row of your selection.
  • Delete blank rows and columns you do not need.
  • Skip cells with long notes. They make the table wide and hard to read.

Tips for a table that reads well

  • Use a header row. It tells readers, and search engines, what each column means.
  • Keep headings short. "Price" works better than "Price per month in dollars including tax".
  • Turn on stripes for long tables. Alternating shading helps the eye follow a row across.
  • Skip stripes for tiny tables. With three or four rows they add clutter.
  • Keep each column consistent. Do not mix dates, text and numbers in one column.
  • Use the preview before copying. It is faster to fix a typo in the grid than in your live page.

Which method should you use?

MethodBest forMain drawback
Typing in the gridSmall tables made from scratchSlow if you have a lot of data
Pasting from ExcelData that already lives in a spreadsheetNeeds a tidy range first
Writing the HTML by handCustom layouts and special markupRepetitive and easy to get wrong

Common problems and how to fix them

The pasted data lands in the wrong cells

Check your selection in Excel. Merged cells and hidden columns can shift data around. Unmerge cells and unhide columns, then copy again.

The table looks different on your site

Your site's own CSS can override the styles you copied. If the look changes, check your theme's table rules. Adjust them, or edit the copied CSS to match your design.

The table looks odd in an email

Email apps handle code differently from browsers. Keep the table simple and send yourself a test message before you send it to your list.

The table is too wide

Remove columns you do not need, or shorten the text in each cell. A narrow, focused table is easier to read, especially on a phone.

Is your data safe?

The tool works in your browser, so nothing you type or paste is uploaded. That makes it a reasonable choice for draft figures and internal numbers. Still, read the table over before publishing anything public.

Limits and specs

PriceFree
Free use50 uses every 24 hours — shared with 178 other tools in the “Basic tools” group
Where it runsIn your browser
Sign-upNot needed
Muhammad Shahwaiz Gillani
Maintained and reviewed by Muhammad Shahwaiz GillaniSoftware engineer and founder of OneHubTools · Last reviewed

How we checked it: We tested it in Chrome with real code and data, including edge cases such as empty input and very long values.

Learn more

According to MDN Web Docs, HTML is the standard markup language that defines the structure of every web page, and it was created more than 30 years ago.

Spotted a mistake or the tool did not work for you? Tell us and we will fix it.

Rate this tool

Ratings come only from signed-in users, so every rating is verified.

Only signed-in users can rate tools, so every rating shows a ✔ Verified badge.Sign in to rate

Frequently asked questions

What is an HTML table generator?

An HTML table generator is a tool that creates table code from data you enter in a grid. You do not write the tags yourself. You copy the finished HTML and paste it into your page.

Can I paste data from Excel into this tool?

Yes, you can copy cells from Excel and paste them straight into the grid. Check the live preview afterward and fix anything that landed in the wrong place.

Does the generated table include CSS?

Yes, the styling is included with the HTML. You can switch on a header row and stripes, then copy everything in one go.

Can I use the table in an email?

Yes, the tool is meant for both websites and emails. Email apps display code differently, so send a test message before you send it to your list.

Do I need to know HTML to use it?

No, you only need to set the rows and columns, type or paste your data, and copy the result. Knowing a little HTML helps if you want to adjust the styling later.

Is the HTML table generator free?

Yes, it is free to use. Your data stays in your browser and is not uploaded.