CSV · TABLES · FREE TOOL

HTML table to CSV
in two clicks

Need the table from a web page inside Excel or Google Sheets? Paste the HTML and get RFC 4180-compliant CSV — every cell in its place, nothing sent to any server.

Updated August 2026 · 4 minute read

Why HTML-to-CSV is hard by hand

An HTML table is not just text — and CSV does not tolerate sloppy text either. Three things almost always go wrong when converting manually:

⎣ Commas inside cells

A cell like „1,234.56“ or „Springfield, IL“ breaks the column structure — unless the cell is correctly wrapped in quotes.

↵ Line breaks in cells

Cells with line breaks snap rows apart if they aren't escaped per RFC 4180. The file looks fine in a text editor and is broken in your spreadsheet.

🨀 colspan and nested markup

Headers spanning multiple columns, bold text, links and nested elements produce extra columns or empty fields when treated as plain text.

How to do it

The free Clean Copy web tool converts HTML tables to correct CSV directly in your browser.

1. Get the table's HTML

Right-click the table → Inspect
→ right-click the <table> element → Copy → Copy outerHTML.
(Alternatively: Ctrl+U and find the <table> block.)

2. Paste and pick CSV

Go to /clean-copy-tool, paste the HTML,
and click "CSV" as the output format.

3. Save as .csv

Copy the result into a text editor and save it as
competitor-prices.csv. Or paste straight into Excel /
Google Sheets — Data → From text/CSV reads it automatically.

✅ RFC 4180-compliant

Cells with commas, quotes or line breaks are quoted and escaped automatically — the file opens cleanly in any spreadsheet.

🧹 Just the table

Prose, menus and ads outside the table are dropped whenever a table is present in what you paste.

🔒 100% local

The conversion runs in your browser. Your data never leaves your machine.

Your options compared

MethodRFC 4180-safe?Catch
Manual copy-pasteNoCommas and line breaks wreck the columns
The site's own export buttonSometimesRarely exists; often locked behind a paid plan
Python script (BeautifulSoup)YesRequires coding and environment setup
Clean Copy web tool — CSV mode Yes None — free, no install, runs locally

Use it often? There's also a browser extension, a CLI tool and an Obsidian plugin powered by the same CSV engine.

Frequently asked questions

How do I convert an HTML table to CSV?

Open the free web tool at /clean-copy-tool, copy the table's HTML from the page (right-click → Inspect → copy outerHTML, or press Ctrl+U and locate the

block), paste it into the input field and choose CSV as the output format. You instantly get RFC 4180-compliant CSV you can save as a .csv file.

What is RFC 4180?

RFC 4180 is the standard for CSV files: rows separated by line breaks, cells separated by commas, and quotation marks around any cell that itself contains commas, quotes or line breaks. Clean Copy follows the standard, so your file opens correctly in Excel, Google Sheets, Numbers and every programming tool.

Are cells containing commas or line breaks preserved?

Yes. Cells that contain commas, quotation marks or line breaks are automatically wrapped in double quotes, and inner quotes are escaped — exactly as the standard requires. No values get cut short.

What about colspan and nested tables?

Clean Copy handles colspan/rowspan by repeating the value across the covered columns, flattens nested markup to plain text, and drops prose outside the table when a table is present — so you only get rows and columns.

Is my data sent to a server?

No. The conversion runs 100% locally in your browser with JavaScript. Nothing you paste ever leaves your machine.

Can I also get Markdown instead of CSV?

Yes. The same tool outputs Markdown tables (for Notion, Obsidian, GitHub) and WikiLinks format — just switch the output mode.

Try the converter now — free →

Related: Web table → Excel · Web table → Notion · Table → Google Sheets · HTML → Markdown converter · HTML-tabel til CSV (DA)