Skip to content
Guides

How to convert an HTML table to Markdown

Pull a table off a web page and into a clean Markdown table — keeping the rows and columns while dropping the markup, styling, and nested tags.

June 15, 20262 min read
TABLESHTML → TableGUIDEHTML TABLE<table>…</table>MD TABLE| A | B |

Web pages are full of useful tables — pricing, specs, comparisons — wrapped in <table> markup you can't paste into a document. HTML Table to Markdown Table extracts just the data into a clean Markdown table.

What it does

The tool reads the <table> structure and rebuilds it as Markdown:

  • <th> cells become the header row.
  • <tr> / <td> become data rows.
  • Cell contents (text and inline links) are kept; styling, classes, and nested wrapper tags are dropped.

You get the rows and columns, not the website's design.

Getting the HTML

Two easy paths:

  1. Copy the rendered table from the page and paste — many browsers include the underlying table markup on the clipboard.
  2. Copy the table's source — right-click near the table, choose Inspect, and copy the <table> element's outer HTML.

Either way, paste the markup and get Markdown back.

Where it helps

  • Research — capturing a comparison or spec table into your notes.
  • Documentation — reusing a reference table from a vendor's page.
  • Migrations — pulling tabular content out of an old HTML site into Markdown.

Related tools

For a whole page rather than one table, HTML to Markdown converts everything at once. To go from Markdown back to an HTML table, Markdown Table to HTML closes the loop.

Privacy

Parsing is local; the markup you paste never leaves your browser — fine for tables behind a login.

A note on reuse: capture tables for your own research and reference, and respect each site's terms and any copyright on the data.

Grab the table, drop the markup, keep the data.

Tags#html#table#markdown#how-to

More from Guides

See all →