CSV to HTML table

Paste your CSV data and get both a live preview of the table and the <table> code, ready to drop into your page.

๐Ÿ”’ Your data stays in your browser: nothing is saved or uploaded.

Why the code uses thead, tbody, and th

A well-built HTML table is more than a grid of <td> cells: headers belong in <th> elements inside a <thead>, with the scope="col" attribute that helps screen readers associate each cell with its column. The code generated here follows that structure, so your table is accessible, easier to style with CSS (for example thead th { background: #eee }), and ready for sorting plugins that expect a separate <tbody>.

Special characters: no broken tables

If a cell contains <, >, &, or quotes, pasting it into your markup as-is could break the page or open the door to unwanted code. The tool automatically converts these characters into their HTML entities (&lt;, &gt;, &amp;, &quot;), so you can safely convert CSVs containing formulas, prices with symbols, or code snippets without any manual cleanup. The delimiter (comma, semicolon, or tab) is detected automatically, and quoted fields are handled correctly.