HTML Table to CSV Converter
Paste HTML containing a <table> element and convert it to CSV instantly. Preview extracted data before downloading.
⚠ No <table> element found. Make sure your HTML contains a valid <table>.
Frequently Asked Questions
How do I use this tool to extract table data from a website?
Right-click the table on any webpage → Inspect Element → copy the outer HTML of the <table> element. Paste it here and click Download CSV.
Does it handle merged cells (colspan/rowspan)?
Basic colspan and rowspan support extracts the visible text content. Complex merged cell layouts may not map perfectly to a flat CSV structure.
Can I convert multiple tables at once?
Currently the tool extracts the first <table> found in the HTML. Support for table selection is planned.
Are <th> and <td> elements both supported?
Yes. Both <th> (table header) and <td> (table data) elements are extracted as regular CSV fields.
Is my HTML sent to a server?
No. The HTML is parsed entirely in your browser using the native DOMParser API. Nothing is uploaded.
How HTML Tables Map to CSV
An HTML table is a two-dimensional grid: rows are<tr> elements, and cells are<td> or<th> elements. The converter reads each row top-to-bottom and each cell left-to-right, joining cells with commas (or the chosen delimiter) and rows with line breaks.
<!-- Input HTML -->
<table>
<thead><tr><th>Name</th><th>Score</th></tr></thead>
<tbody>
<tr><td>Alice</td><td>95</td></tr>
<tr><td>Bob</td><td>87</td></tr>
</tbody>
</table>
/* Output CSV */
Name,Score
Alice,95
Bob,87Common Use Cases
- Copy tables from websites — right-click → “Inspect”, copy the
<table>HTML, paste here, and export to CSV for analysis in Excel or Python. - Email tables — many email clients render HTML tables; extract the data as structured CSV for processing.
- CMS data — extract pricing or feature comparison tables from a website HTML file without writing a scraper.