Handitab

HTML Table to Markdown

Convert an HTML table into a Markdown table, keeping the header row and cell text and dropping tags, styles, and attributes.

About HTML Table to Markdown

This converter reads an HTML table and rewrites it in GitHub Flavored Markdown table syntax. It parses the markup with the HTML parser in your browser, takes the text of every th and td cell row by row, uses the first row as the header, and aligns the columns. If the input holds several tables, each one is converted. Merged cells made with colspan or rowspan are not expanded, because Markdown tables cannot express them.

How to use HTML Table to Markdown

  1. Type or paste into the "HTML containing a table" box, or press "Use example" to try it with sample data.
  2. The result appears below and updates as you type.
  3. Copy the result with the copy button, or download it as a file where that is offered.

Questions about HTML Table to Markdown

What happens to links and bold text inside cells?

Only the visible text of each cell is kept, so links, bold, and other inline formatting are removed. If you need them, convert the whole snippet with an HTML to Markdown converter instead.

Runs in your browser. Page last updated .

More developer tools

All 41 developer tools