<table> to get started.What This Tool Does
HTML Table to CSV finds every <table> element in your pasted HTML, parses all rows and cells, strips inner HTML tags, decodes HTML entities, and outputs the data as a properly-escaped CSV. If there are multiple tables on the page you can switch between them using the table selector. The output respects RFC 4180 CSV rules — cells containing commas, quotes, or line breaks are automatically wrapped in double quotes with internal quotes doubled. You can change the delimiter to tab (for TSV), semicolon, or pipe before copying or downloading.
How to Use
- Paste your HTML — the full page source, or just the
<table>markup. - Use the Delimiter buttons to choose comma, tab, semicolon, or pipe.
- If multiple tables are detected, click a table selector button to switch between them.
- Check the table preview to confirm the correct data was parsed.
- Click Copy CSV to paste into a spreadsheet, or Download CSV to save the file.
Frequently Asked Questions
How do I get the HTML source of a web page table?
Right-click the table on any web page and choose "Inspect" (or "Inspect Element") in your browser's developer tools. Right-click the <table> node in the Elements panel and choose "Copy → Copy element" (Chrome) or "Copy outer HTML" (Firefox). Then paste that copied markup directly into this tool.
Does the tool handle cells with commas or quotes in them?
Yes. The CSV encoder follows RFC 4180: any cell containing the delimiter character, a double-quote, or a line break is wrapped in double quotes, and any double-quote inside the cell value is escaped as two consecutive double-quotes (""). This produces CSV that spreadsheet applications like Excel, Google Sheets, and Numbers parse correctly.
Will nested tables cause problems?
The tool parses each <table> tag sequentially in the order it appears in the HTML. If a table is nested inside another table, both will appear as separate table options in the selector. The inner table's rows will also appear inside the outer table's cells as plain text after tag stripping. For cleanest results, copy only the specific<table> markup you want to convert rather than the entire page HTML.
What is the difference between CSV and TSV?
CSV (comma-separated values) uses a comma as the column delimiter. TSV (tab-separated values) uses a tab character instead. TSV is useful when your data contains commas — tab characters almost never appear in natural text, so TSV files rarely require quoting. Both formats are supported by Excel, Google Sheets, LibreOffice Calc, and most data tools. If your data contains many dollar amounts, addresses, or other comma-heavy content, tab is usually the safer delimiter choice.