HTML to Markdown Converter Online
Convert HTML to Markdown instantly in your browser. Supports all common HTML elements.
What Is an HTML to Markdown Converter?
An HTML to Markdown converter transforms HTML markup into equivalent Markdown syntax. This is useful when migrating content from a CMS or website to a static site generator, copying web content into a Markdown-based editor or note-taking app, or simplifying HTML for use in README files and documentation. This online HTML to Markdown converter processes your HTML in real time and outputs clean Markdown. All conversion runs locally in your browser — no data is sent to a server.
How to Use HTML to Markdown Converter
- Paste your HTML into the Input area on the left.
- The Markdown output appears instantly on the right.
- Click Copy to copy the Markdown to your clipboard.
- Use Load Sample to see an example with common HTML elements.
Supported HTML Elements
- Headings —
<h1>through<h6>→#through###### - Bold —
<strong>,<b>→**text** - Italic —
<em>,<i>→*text* - Strikethrough —
<del>,<s>→~~text~~ - Inline code —
<code>→`code` - Code blocks —
<pre><code>→ fenced code blocks with language detection - Unordered lists —
<ul><li>→- item - Ordered lists —
<ol><li>→1. item - Blockquotes —
<blockquote>→> text - Horizontal rules —
<hr>→--- - Links —
<a href="...">→[text](url) - Images —
<img src="..." alt="...">→
FAQ
What HTML elements are converted to Markdown?
This converter handles headings (h1–h6), paragraphs, bold, italic, strikethrough, inline code, fenced code blocks, unordered and ordered lists, blockquotes, horizontal rules, links, and images. Script and style tags are removed.
Why would I convert HTML to Markdown?
Common use cases include migrating content from a CMS to a static site generator (like Hugo or Jekyll), copying web content into a Markdown-based note-taking app, or simplifying HTML for use in README files and documentation.
What happens to unsupported HTML tags?
Unsupported tags are stripped and their text content is preserved. For example, a <span> tag is removed but the text inside it remains in the output.
Is my HTML sent to a server?
No. All conversion happens entirely in your browser using JavaScript. No data is sent to any server.