Extract data from an HTML table and convert it to CSV.
About HTML Table to CSV
Data on a web page is often trapped in an HTML table: rankings, prices, timetables, statistics. Copying it into a spreadsheet often merges cells or drops columns. This tool parses the HTML you paste, finds the first <table>, reads its header cells and rows and produces a clean CSV with proper quoting.
Paste the HTML source, click Convert, then copy the CSV or download it. Parsing uses the browser's own DOMParser, so the HTML never leaves your computer.
How to use HTML Table to CSV step by step
Open the page source or inspect the table in your browser and copy the HTML that contains the <table> element.
Paste it into the HTML box and click "Convert table to CSV".
Check the CSV in the result box; type a file name and click "Download CSV".
100% free and online: no payments, no software or extensions to install.
Privacy-first: processing happens in your browser, your data never leaves your device.
No sign-up: paste your data and get the result in one click.
Fast and reliable: handle small or large files in seconds, ready for Excel and other tools.
Common use cases
Extract a league table, an exchange-rate table or a statistics table from a web page into Excel.
Recover data from an old HTML report or an emailed HTML invoice.
Scrape a product listing table from a supplier's page for a price comparison.
Convert tables from an HTML export of Confluence, Notion or a CMS into CSV for analysis.
Limits and tips
Only the first <table> in the pasted HTML is converted. If the page has several tables, paste just the one you need.
Header cells (<th>) anywhere in the table form the first CSV row; data rows are read from <tbody> <tr> elements. Tables without thead or tbody fall back to reading every <tr>.
Merged cells (colspan or rowspan) are not expanded, so rows using them will have fewer cells than the header.
Cell text is taken from textContent: links, images and formatting are dropped and only visible text remains.
Frequently asked questions
How do I get the HTML of a table from a website?
Right-click the table, choose Inspect, find the <table> element in the developer tools, right-click it and select Copy > Copy outerHTML. Then paste that into the tool. Alternatively view the page source and copy the table section.
Why is the result empty?
No <table> element was found in the pasted text, for example because the page builds the table with div elements or loads it with JavaScript after the source was copied. Copy the element from the developer tools, which shows the rendered DOM, rather than from the raw source.
What happens with nested tables?
The outer table is converted and cells that contain inner tables are flattened to their text. For a nested table, copy only that inner <table> element and convert it on its own.
What is the difference between copying a table into Excel and using this tool?
Pasting into Excel depends on the browser and can merge cells, convert numbers or bring along images and links. This tool reads the table structure directly and writes a plain CSV where every cell is exactly the visible text, quoted when needed.
Is the HTML uploaded anywhere?
No. The HTML is parsed by the DOMParser built into your browser and the CSV is generated locally.