HTML Table to CSV
Convert HTML tables into CSV
Paste an HTML table first to convert it into CSV immediately; header and delimiter handling notes are available in Advanced mode.
The full guide also includes pitfalls, worked examples, snippets, FAQs, and related tools for checking results or troubleshooting.
About this tool
Extract simple tr/td/th structures from pasted HTML text into quoted CSV cells. Matching rows from all tables are combined. Tags are stripped and whitespace is collapsed; HTML entities, spans, visibility, and nested-table layout are not resolved. Review the text output before importing it into a spreadsheet. No URL is fetched.
Production Snippets
HTML entities remain text in the CSV
text
Input:
<table><tr><th>Name</th><th>Note</th></tr><tr><td>A & B</td><td><b>hot</b> item</td></tr></table>
Output:
"Name","Note"
"A & B","hot item"Failure Clinic (Common Pitfalls)
The CSV is expected to match the rendered table exactly
Cause: The regular-expression extractor does not decode entities, expand spans, apply CSS visibility, or separate multiple tables. Nested and malformed markup can change matches.
Fix: Paste a single simple table and inspect the raw CSV. Use a DOM-aware export workflow when merged cells, visibility, or exact rendered text must be reproduced.
Frequently Asked Questions
What markup is extracted?
The converter matches tr blocks and td or th cells in the pasted text. It includes matched rows from multiple tables in one output, with no table selector or special header inference. Every cell is double-quoted and embedded quotes are doubled.
Are entities, merged cells, and hidden cells resolved?
No. HTML entities such as & remain encoded, rowspan and colspan do not expand cells, and CSS visibility is ignored. Nested tags are replaced by spaces and whitespace is collapsed. Nested or malformed tables can be misread by the regular-expression parser.
Does it fetch a page or export an Excel file?
No. Paste the markup yourself; the tool produces CSV text locally. It does not fetch URLs, run scripts, render a table, or create an .xlsx file.
Keep browsing