HTML to CSV Converter
Extract data from HTML tables and convert it to CSV format directly in the browser with multi-table support.
Extract HTML Tables to CSV Online
The HTML to CSV Converter scans HTML markup for <table> elements and converts the
extracted rows into a clean CSV file. Choose your delimiter, decide whether to include the header
row, and pick whether to convert only the first table or every table found in the HTML source.
How the conversion works
- The HTML is parsed in your browser using the standard
DOMParser. - Each
<tr>in the chosen table(s) becomes a CSV row. - Cell text from
<th>and<td>elements is extracted, optionally trimmed and collapsed to a single space. - Fields containing the delimiter, quotes, or newlines are properly escaped.
Example: HTML input
<table>
<tr><th>Name</th><th>Country</th></tr>
<tr><td>Ada Lovelace</td><td>UK</td></tr>
<tr><td>Alan Turing</td><td>UK</td></tr>
</table>
Resulting CSV
Name,Country
Ada Lovelace,UK
Alan Turing,UK
Features
- Supports multiple tables in a single HTML document.
- Choose between comma, semicolon, tab, or pipe as the field delimiter.
- Optionally treat the first row as the CSV header.
- Whitespace normalisation removes line breaks and double spaces inside cells.
- Upload an
.htmlfile or paste markup directly. - Download the result as a
.csvfile or copy it to the clipboard.
Common use cases
- Pulling data from documentation pages or web reports into spreadsheets.
- Migrating tabular content from CMSes, wikis, or static HTML files.
- Preparing test fixtures for data pipelines that read CSV.
- Converting scraped HTML output into a format your analytics tool can ingest.
Frequently Asked Questions
Does this convert HTML lists or paragraphs?
No. CSV is a tabular format, so the converter only processes <table>
elements. If your data is in lists or paragraphs, restructure it as an HTML table before
converting.
Can I convert multiple tables in one go?
Yes. Select All tables from the table selector. Each table becomes its own CSV block separated by a blank line in the output.
What delimiter should I choose?
Comma is the standard CSV delimiter. Use semicolon for European locales, tab for TSV workflows, or pipe when data contains many commas or semicolons.
How are quotes and special characters handled?
The converter follows RFC 4180 escaping rules. Fields containing the delimiter, double quotes, or newlines are wrapped in double quotes, and existing quotes are doubled.
Are colspan and rowspan respected?
The tool extracts the visible text of each cell in row order. Spanned cells appear once; if your data must reflect the spanned layout exactly, normalise the table before pasting.
Is my HTML uploaded anywhere?
No. Conversion runs entirely in your browser using DOMParser and a CSV builder.
Your HTML never leaves your device.
Related tools
Your recent visits