HTML to Markdown Converter – GitHub Flavored
NEWHTML to Markdown converter for GitHub-flavored Markdown: headings, links, images, nested lists, code blocks, quotes and tables. Free, runs in your browser.
Runs 100% in your browser — your input is never uploaded or stored on our servers.
Quick Examples
Typical inputs and the results this tool produces.
Overview
This HTML to Markdown converter rewrites web content as GitHub-flavored Markdown, ready for a README, a wiki, a static-site generator or a docs repo. It handles headings, bold, italic and strikethrough, links and images with titles, ordered and nested lists, inline code, fenced code blocks with the language from class="language-js", blockquotes, horizontal rules and tables with column alignment.
Writers moving a blog from WordPress, developers copying documentation from a web page, and anyone pasting rich text into GitHub use it to avoid hand-editing. Tags it does not know keep their text, while scripts, styles and form controls are dropped. Characters such as * or [ in normal text are escaped so they do not turn into formatting.
The HTML is parsed by your browser’s DOMParser without running scripts or loading images, and nothing is uploaded.
Why use this tool?
- Clean GFM output, including tables
- Nested lists and fenced code blocks done right
- Choose heading, bullet and italic style
- Unknown tags keep their text
- Nothing is uploaded or executed
Features
Two heading styles
ATX (# Title) or Setext (underlined with === and ---) for levels 1 and 2.
Lists your way
Pick -, * or + bullets; ordered lists keep their start number and nested lists are indented correctly.
Code aware
Inline code uses enough backticks, and <pre> becomes a fenced block with the detected language.
GFM tables
HTML tables become pipe tables with left, center or right alignment from align or text-align.
Links and images
Keeps href, src, alt and title attributes; bare URLs become autolinks.
Safe escaping
Markdown characters in plain text are escaped and raw < is written as <.
How to Use
Paste HTML
Paste the HTML into the HTML input box, or press Sample.
Pick a style
Choose heading style, bullet character and italic marker.
Review the Markdown
The Markdown output updates as you type or change an option.
Copy or download
Press Copy or Download .md to save it.