Free HTML to CSV Converter

Extract table data from any HTML page and download it as a CSV file.

Data never leaves your browser — 100% private

Drop your HTML file here

or click to browse

How to convert

  1. 1

    Paste your HTML containing a table into the text area, or upload an .html file.

  2. 2

    The converter finds the first <table> element and extracts its data.

  3. 3

    Click the Convert button to generate CSV output.

  4. 4

    Copy the result to your clipboard or click Download to save the .csv file.

Features

  • 100% private — data never leaves your browser
  • No file uploads to any server
  • No signup or account required
  • Free with no usage limits
  • Extracts data from HTML <table> elements
  • Handles <th> and <td> elements
  • Full UTF-8 and special character support
  • Works on any device with a modern browser

What is HTML to CSV conversion?

HTML to CSV conversion extracts structured table data from HTML markup and converts it into a flat CSV file. This is useful for scraping data from web pages, extracting tables from emails, or converting web-based reports to spreadsheet format. The converter reads the first <table> element in your HTML row by row, taking the text content of every <th> and <td> cell — stripping any nested links, bold text, or spans down to plain text — and writes each row as one line of CSV, including a header row of <th> cells if the table has one.

When to convert?

Convert HTML to CSV when you need to extract table data from a webpage, convert email tables to spreadsheet format, scrape data for analysis, or import web-based data into a database or analytics tool. It also helps when a dashboard or report only offers a webpage view with no export button — copy the page's HTML source, paste it in, and get a CSV you can open directly in Excel or Google Sheets instead of retyping the numbers by hand.

Frequently asked questions

Is my data safe when converting HTML to CSV?

Yes. The conversion runs entirely in your browser. Your HTML is never uploaded to any server.

What HTML structures are supported?

The tool extracts data from the first <table> element found in your HTML. It reads <th> and <td> elements to build the CSV.

Does it handle merged cells?

Basic colspan and rowspan are not expanded. For best results, use simple HTML tables without merged cells.

Can I extract tables from any webpage?

Yes. Copy the HTML source of any webpage containing a table, paste it into the input, and the tool will extract the table data.

Does it strip links and formatting from cells?

Yes. Any nested tags inside a <td> or <th> — links, bold text, spans — are reduced to their plain text content, so the CSV output is clean data rather than embedded markup.

What if the page has more than one table?

The converter extracts the first <table> element it finds. If your source has several tables, trim the pasted HTML down to just the one you need before converting.

Working with CSV data on your Mac? Open CSV files in Google Sheets with one double-click.

CSVtoSheets is a Mac app — double-click any CSV, XLS, or XLSX to open it in Google Sheets instantly.

MacDownload for Mac — Free TrialNo credit card required

Related Free Tools