The HTML to Markdown Converter takes HTML — a page you copied from a CMS, the output of a rich-text editor, a chunk of a rendered article — and turns it back into clean Markdown. Headings become # lines, <strong> and <em> become bold and italics, anchors become [text](url) links, <img> becomes image syntax, ordered and unordered lists become numbered and bulleted lists, <blockquote> becomes > quotes, <pre><code> becomes fenced code blocks, and tables become GitHub Flavored Markdown pipe tables.
Markdown is the portable format that documentation sites, static blogs, README files, note apps and AI prompts all understand. HTML is what you usually end up with when you copy from the web or export from a WYSIWYG editor, and it carries a lot of markup you do not want in a plain-text document. Converting one to the other by hand is tedious and error-prone; a rule-based converter does it consistently.
Everything runs in your browser. The parser is hand-written and dependency-free — it does not use a remote API and it does not even rely on the browser's DOM, so it is tolerant of the unclosed tags and stray attributes that real-world HTML is full of. Your drafts, internal pages and pasted content never leave the page. Paste HTML, choose your bullet style, then copy the Markdown or download an .md file.
Type or paste HTML into the editor — copied from a web page, exported from a CMS, or produced by a rich-text field. The Markdown updates as you type; load the sample to see what is supported.
Pick the bullet character for unordered lists, keep GitHub Flavored Markdown on for tables and strikethrough, and decide whether to keep links and images or strip them down to plain text.
Read the output next to your source and check the stats — words, headings, links, images, code blocks and estimated reading time — to confirm the structure came across intact.
Copy the Markdown to your clipboard or download it as an .md file, ready to drop into a README, a docs site, a note app or a static blog.
Headings, paragraphs, ordered and unordered lists (including nested lists), blockquotes, horizontal rules, code blocks and description lists are all mapped to their Markdown equivalents
HTML tables become GitHub Flavored Markdown pipe tables with a header row and divider, and <del> / <s> become ~~strikethrough~~ — the extensions your README and docs already use
Anchors become [text](href "title"), images become , and <code> spans are wrapped in backticks with their contents left untouched so snippets survive the conversion
Unclosed tags, uppercase tag names, unquoted attributes, comments and <script> / <style> blocks are all handled gracefully — the converter never throws on real-world HTML
Convert Markdown to clean, semantic HTML with GitHub Flavored Markdown support — tables, task lists, fenced code, heading anchors, live preview and a full HTML document export.
Encode and decode HTML entities — named (&), decimal (&), and hex (&) forms, with XSS-safe special-character escaping
Minify HTML markup for faster page loads or beautify it for readable, indented source
0 comments
No comments yet. Be the first to share your thoughts!