HTML to Markdown
Convert HTML to clean Markdown text.
How to Use the HTML to Markdown Converter
Paste your HTML code into the input box. The tool instantly converts it to clean Markdown text that you can copy with one click.
Supported HTML Elements
- Headings — h1 through h6 become # through ######
- Bold & Italic — strong/b become **bold**, em/i become *italic*
- Links — anchor tags become [text](url)
- Images — img tags become 
- Lists — ul/ol with li items become bullet or numbered lists
- Code — inline code and pre/code fenced blocks
- Blockquotes — blockquote becomes > prefixed lines
- Horizontal rules — hr becomes ---
- Paragraphs & line breaks — p and br tags
Frequently Asked Questions
What HTML elements are supported?
The converter handles headings (h1-h6), paragraphs, bold, italic, links, images, ordered and unordered lists, code blocks, inline code, blockquotes, horizontal rules and line breaks.
Is my HTML stored or uploaded anywhere?
No. All conversion happens locally in your browser using JavaScript. Your HTML never leaves your device.
Can I convert a full HTML page?
Yes. The tool strips script and style tags automatically, then converts the remaining content elements to Markdown.
Does it handle nested HTML tags?
The converter handles common nesting patterns like bold text inside links, code inside pre blocks, and inline formatting inside headings.
What Markdown flavor does it output?
The output follows standard CommonMark syntax — ATX headings, fenced code blocks with triple backticks, and standard link/image syntax.
More Text Tools
Word Counter
Count words, characters, sentences, paragraphs and estimate reading time.
Open tool →Case Converter
Convert text between UPPER, lower, Title, Sentence, camelCase, snake_case and more.
Open tool →Lorem Ipsum Generator
Generate placeholder text in paragraphs, sentences or words.
Open tool →Text to Slug
Generate URL-friendly slugs from any text.
Open tool →Text Reverser
Reverse text by characters, words or lines.
Open tool →Character Counter
Count characters with platform-specific limits for Twitter, Instagram and more.
Open tool →