HTML Table to CSV Converter
Extract HTML <table> data into CSV, TSV or semicolon-separated rows, in your browser.
How to use
- Paste HTML containing a <table> (or a whole page) into the input box.
- Pick the delimiter — comma, semicolon or tab.
- Copy the CSV from the output box.
About this tool
ShowHide
Paste HTML that contains one or more tables and get clean delimited rows out — handy when a page offers a table but no download, or when the data lives in an email or a saved report. The markup goes through the browser's own HTML parser, so missing closing tags, stray attributes and the sort of thing a real page is full of are repaired exactly as a browser would repair them, and the cells still come out in the right order. Cell text is whitespace-normalised, so line breaks and source indentation collapse into single spaces, and values are quoted when they contain your delimiter, a quote or a newline. Merged cells are not expanded: a cell spanning two columns appears once, so that row comes out one field short.
Frequently asked questions
Does it handle multiple tables?
Yes. Every <table> in the pasted HTML is converted, and the resulting CSV blocks are output one after another, separated by a blank line.
How are header cells treated?
Header cells (th) and data cells (td) are both included as ordinary fields, in document order, so your header row comes out as the first CSV row.
What about colspan and rowspan?
Cells are read once each, in source order, without expanding spans. Simple tables convert exactly; tables with merged cells may need manual touch-up.
Is my HTML sent anywhere?
No. Parsing and conversion happen entirely in your browser; nothing is uploaded.
One row came out with fewer fields than the others. Why?
Almost always a merged cell. A cell spanning two columns is read once, so that row is one field short of its neighbours — the data is not lost, it is just not duplicated across the span. Re-add the repeated value by hand if the destination needs a rectangular grid.
Do I need to clean the HTML before pasting?
No. It goes through the browser's own HTML parser, which repairs unclosed tags and stray attributes exactly as a browser would, so markup copied straight out of a page works. Cell text is also whitespace-normalised, so line breaks and source indentation collapse to single spaces.
Related tools
CSV → HTML / Markdown / JSON Table
Convert CSV to an HTML <table>, a Markdown table, or a JSON array of objects — auto-detects the delimiter.
Convert
CSV Viewer & Sorter
View CSV / TSV data as a sortable, searchable table — open a file or paste rows, no spreadsheet required.
Text
Markdown Table Generator
Paste CSV, TSV, or pipe-delimited data and get a properly aligned GitHub-flavored Markdown table.
Text
CSV to Excel (XLSX) Converter
Turn CSV or TSV into a real .xlsx file in your browser, with leading zeros, long IDs and codes like SEPT1 kept exactly as typed.
File
CSV ↔ TSV ↔ Pipe Converter
Switch delimited text between CSV, TSV, pipe, and semicolon — with proper RFC-4180-style quoting and auto-detection.
Convert
CSV → SQL INSERT Generator
Convert CSV / TSV rows into SQL INSERT statements with table name, dialect quoting, type inference, and multi-row mode.
Convert