HTML Table Generator
Type your data into the grid, or paste it straight from Excel, Google Sheets or a CSV file, and copy the HTML table code. The markup is clean and indented: a <thead> with proper <th> header cells, a <tbody> for the rest, and nothing else, so it drops into a web page, a blog post or a Markdown file without a pile of inline junk to delete. If you're pasting into an email or an editor that strips CSS, one switch adds simple inline borders and padding instead. Anything you type is escaped, so a < or & in a cell shows up as text rather than breaking the page. A live preview under the code shows exactly what you'll get.
How to use
- 1
Set the number of rows and columns, then type into the grid. The first row is the header unless you switch that off.
- 2
Or open "Paste from a spreadsheet or CSV", paste your rows, and press Import into the grid.
- 3
Add a caption if the table needs a title.
- 4
Turn on inline borders if the table is going into an email or an editor that strips CSS.
- 5
Press Copy HTML and paste the code into your page.