HTML

How to Convert HTML Tables to Markdown

2026-06-10

Extract tables from any HTML page and convert them to clean Markdown — paste HTML code or fetch directly from a URL.


HTML tables are everywhere — documentation sites, Wikipedia, web scraping results, email templates. Converting them to Markdown makes them portable and version-control friendly without losing structure.

Two Ways to Input HTML

You can paste raw HTML code containing <table> elements directly into the converter. Or use the URL input to fetch a page and extract all tables automatically — the tool handles CORS-friendly pages and returns all detected tables as separate Markdown blocks.

Both methods work entirely in the browser, so no data is sent to a server.

What Gets Converted

The converter handles <thead>, <tbody>, <th>, and <td> elements. It strips all attributes and inline styles and outputs clean pipe-syntax Markdown.

Nested tables are flattened. Colspan and rowspan attributes are not supported in Markdown tables by design — cells with those attributes are output as regular cells.

Clean Up with the Markdown Editor

After conversion, click the Edit button to open the inline Markdown editor. You can rename column headers, fix cell content, apply bold or headings to rows, and undo changes with Ctrl+Z.

This is useful when the source HTML has abbreviated headers or inconsistent capitalisation that you want to normalise before pasting into your documentation.


Try it free — no sign-up required

All conversions happen in your browser. Your files never leave your device.

Open Free Tool →