How to convert CSV and HTML
CSV is easy to import into spreadsheets; HTML tables are convenient for displaying simple records on a page. This converter uses the first CSV row as table headers and supports correctly quoted commas and line breaks.
Example CSV input
Name,City
Alice,Hanoi
Bob,TokyoExample HTML output
<table>
<thead><tr><th>Name</th><th>City</th></tr></thead>
<tbody><tr><td>Alice</td><td>Hanoi</td></tr><tr><td>Bob</td><td>Tokyo</td></tr></tbody>
</table>Create a display table
CSV → HTML Table escapes cell values so text such as an angle bracket appears as text, not as executable markup. Use it for simple comparison tables, catalog extracts or documentation, then add styling in your website separately.
Import only simple HTML tables
HTML Table → CSV expects one table with equal-width rows. It rejects merged cells with rowspan or colspan because a flat CSV cannot express their geometry reliably. Nested visual layouts and multiple tables should be edited before conversion.
Check spreadsheet compatibility
A CSV field may contain a comma, quote or a line break. Open the exported CSV with an appropriate import option and confirm row count, column count and quoting. Treat identifiers like 001 as text to avoid losing leading zeros in a spreadsheet.
Frequently asked questions
Are commas inside quoted CSV cells supported?
Yes. Quoted commas, doubled quotes and embedded line breaks are parsed as data.
Can it convert tables with merged cells?
No. Rowspan and colspan are rejected rather than silently flattening the table.