My Tools Garage

HTML Table to CSV

Turn an HTML table into clean CSV in one paste.

in-browser

How to use

  1. 1 Copy the HTML of the table you want to convert.
  2. 2 Paste it into the HTML input box.
  3. 3 Pick a delimiter and, if there are several tables, the table index.
  4. 4 Copy the generated CSV.

About HTML Table to CSV

HTML Table to CSV extracts the data out of an HTML table and rewrites it as clean, spreadsheet-ready CSV.

Paste the markup — a copied table from a web page, an email, a report or scraped source — and the tool reads each row and cell and produces comma-separated values you can drop straight into Excel, Google Sheets or a data pipeline.

The conversion is careful about the things that usually break naive copy-paste.

Cells containing the delimiter, double quotes or line breaks are wrapped in quotes and escaped to the CSV standard, so the structure survives reliably.

HTML entities such as & and numeric references are decoded back to real characters, line-break tags inside a cell become real newlines, and any nested formatting tags like bold or links are stripped down to their text.

Both header (th) and data (td) cells are included, in document order.

If the page holds several tables you can pick which one to convert by index, and you can switch the delimiter to a semicolon, tab or pipe to match your locale or downstream tool.

All parsing happens locally in your browser with plain string handling — no DOM upload, no server, nothing stored — so even sensitive tables stay on your machine, and the CSV updates live as you paste or tweak the options.

FAQ

How are commas and quotes inside cells handled?

Any cell containing the delimiter, a double quote or a line break is wrapped in quotes, and inner quotes are doubled, following the standard CSV escaping rules.

Can it convert one specific table from a page with many?

Yes. Set the table index to choose which table to convert; index 0 is the first table found in the markup.