Skip to content

HTML Table Generator

Free HTML table generator online: set rows and columns, edit cells, toggle a header row, add border/class/caption, paste CSV from Excel, and copy clean HTML — with or without minimal CSS. Runs in your browser.

  • Editable rows × columns grid with live preview
  • Header row, border, class, and caption controls
  • Optional minimal CSS (with or without styles)
  • Paste CSV / Excel tab data to fill cells
  • Copy HTML in one click — 100% client-side

Generator

Generated locally, nothing uploaded

Cells

Preview

HTML

How to generate an HTML table

  1. 01

    Set rows, columns, and header

    Choose how many rows and columns you need (up to 20) and toggle whether the first row should be wrapped in <thead>/<th>.

  2. 02

    Fill cells or paste CSV

    Type into the editable grid, or paste comma- or tab-separated data copied from Excel or Google Sheets to fill the table at once.

  3. 03

    Tune border, class, caption, and CSS

    Add an optional border attribute, CSS class name, and caption. Enable “with CSS” for a minimal border-collapse stylesheet, or leave it off for markup-only HTML.

  4. 04

    Preview and copy

    Check the live preview, then copy the HTML (and optional <style> block) into your page or CMS.

What this HTML table generator online is for#

An HTML table generator exists so you can sketch tabular markup without hand-writing every <tr> and <td>. This HTML table generator online keeps the workflow visual: pick rows and columns, edit cells in place, and watch a live preview update while the copyable HTML stays in sync. Use it for pricing grids, comparison charts, schedule blocks, CMS embeds, or email-friendly tables where you want predictable markup and escaped cell text.

Unlike a design tool that exports opaque HTML, the output here is plain, readable table markup — optional border, class, and <caption>, plus a proper <thead> when the header row is on. Everything runs locally in your browser; your cell data is never uploaded.

HTML table generator with CSS vs without CSS#

Searchers often want an HTML table generator with CSS for a ready-to-paste look, or an HTML table generator without CSS when styles live in a design system. This tool supports both. With CSS off, you get only the <table> tree — ideal when Tailwind, Bootstrap, or your own stylesheet already targets table, th, and td. With CSS on, a short <style> block is prepended: border-collapse, full width, 1px borders, padding, and a light header background, scoped to your class name when one is set.

The optional border="1" attribute is a legacy HTML affordance that still helps in plain documents and some email clients. Prefer CSS borders for modern sites; keep the attribute when you need a no-stylesheet fallback. A semantic <caption> improves accessibility and context above the grid.

From Excel or CSV paste to HTML#

An HTML table generator from Excel workflow is usually “copy cells → paste → get markup.” Selecting a range in Excel or Google Sheets puts tab-separated values on the clipboard; this tool detects tabs on the first line and splits accordingly. Plain CSV (commas, no tabs) is parsed the same way. Pasting resizes the grid to match (capped at 20×20) and fills every cell so you can tweak a few values before copying HTML.

The parser is intentionally simple: it does not implement full RFC-4180 quoted fields. For everyday spreadsheet pastes and flat CSV exports that is enough. If a cell contains a literal comma and was quoted in a complex CSV file, prefer pasting from the spreadsheet UI (tabs) instead of a raw export.

Colspan, rowspan, and what this generator does first#

People looking for an HTML table generator with colspan and rowspan usually need merged header cells or category rows. This version focuses on a simple rectangular table first: one cell per grid slot, no visual merge UI yet. That covers most docs, blogs, and admin tables. After you copy the HTML, you can add colspan / rowspan by hand on specific <th> or <td> elements and delete the redundant cells those spans replace — browsers require the cell count per row to account for spans.

A later iteration may add click-to-merge controls; until then, treat merge attributes as a post-edit step on the generated markup. The FAQ below summarizes the pattern so you are not blocked when a design calls for a merged cell.

Frequently asked questions

Is this HTML table generator free and online?

Yes. It runs entirely in your browser — no account, no upload. Configure the grid, preview the table, and copy the HTML (with or without a minimal CSS block).

Can I generate an HTML table with CSS or without CSS?

Both. Toggle “Include minimal CSS” to prepend a short stylesheet (border-collapse, borders, padding, header background), or leave it off for markup-only HTML you style yourself.

Does it support colspan and rowspan?

Not in the visual editor yet — this release builds a simple rectangular table. After copying, you can add colspan or rowspan on individual cells and remove the cells those spans cover. A merge UI may come later.

Can I build a table from Excel or CSV?

Yes. Copy a range from Excel or Google Sheets (tab-separated) or paste comma-separated text into the CSV box. The grid resizes and fills automatically so you can edit cells before copying HTML.

What do the border, class, and caption options do?

Border adds the HTML border="1" attribute for a basic outline. Class sets a single CSS class on the <table> (and scopes the optional CSS). Caption inserts a <caption> element for an accessible table title.

Is cell content escaped in the output?

Yes. Characters like <, >, and & are escaped so spreadsheet text cannot inject tags into the generated HTML. The live preview uses that same escaped markup.

Is my table data uploaded anywhere?

No. Parsing, HTML generation, and preview all happen in your browser — nothing is sent to a server.

Developers

UUID Generator

Generate cryptographically random UUID v4 or time-ordered UUID v7, in bulk.

Developers

Base64 Encoder & Decoder

Encode and decode Base64 with correct UTF-8 handling, including the URL-safe alphabet.

Developers

ULID Generator

Generate ULIDs — sortable by creation time like UUID v7, but Crockford Base32 instead of hex.