Skip to content
Jellykit

HTML Table Generator

Turn pasted spreadsheet cells or CSV into clean, accessible HTML table code, with a header row, caption and optional styling.

  • Runs on your device
Loading tool

About HTML Table Generator

Copy a range of cells from a spreadsheet, or paste or type CSV, and this tool writes the HTML for it: a thead with proper column headers, a tbody, an optional caption, and every cell escaped so that characters like < and & show up as text.

Choose plain markup to style with your own CSS, or add borders and striped rows, either as a small style block or as inline styles that survive email clients and content editors. A live preview shows the table as it will look.

How it works

  1. The data is read as delimited text with full CSV quoting, so a cell can contain commas, quotes or line breaks. The separator is detected from the first lines unless you choose one.
  2. Rows with fewer cells than the widest one are padded with empty cells, so the table stays rectangular. Spaces around each cell are trimmed.
  3. Header cells are written as th with scope="col", which lets screen readers announce the column for each cell. A caption names the table for everyone.
  4. Every cell and the caption are escaped, so pasted text can never turn into tags or scripts in your page.

Questions

How big a table can it make?

Up to 1,000 rows and 50 columns from up to 200,000 characters of data. Anything beyond that is left out, with a note saying so. A larger table usually reads better split up or as a downloadable file.

Should I use inline styles or the style block?

The style block keeps the markup short and is easy to restyle. Choose inline styles for HTML email and for editors that strip style blocks, since every cell then carries its own borders and colors.

Can I edit the cells in a grid?

Edit them in the data box, which works like a CSV file: one row per line, cells separated by commas. For larger edits it is quickest to change the spreadsheet and paste again.

Is my data uploaded?

No. The table is built on this page and nothing you paste leaves your browser or is stored.

Everything you enter here is processed in this browser tab. Nothing is uploaded, logged or shared. How privacy works here.