CSV with a header row
Paste "Name,Age,City" then "Alice,30,NYC" and "Bob,25,LA" with First row is a header on, to get a <table> with a <thead> row and 2 data rows below it.
Generate HTML table code from CSV, Excel or TSV data with a live preview — free online.
About
Turns pasted CSV, TSV or spreadsheet data into clean HTML table markup, with a live preview.
Content editors use it to turn a spreadsheet range into a table they can paste straight into a CMS or email, and developers use it to quickly scaffold a static HTML table from sample data. It's one of many free data tools on Toolapt, and like every tool here, it's free to use with no sign-up and no limit on how many times you run it.
Examples
3 worked examples
Paste "Name,Age,City" then "Alice,30,NYC" and "Bob,25,LA" with First row is a header on, to get a <table> with a <thead> row and 2 data rows below it.
Pasting three products copied straight from a spreadsheet (tab-separated) is detected automatically and gives the same clean <table> markup — a header row plus 3 data rows.
Paste "1,2,3" then "4,5,6" with First row is a header turned off, to get 2 rows of plain <td> cells and no <thead> section at all.
FAQ
Quick answers to common questions about the HTML Table Generator.
It converts pasted CSV, TSV or spreadsheet data into ready-to-use HTML table markup, with a live preview.
Yes. It's free, with no sign-up, no watermark and no limit on how many times you use it.
Yes. The HTML is generated entirely on your own device — nothing you paste is sent to a server.
Comma-separated (CSV) and tab-separated (TSV) data both work, since the tool auto-detects the delimiter — this includes data copied directly from Excel, Google Sheets or similar spreadsheet programs.
When it's on, the first row is wrapped in a proper <thead> section with <th> cells; when it's off, every row (including the first) becomes a regular <tbody> row of <td> cells.
It adds a border="1" attribute to the generated <table> tag, giving it simple visible gridlines without needing separate CSS.
No, beyond the optional border attribute — it's plain, semantic table markup you can style further with your own CSS wherever you use it.
Yes. The page is fully responsive and works on mobile, tablet and desktop browsers alike.
Did HTML Table Generator work for you?