HTML To Markdown

Convert HTML into clean Markdown (tables included)

Turn HTML - including tables, strikethrough and task lists - into readable Markdown, with control over headings, bullets, code blocks and link style. Scripts and styles are dropped.
Try an example:

Output will appear here...

About HTML To Markdown

How it works

  1. The HTML is parsed by your browser into a document tree.
  2. The Turndown library walks the tree and writes each element as Markdown: <h2> → ##, <strong> → **, <a> → [text](url).
  3. With GFM on, <table> becomes a Markdown table, <del> becomes ~~strikethrough~~ and checkbox lists become task lists.
  4. <script>, <style> and <noscript> are removed completely.

What you need

  • HTML - a whole page or just a fragment.

Tips

  • Copy an article's HTML from your browser's developer tools to move it into a Markdown wiki or static site.
  • Reference-style links keep long URLs out of the text for easier reading.

Limitations

  • Layout, colours and other CSS styling cannot be expressed in Markdown and are lost.
  • Complex tables (merged cells) are simplified.

Runs in your browser. Everything happens in your browser - your code and data are never uploaded.

Frequently asked questions

Why is some formatting missing?+

Markdown only supports basic formatting (headings, emphasis, lists, links, images, code, tables). Colours, fonts, alignment and layout have no Markdown equivalent.