Report Tool or Give Us Suggestions

HTML to CSV Converter

Extract data from HTML tables and convert it to CSV format directly in the browser with multi-table support.

L ading . . .

Extract HTML Tables to CSV Online

The HTML to CSV Converter scans HTML markup for <table> elements and converts the extracted rows into a clean CSV file. Choose your delimiter, decide whether to include the header row, and pick whether to convert only the first table or every table found in the HTML source.

How the conversion works

  1. The HTML is parsed in your browser using the standard DOMParser.
  2. Each <tr> in the chosen table(s) becomes a CSV row.
  3. Cell text from <th> and <td> elements is extracted, optionally trimmed and collapsed to a single space.
  4. Fields containing the delimiter, quotes, or newlines are properly escaped.

Example: HTML input

<table>
  <tr><th>Name</th><th>Country</th></tr>
  <tr><td>Ada Lovelace</td><td>UK</td></tr>
  <tr><td>Alan Turing</td><td>UK</td></tr>
</table>

Resulting CSV

Name,Country
Ada Lovelace,UK
Alan Turing,UK

Features

  • Supports multiple tables in a single HTML document.
  • Choose between comma, semicolon, tab, or pipe as the field delimiter.
  • Optionally treat the first row as the CSV header.
  • Whitespace normalisation removes line breaks and double spaces inside cells.
  • Upload an .html file or paste markup directly.
  • Download the result as a .csv file or copy it to the clipboard.

Common use cases

  • Pulling data from documentation pages or web reports into spreadsheets.
  • Migrating tabular content from CMSes, wikis, or static HTML files.
  • Preparing test fixtures for data pipelines that read CSV.
  • Converting scraped HTML output into a format your analytics tool can ingest.

Frequently Asked Questions

Does this convert HTML lists or paragraphs?

No. CSV is a tabular format, so the converter only processes <table> elements. If your data is in lists or paragraphs, restructure it as an HTML table before converting.

Can I convert multiple tables in one go?

Yes. Select All tables from the table selector. Each table becomes its own CSV block separated by a blank line in the output.

What delimiter should I choose?

Comma is the standard CSV delimiter. Use semicolon for European locales, tab for TSV workflows, or pipe when data contains many commas or semicolons.

How are quotes and special characters handled?

The converter follows RFC 4180 escaping rules. Fields containing the delimiter, double quotes, or newlines are wrapped in double quotes, and existing quotes are doubled.

Are colspan and rowspan respected?

The tool extracts the visible text of each cell in row order. Spanned cells appear once; if your data must reflect the spanned layout exactly, normalise the table before pasting.

Is my HTML uploaded anywhere?

No. Conversion runs entirely in your browser using DOMParser and a CSV builder. Your HTML never leaves your device.

logo OnlineMiniTools

OnlineMiniTools.com is your ultimate destination for a wide range of web-based tools, all available for free.

Feel free to reach out with any suggestions or improvements for any tool at admin@onlineminitools.com. We value your feedback and are continuously striving to enhance the tool's functionality.

© 2026 OnlineMiniTools . All rights reserved.

Hosted on Hostinger

v1.8.7