About the HTML Table to CSV Converter
Tables on web pages are hard to copy cleanly; pasting often merges cells or drops rows. If you can view the page source, or copy the table's HTML from the browser inspector, this tool parses it and writes each row as a CSV line. Header cells and data cells are both read, nested markup inside cells is flattened to its text, and whitespace is normalised.
The first table in the HTML is used. If the page has several, copy just the one you want. Values containing the delimiter, quotes or line breaks are quoted correctly, and a semicolon or tab delimiter can be chosen for spreadsheets that expect them.
The converse, CSV to HTML Table, builds markup from data. For JSON output use HTML Table to JSON.
How to use
- Copy the table's HTML (right-click the table in your browser, Inspect, then Copy outerHTML) and paste it on the left.
- Choose the delimiter.
- Download or copy the CSV.
Common questions
- Does it fetch a URL?
- No. Nothing is downloaded from the web; paste the HTML source yourself. That keeps the tool fully client-side.
- What about merged cells (colspan)?
- A merged cell is written once, in its first column. Rows may then have fewer cells; fix them in the spreadsheet.
- Can it handle several tables?
- Only the first is converted. Paste the tables one at a time.