HTML Table to CSV Converter — Free Online Tool

Extract tables from any HTML page or fragment and download as clean CSV. Handles colspan, rowspan, and links. Browser-only privacy.

100% privateNo signupRFC 4180
Paste an HTML page, table fragment, or drop a saved page. Processed locally.

Settings

CSV output will appear here

Paste an HTML table or page, then click Convert

How it works

4 steps. Everything runs in your browser.

1

Paste HTML

Paste a single <table> element, an HTML fragment, or a full saved web page.

2

Pick table

If the page has multiple tables, choose which one to convert via the slider.

3

Convert

Browser parses HTML locally; CSV with proper RFC 4180 escaping appears instantly.

4

Copy or download

Copy to clipboard or download a .csv file ready for Excel, Sheets, or any database.

What is HTML table to CSV conversion?

HTML table to CSV conversion extracts tabular data from HTML — typically from web pages, saved documentation, or scraped reports — into the universal CSV format. Many web pages publish data in <table> elements (stock prices, sports stats, product catalogs, Wikipedia tables) without offering a download. This tool bridges that gap.

The browser's native DOMParser handles the heavy lifting — there's no upload, no scraping, no server roundtrip. Paste the HTML, optionally pick which table to convert if there are several, and get clean CSV.

Example: HTML table to CSV

Input HTML:

html
<table>
  <thead>
    <tr><th>Product</th><th>Price</th><th>Stock</th></tr>
  </thead>
  <tbody>
    <tr><td>Wireless Mouse</td><td>$24.99</td><td>120</td></tr>
    <tr><td>Mechanical Keyboard</td><td>$89.50</td><td>45</td></tr>
  </tbody>
</table>

Output CSV:

csv
Product,Price,Stock
Wireless Mouse,$24.99,120
Mechanical Keyboard,$89.50,45

Common use cases

Web scraping (manual)
Save a web page → paste into the converter → get clean CSV for analysis.
Wikipedia tables
Extract historical, statistical, or reference tables for offline use.
Documentation
Convert API parameter tables, error code lookups, or change logs into CSV.
Reporting
Move HTML dashboards or admin export tables into spreadsheet form.

Why use our HTML Table to CSV converter?

100% Private

HTML parsed in your browser via DOMParser. No upload, no tracking.

Colspan & rowspan aware

Merged cells expand cleanly into CSV without leaving gaps.

Optional link extraction

Preserve URLs from <a> tags alongside link text — toggle in settings.

Frequently asked questions