HTML Table to CSV Converter

Pull table data out of HTML — useful for scraping a webpage and getting clean CSV. Paste the HTML; the tool finds tables, extracts every row, and outputs CSV.

How to use the HTML Table to CSV Converter

Paste HTML that contains a <table>. The tool finds the table, extracts every row, and outputs CSV below — ready to copy or open in a spreadsheet.

Extracting tables as CSV

Tabular data on a web page lives inside <table> markup — rows of <tr>, cells of <td> — which is useless to a spreadsheet until it is extracted. Copying from the rendered page tends to mangle the result, picking up stray columns or losing structure.

This parses pasted HTML, finds the table, and emits clean CSV — one row per <tr>, with cells comma-separated and quoted where a value contains a comma or quote. For the same data as a JSON array of objects instead of CSV, use the HTML table to JSON converter; once you have CSV, the CSV viewer previews it and CSV to SQL INSERT turns it into statements.

Common use cases

  • Scrape a table — pull tabular data off a web page into CSV.
  • Open in a spreadsheet — get table data into Excel or Google Sheets.
  • Clean an export — convert an HTML report table to CSV.
  • Keep the header — the first row becomes the CSV header line.
  • Pipe onward — feed the CSV into other data tools.

Frequently asked questions

Does it keep the header row?

Yes — the first row is emitted as the CSV header line.

What if the HTML has more than one table?

For predictable output paste a single table; rows are read in document order.

How do I get JSON instead?

Use the HTML table to JSON converter for an array of objects.

Are commas inside cells handled?

Yes — cells containing commas or quotes are quoted according to CSV rules.
Embed this tool on your site

Free to embed, no attribution required (but appreciated). Paste this where you want the tool to appear: