# HTML Table to CSV

> Extract tables from HTML or a web page into CSV. Runs entirely in your browser — nothing is uploaded.

Source: https://toffeekit.com/tools/html-table-to-csv

**Category:** [Data](https://toffeekit.com/category/data) · **Price:** Free · **Runs:** in your browser, nothing is uploaded

Open the tool: https://toffeekit.com/tools/html-table-to-csv

**Also useful for:** html table to csv, extract table, web table, scrape table, table to excel, colspan

## How it works

1. Paste HTML that contains a <table>, or copy a table straight from a web page and paste it.
2. If several tables are found, pick one from Table or choose All tables.
3. Set the Delimiter and decide whether to Repeat merged cells.
4. Check the Preview, then Copy the CSV or Save it.

## FAQ

### How do I convert an HTML table to CSV?

Paste the page's HTML source, or just the <table> part, and every table found is listed. The selected one appears as CSV on the right.

### Can I copy a table straight from a website?

Yes. Select the table in your browser, copy it and paste it here. Browsers paste tables as tab-separated text, which is turned into CSV automatically.

### How are merged cells (colspan and rowspan) handled?

Merged cells are spread over every column and row they cover, so the grid stays rectangular. With Repeat merged cells on the value is copied into each cell; with it off only the first cell keeps it.

### Does it keep links, images or formatting?

No. CSV holds plain text, so only the visible text of each cell is kept. Line breaks inside a cell are kept as line breaks.

### Is it safe to paste HTML from any site?

Yes. The HTML is read as inert data: scripts don't run and images and other resources don't load.

### Is HTML Table to CSV free and private?

Yes. It's free with no sign-up or limits, and it runs entirely in your browser, so your files are processed on your device and never uploaded. It works on phones and computers alike.

## Privacy

HTML Table to CSV runs entirely in your browser. Your files and text are processed on your device and are never uploaded.

## Related tools

- [CSV to JSON](https://toffeekit.com/tools/csv-to-json) — Turn CSV rows into JSON objects.
- [JSON to CSV](https://toffeekit.com/tools/json-to-csv) — Flatten JSON into a CSV you can open in Excel.
- [XML ⇄ JSON](https://toffeekit.com/tools/xml-json-converter) — Convert XML to JSON and back.
- [CSV Cleaner](https://toffeekit.com/tools/csv-cleaner) — Trim cells, drop empty rows, remove duplicates.
- [Delimiter Converter](https://toffeekit.com/tools/csv-delimiter-converter) — Switch between comma, semicolon, tab and pipe.
- [CSV Viewer](https://toffeekit.com/tools/csv-viewer) — Open a CSV as a sortable, searchable table.

