HTML Table to CSV Converter

Live

HTML Table to CSV Converter pulls a table out of HTML you paste or open from a file and turns it into CSV.

Runs in your browser: what you enter is processed on your device and not uploaded to MyToolDock.

Paste the HTML of a page or just of the table. Nothing is loaded from the web.

What is HTML Table to CSV Converter?

HTML Table to CSV Converter pulls a table out of HTML you paste or open from a file and turns it into CSV. Merged cells repeat their text in every cell they cover. Nested tables are listed separately. Nothing is loaded from the web, so pasted images and styles are ignored.

How It Works

  1. Enter pasted HTML or an .html file that contains a table in the input fields on this page.
  2. Press the button to run HTML Table to CSV Converter.
  3. Read a CSV of the table you pick, with a preview in the result area, and copy or download it.

Common Uses

Good to Know

To copy a table from a website, right-click it, choose Inspect, then Copy outerHTML.

How it works

Paste the HTML of a page or of just a table, or choose an .html file. If there are several tables, pick the one you want and see a preview of the first rows. Press Download CSV, or Copy CSV to paste into a spreadsheet.

To get the HTML of a table on a website, right-click it, choose Inspect and use Copy outerHTML. Choose the delimiter, whether line breaks inside cells are kept, and whether to add a UTF-8 marker so Excel shows accents correctly.

Worked example

Random tables with quotes, commas, ampersands, accents and Japanese text were converted and matched pandas.read_html cell for cell. 40 tables with random rowspan and colspan merges matched a separate grid built with lxml. Scripts and event handlers inside pasted HTML were checked not to run.

Limits

Merged cells repeat their text in every cell they cover. A table inside another table is listed as its own table. Nothing is loaded from the web, so images and styles are ignored, and a page that builds its table with scripts needs the finished HTML copied from the browser. HTML up to 20 MB is supported.

Frequently Asked Questions

Why did it say no table was found?

The HTML you pasted has no table element. Some pages draw tables with scripts, so copy the table HTML from the browser Inspect view instead.

What happens to merged cells?

The text is repeated in every cell the merged cell covers, so every row has the same number of columns.

Is my HTML uploaded?

No. It is read in your browser.

What does HTML Table to CSV Converter do?

HTML Table to CSV Converter pulls a table out of HTML you paste or open from a file and turns it into CSV. Merged cells repeat their text in every cell they cover. Nested tables are listed separately. Nothing is loaded from the web, so pasted images and styles are ignored.

What do I need to enter in HTML Table to CSV Converter?

Pasted HTML or an .html file that contains a table.

Is my data private in HTML Table to CSV Converter?

The HTML is read on your device and not uploaded.

Is MyToolDock HTML Table to CSV Converter free to use?

Yes, MyToolDock HTML Table to CSV Converter is 100% free with no registration, subscriptions, or limits. All features are fully unlocked.

Where can I learn more about HTML Table to CSV Converter and related workflows?

MyToolDock publishes written guides on the topic: CSV to JSON: Simplifying Web Data Imports; How HTML Minification Speeds Up Page Load Times. Each guide links back to the tools it covers.

Related Tools

CSV to HTML Table Converter CSV and Markdown Table Converter CSV to Excel Converter CSV to JSON Hex to RGB Image to PDF Converter

Guides

More in Converter Tools · Browse all tools

Developer Scratchpad

Copied to clipboard!