HTML Table to CSV

Extract any HTML <table> into clean, properly quoted CSV.

Ad placeholder (leaderboard)
Enjoying the tools? Go Pro for £4.99 (one-time) and remove all ads — forever, on this device. Remove ads — £4.99

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 &amp; 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.

DelimiterUse
CommaStandard CSV, Excel/Sheets
SemicolonEuropean locales
TabTSV imports
PipeDatabase/log pipelines

Everything runs in your browser — nothing is uploaded.

Ad placeholder (rectangle)