CSV to HTML Table
Paste CSV and get HTML table code you can drop into any web page, with live preview.
Add CSV and click Convert to see the HTML here.
How CSV to HTML Table works
Turns CSV data into HTML table code you can paste into any web page. The first row goes in <thead> as <th> cells. The other rows go in <tbody> as <td> cells.
All text is escaped, so characters like < and & show as text and cannot break your page. Click the preview button to see the table as it will look.
Input to CSV to HTML Table
- Paste or type CSV into the input box, or upload or drop a .csv or .txt file. The separator is found for you.
- Turn off "First row is the header" when your data has no header. The table then has no <thead>.
- CSS class adds a class to the <table> tag, like class="table". Leave it empty for no class.
Output from CSV to HTML Table
- HTML code with one tag per line, indented with 2 spaces.
- Preview shows the first 300 rows. The code has all of them.
- Copy it, download it as table.html or open it in full screen. Change an option and the code updates right away.