Zahid Awais Get a free audit

Free HTML table generator

Paste rows from Excel, Google Sheets or a CSV file, or type into the grid, and get clean table HTML with real header cells, scope and a caption.

By Zahid Awais · Content tools · Free, private, no sign-up

Edit the text box or the grid; each one updates the other. Cell text is escaped, so < and & show as text. Nothing leaves your browser.

Result
0Columns
0Data rows
0Data cells
    HTML Table Generator: what it does and an example result

    The free HTML table generator turns rows pasted from Excel, Google Sheets or a CSV file into clean table HTML with proper header cells, scope attributes and a caption, so the table is readable by people, screen readers and search engines. It runs in your browser.

    Quick answer

    An HTML table generator converts rows of data into table markup you can paste into a page. Paste CSV or spreadsheet cells, mark the header row, add a caption, and copy HTML that uses th with scope, thead and tbody. Accessible tables need real header cells; bold text in an ordinary cell is not a header.

    What is an HTML table generator?

    An HTML table generator is a tool that writes the <table> markup for you from data you already have. You paste rows from a spreadsheet or a CSV file, choose which row or column holds the headings, and the tool outputs a table with a caption, a thead of header cells and a tbody of data cells.

    The point is clean, meaningful markup. The W3C tables tutorial says "header cells must be marked up with <th>, and data cells with <td> to make tables accessible". Many editors and copy and paste routes produce tables where the top row is only bold text, or where every cell carries a font and colour. This tool gives you plain, valid markup that takes its look from your stylesheet.

    How do you use the HTML Table Generator?

    How to use the HTML Table Generator: enter details, see the result and copy it
    Real screenshot of the HTML Table Generator with the example input from this page.
    1. Copy the cells in Excel or Google Sheets, or open a CSV file, and paste the rows into the text box. The separator is detected for you.
    2. Check the grid. Fix a cell there or in the text box, and use the buttons to add or remove a row or column.
    3. Tick the header row option if the first line holds column names, and the header column option if the first cell of each row names that row.
    4. Type a caption that says what the table shows, then choose class names, inline styles or no styling.
    5. Look at the preview and the notes, then copy the HTML into your page or a Custom HTML block.

    How do you make an HTML table accessible?

    Use real header cells, link them to their data with scope, and give the table a caption. MDN's reference for the th element lists the scope values: col when "the header relates to all cells of the column", and row when it relates to all cells of the row. The W3C tutorial adds that a caption "identifies the overall topic of a table and is useful in most situations". Keep one value per cell and avoid empty header cells, so a screen reader can read each cell with its heading.

    Where does the caption go in a table?

    The caption goes straight after the opening <table> tag. MDN's caption reference says it "must be the first child of its parent" table, and that it gives the table "an accessible name or accessible description". Write it as a short title, such as "Search Console clicks by page", rather than a sentence that repeats the paragraph above. This tool always places it first.

    How do you stop a wide table breaking a mobile layout?

    Put the table inside a wrapper that scrolls sideways, so the table keeps its columns and the page itself does not scroll. The tool adds a div with overflow-x:auto, either as an inline style or as a table-wrap class you style in your CSS. It also adds tabindex="0" and a region label taken from the caption, so keyboard users can reach the wrapper and scroll it. Fewer columns is still the best fix: split a 9 column table into two smaller ones where you can.

    Quick reference

    and
    Element or attributeWhat it doesWhen to use it
    Names the tableAlmost always, as the first child of table
    Group the header row and the data rowsWhenever the table has a header row
    Header for every cell in its columnCells in the header row
    Header for every cell in its rowFirst cell of each row when it names the row
    Ordinary data cellEvery cell that is not a heading
    Scroll wrapperLets a wide table scroll inside the pageTables with more than 3 or 4 columns

    Worked example

    Example

    Example: the default data is a made up Search Console export with 4 columns and 3 pages. The numbers in the Impressions column contain commas, so the CSV wraps them in quotes, as in "25,300", and the tool keeps each one as a single cell. The output has a caption, a header row of 4 th scope="col" cells and 3 data rows with 12 data cells, inside a table-wrap div, and the result reads "Ready". If you paste tab separated rows where one row is short, the tool adds the missing empty cell and tells you how many rows it padded.

    Learn more

    Frequently asked questions

    Can I paste straight from Excel or Google Sheets?

    Yes. Copy the cells and paste them into the box. When they arrive as tab separated rows, the tool detects the tabs and splits the columns. Check the grid, fix any cell, and copy the HTML.

    Should I use inline styles or a class?

    Use a class when you can add CSS to your site, because one rule then styles every table and the HTML stays small. Choose inline styles when you cannot edit the stylesheet, for example in an email or a locked page builder.

    Does an HTML table help SEO?

    A table is a clear way to present comparisons, prices and specifications, and plain HTML text in a table can be read by search engines and AI tools. It is not a ranking trick. Use a table when the content really is tabular.

    Can I add merged cells with colspan or rowspan?

    Not in this tool. Merged cells make tables harder to read for screen reader users and on small screens. Split the data into simpler tables if you can, or add colspan and rowspan by hand after you copy the HTML.

    Is my data uploaded anywhere?

    No. The generator runs entirely in your browser with JavaScript. Your rows are never uploaded or stored, so you can use it with client figures and unpublished data.

    Why is my whole CSV in one column?

    The separator was not detected correctly, often because the file uses semicolons or pipes instead of commas. Choose the separator in the menu and the columns will split. Values that contain the separator must be wrapped in quotes.

    Sources

    Checked 23 Oct 2026. Facts checked against these official pages. Read how I check facts in my editorial policy.

    Related free tools

    All free tools

    Word to HTML Converter

    Cleans HTML pasted from Word or Google Docs into plain headings, lists, links and tables.

    HTML Minifier

    An HTML minifier is a tool that rewrites markup into fewer bytes without changing what the browser renders.…

    Markdown to HTML Converter

    A Markdown to HTML converter is a tool that parses Markdown syntax and outputs matching HTML elements. It…

    HTML Entity Encoder

    An HTML entity encoder is a tool that replaces characters with character references, which start with &…

    Want a full audit instead?

    Send your website and I will check it for you, free.

    Get my free audit
    Chat on WhatsApp
    Free updates

    Get new tools, guides and coupons first

    One short email when something new goes live: articles, free SEO tools, package updates, discounts and price alerts. No spam, unsubscribe in one click.