HTML Table to CSV

Free HTML table to CSV converter. Paste HTML with tables and extract clean, spreadsheet-ready CSV. Supports multiple tables and custom delimiters. 100%.

How to use

  1. Paste HTML — Paste HTML containing <table> tags. The tool works with raw HTML, copied from DevTools, or scraped pages.
  2. Choose Options — Pick a CSV delimiter and decide whether to include header rows.
  3. Convert — Click Convert to extract all tables into clean CSV format.
  4. Download — Copy the CSV or download it as a file for spreadsheets and databases.

Free HTML Table to CSV Converter

Extract data from HTML tables into clean CSV format. Paste raw HTML, choose your delimiter, and download spreadsheet-ready data. Supports multiple tables and RFC 4180-compliant escaping.

Common Uses

  • Scrape table data from websites for analysis
  • Convert report tables into Excel or Google Sheets
  • Extract pricing, inventory, or product listings
  • Migrate legacy HTML report data into databases
  • Clean up copied Wikipedia or documentation tables

How It Works

The tool uses the browser's DOMParser to parse your HTML, finds all <table> elements, walks each <tr> row and extracts <th>/<td> cell text. Fields are quoted and escaped according to standard CSV rules.

Privacy

HTML is parsed entirely in your browser. No data is transmitted to any server.

Related: CSV to JSON Converter, JSON to CSV Converter, Markdown Table Generator.

Frequently asked questions

Does it handle multiple tables?

Yes. If your HTML contains multiple tables, each is exported sequentially with a blank line separator.

What about merged cells (colspan/rowspan)?

Merged cells are read as-is; the tool does not expand colspan or rowspan. Each cell appears once in its original position.

Can I exclude header rows?

Yes. Toggle the 'Include header rows' switch off to skip any row that contains <th> elements.

Is the output RFC 4180 compliant?

The tool wraps fields containing commas, quotes, or newlines in double quotes and escapes internal quotes, matching standard CSV behaviour.

Related free tools

  • XML Formatter & Minifier — Beautify or minify any XML — SOAP, RSS, SVG, sitemap. Browser-based parser.
  • XML to JSON Converter — Parse any well-formed XML into a clean JSON tree with attributes and arrays.
  • JSON to XML Converter — Convert JSON to well-formed XML — supports attributes, custom root, declaration.
  • CSV Viewer — Open CSV or TSV files in your browser — sort, search, paginate, export filtered view.
  • JSON to CSV Converter — Convert JSON data to CSV format. Export to spreadsheets easily.
  • CSV to JSON Converter — Convert CSV data to JSON format. Useful for API development.
  • JSON Formatter — Format, beautify, or minify JSON with customizable indentation.
  • JSON Validator — Validate JSON syntax and find errors with line and column numbers.
  • HTML Minifier — Compress HTML by removing comments, whitespace, and line breaks.
  • CSS Minifier — Minify CSS by stripping comments, whitespace, and unnecessary characters.
  • JavaScript Minifier — Compress JavaScript by removing comments, whitespace, and empty lines.
  • Base64 Encoder/Decoder — Encode text to Base64 or decode Base64 back to text. UTF-8 support.

Browse all free tools · Guides and tutorials · PDF tools · Developer tools · Text tools · SEO tools