Free · No sign-up · Runs in your browser

HTML Table to CSV Converter

Extract the first HTML table into quoted CSV, preserving cell text and rejecting merged cells that would distort columns.

STEP 1

Start with your input

Edit the example or replace it with your own text.

How to use HTML Table to CSV Converter

  1. Paste HTML containing a table, including a copied table fragment.
  2. Convert the first table; review messages for merged cells or uneven row widths.
  3. Copy or download the CSV and import it with comma as the delimiter.

Extract cell text with a real HTML parser

The converter reads th and td elements from the first table, decodes character references, and quotes commas, quotes and line breaks correctly. Scripts, styles and nested tables are excluded from cell text. HTML stays inside an inert template and is never inserted into the visible page.

Merged cells need an explicit policy

Rowspan and colspan can imply missing or duplicated cells in a flat CSV. This tool rejects spans other than one instead of guessing how to expand them. Every extracted row must have the same number of cells. It does not execute page scripts, apply external styles, or recover data loaded by JavaScript. Spreadsheet software can interpret cells beginning with formula characters; review untrusted data before opening it.

Example input

<table><tr><th>Name</th><th>City</th></tr><tr><td>Ada</td><td>London</td></tr></table>

Can I paste a URL to scrape a table?

No. Paste the table HTML. The tool does not fetch websites, bypass access controls, or execute page scripts.

Is input uploaded?

Processing takes place in your browser. This tool does not send your input or selected files to a conversion API.

Related tools and guides

Browse all developer tools