Turn an HTML table into CSV
Grabbed a table from a web page or report and need it in a spreadsheet? Paste the
<table> markup and this tool extracts every row into clean CSV — ready to
import into Excel, Google Sheets, or a database.
How it works
The tool parses the markup, finds every table row (tr), and reads each cell
(th or td) in order. For each cell it strips inner tags down to their text,
converts <br> to spaces, and decodes HTML entities back to real characters
(resolving & last so values are not double-decoded). It then builds CSV rows
using your chosen delimiter, and applies RFC 4180 quoting: any field containing
the delimiter, a double quote, or a newline is wrapped in double quotes, with
internal quotes doubled. The CSV updates as you paste or edit.
Example
This markup:
<table><tr><th>Name</th><th>Note</th></tr><tr><td>Ann</td><td>Smith, Jr</td></tr></table>
becomes (comma delimiter):
Name,Note
Ann,"Smith, Jr"
The Smith, Jr cell is quoted because it contains the comma delimiter.
| Delimiter | Use |
|---|---|
| Comma | Standard CSV, Excel/Sheets |
| Semicolon | European locales |
| Tab | TSV imports |
| Pipe | Database/log pipelines |
Everything runs in your browser — nothing is uploaded.