[Free tools](https://dehumanize.eu/tools/) / HTML table to Markdown

# HTML table to Markdown

Paste HTML that contains a table, or copy a table straight from a web page, and get a clean Markdown table. Merged cells are expanded and footnote markers are removed.

This page has an interactive tool that runs in the browser. Open it at https://dehumanize.eu/tools/html-table-to-markdown/

Is there personal data in what you are about to paste into an AI chat? [Scrub it first](https://dehumanize.eu/scrub/), also in your browser.

## How it works

### Paste the HTML

Paste the source of the table, or select the table on a web page, copy it and paste it here.

### Check the result

Open the preview to see how rowspan and colspan were expanded.

### Copy the Markdown

Copy the table or switch to CSV or JSON.

## Questions

### Can I paste a table copied from a website?

Yes. Select the table on the page, copy it and paste it here. Your browser puts the HTML of the table on the clipboard and the converter reads that.

### What happens with colspan and rowspan?

Merged cells are expanded so every row has the same number of columns, which is what a Markdown table needs. The value is repeated in each position.

### There are several tables in my HTML.

The largest table is converted. To convert another one, paste only that table.

### Is my data uploaded?

No. The conversion runs in JavaScript on this page, on your own computer. There is no account and nothing you paste is sent to a server. Once the page has loaded it keeps working without an internet connection.

## More free tools

- [Table converter](https://dehumanize.eu/tools/table-converter/): Any table in, Markdown, CSV, JSON or HTML out.
- [Excel to Markdown](https://dehumanize.eu/tools/excel-to-markdown/): Copy cells in Excel or Sheets, get a Markdown table.
- [CSV to Markdown](https://dehumanize.eu/tools/csv-to-markdown/): CSV with commas, semicolons or tabs to a Markdown table.
- [Markdown table to Excel](https://dehumanize.eu/tools/markdown-table-to-excel/): Turn a table from an AI answer into spreadsheet cells.
- [CSV to JSON](https://dehumanize.eu/tools/csv-to-json/): One JSON object per row, numbers as numbers.
- [HTML to Markdown](https://dehumanize.eu/tools/html-to-markdown/): HTML or a copied piece of a web page to clean Markdown.
- [Word and Google Docs to Markdown](https://dehumanize.eu/tools/word-to-markdown/): Paste formatted text, get Markdown with headings and lists.
- [Scrub online](https://dehumanize.eu/scrub/): hide emails, phone numbers, IBANs and API keys in text before you paste it into an AI chat.

### Copy tables without the mess

Tables for AI copies any web table as Markdown for AI chats, or as CSV, TSV, JSON and Excel. Merged cells, footnotes and hidden rows are handled for you. Free, no account.

[See Tables for AI](https://dehumanize.eu/tables-for-ai/)

---

Source: https://dehumanize.eu/tools/html-table-to-markdown/
Summary: Paste HTML that contains a table, or a table copied from a web page, and get a clean Markdown table. Merged cells are expanded. Runs in your browser.
Publisher: Dehumanize, support@dehumanize.eu
