Skip to main content

HTML Table to CSV Converter

Extract HTML tables into CSV format

Paste HTML containing a table — a whole page source or just the table markup — and get the rows back as CSV. It is the quickest way to pull a table off a web page when the site offers no export button.

Pages often contain several tables, including ones used for layout, so each table found is listed and you choose the one you actually want. Cell text is extracted and the surrounding tags, links, and inline formatting are stripped, leaving the readable content.

Everything is parsed in your browser. The markup you paste is not sent anywhere, which matters when the page came from an internal dashboard or an authenticated report.

Files stay on this deviceRuns entirely in your browserFree — no signup

How to Convert

  1. Copy the page source or the table markup you want
  2. Paste it into the input box
  3. Select which table to convert if the page contains more than one
  4. Review the preview and download the CSV

Features

  • Paste full page source or just the table markup
  • Finds every table in the markup and lets you pick one
  • Extracts readable cell text, stripping tags and inline formatting
  • Reads header cells into the CSV header row
  • Preview the extracted rows before downloading
  • Proper CSV quoting for values containing commas or quotes
  • Runs entirely in your browser — nothing is uploaded

Use Cases

  • Export a table from a site that provides no download option
  • Pull figures out of an internal dashboard or report page
  • Capture a reference or documentation table for analysis
  • Convert an archived HTML report into a usable dataset
  • Get a wiki or knowledge-base table into a spreadsheet

Frequently Asked Questions

How do I get the HTML from a page?

Use your browser’s View Source or right-click the table and choose Inspect, then copy the surrounding table element. Pasting the entire page source works too — the tables are located within it.

What if the page has several tables?

Each one found is listed so you can pick the right one. Many sites still use tables for layout, so the first match is not always the data you want.

What happens to links and formatting inside cells?

The readable text is kept and the markup is stripped, so a cell containing a link becomes the link text rather than the full anchor tag.

Does this work on tables built with divs?

No. Extraction relies on real table, tr, and td elements. A grid built from styled divs has no table structure to read, so you would need a different approach.

Can it fetch a URL for me?

No — you paste the markup yourself. That keeps the tool free of server-side fetching and means authenticated or internal pages work, since the content never leaves your browser.

What about merged cells?

Cells spanning rows or columns do not map cleanly onto a rectangular grid. Check the preview and expect to fix up the alignment where a table uses rowspan or colspan.

Need to convert the other way? Try our Csv To Html