CSV to HTML Table
Convert CSV rows to clean HTML tables. Fast, free, and fully client-side.
How the CSV to HTML Table Works
Converts CSV rows into an HTML table with the first row placed in a thead section and the remaining rows in tbody. Ampersands, less-than signs, and greater-than signs in headers and cells are escaped so the markup is not broken. Conversion runs in your browser, and the file is never uploaded.
Usage Example
Generate a table of quarterly figures as HTML to paste into a company web page.
Frequently Asked Questions
Which row becomes the table header?
The first CSV row always becomes the header inside thead, with each header cell written as a th element. Every following row becomes a tr inside tbody, with td cells.
Are quotes and special characters escaped?
Ampersands, less-than signs, and greater-than signs are converted to HTML entities in every header and cell. Double quotes are not escaped, which is fine for text placed between tags.
How are short rows handled?
A cell with no matching value in a short row is written as an empty td, so every row keeps the same number of cells as the header. Values beyond the header count are not shown in the table.
Browse more
See all CSV tools.
