BYTETOOLS

HTML Table to CSV Converter

Convert an HTML table to CSV online. Expands rowspan and colspan, picks between several tables on a page and quotes fields properly — all in your browser.

Drop an .html file here or click to browse

What is the HTML Table to CSV Converter?

The ByteTools HTML Table to CSV Converter turns table markup copied from a web page, an email or a report into clean, spreadsheet-ready CSV.

  • Finds every table in the markup and lets you pick one
  • Expands rowspan and colspan into a rectangular grid
  • Comma, semicolon, tab or pipe delimiter
  • RFC 4180 quoting for commas, quotes and newlines
  • Live preview of the first rows before you export
  • Runs entirely in your browser — nothing is uploaded

How to use the HTML Table to CSV Converter

  1. 1

    Paste your HTML into the input box, or drop an .html file to load it.

  2. 2

    Click Extract tables — every <table> in the markup is found and listed.

  3. 3

    Choose which table to convert and pick the delimiter you need.

  4. 4

    Optionally skip fully empty rows or blank out cells repeated by a merge.

  5. 5

    Check the preview, then copy the CSV or download it as a .csv file.

About the HTML Table to CSV Converter

The ByteTools HTML Table to CSV Converter turns table markup copied from a web page, an email or a report into clean, spreadsheet-ready CSV. Paste the HTML or drop an .html file, click Extract tables, and every table in the markup is listed so you can pick the one you actually want.

Merged cells are the part most converters get wrong. This one reads each row's rowspan and colspan attributes and expands them into a proper rectangular grid, so a cell spanning three rows appears in all three — or, if you prefer, only in the first, with the repeats blanked out.

Everything happens locally in your browser with the built-in DOMParser. The markup is never uploaded, which matters when the page you copied contains customer names, invoice lines or internal reporting. Output is written as RFC 4180 CSV, quoting any field that contains your delimiter, a quote or a line break.

Frequently asked questions

How do I convert an HTML table to CSV?

Copy the table markup from the page source (or the whole page), paste it into the input box and click Extract tables. Pick the table you want from the dropdown and download the CSV. The conversion runs in your browser, so nothing is sent anywhere.

What happens to merged cells with rowspan or colspan?

The converter expands them so the grid stays rectangular. A cell with rowspan="2" appears in both rows and a cell with colspan="3" fills three columns. If you would rather see the value only once, tick 'Blank repeated merged cells'.

Can it handle a page with several tables?

Yes. Every table found in the markup is listed in the dropdown with its row and column count, so you can convert the right one. Run the extraction once and switch between tables without re-pasting.

Why does my CSV have quotes around some fields?

Fields containing your delimiter, a double quote or a line break must be wrapped in quotes to stay a single field. That is the RFC 4180 rule that Excel, Google Sheets and virtually every CSV parser expects.

Do I need the full page HTML or just the table?

Either works. You can paste an entire saved page and the tool will find the tables inside it, or paste just the <table> element on its own. Anything outside a table element is ignored.

Related tools