HTML to Markdown Converter
Convert HTML to Markdown instantly, live as you type.
Converts live as you type. Runs entirely in your browser; nothing you type is sent anywhere.
Need the opposite? Markdown to HTML Converter
What is HTML to Markdown Converter?
Paste HTML and get clean Markdown instantly. Useful for turning a formatted webpage or email into Markdown for a README, a wiki, or any Markdown-based system. Conversion happens live as you type, entirely in your browser, so pasted HTML, including content copied from an internal or private page, never has to be sent to a server to be converted.
How to Use HTML to Markdown
- 1
Paste the HTML: Enter formatted HTML, such as a webpage section or an email export.
- 2
Read the Markdown Result Instantly: The equivalent Markdown appears automatically as you type.
- 3
Copy the Result: Use the copy button to copy the Markdown into a README or wiki.
How It Works
Each structural HTML tag maps to its Markdown syntax equivalent: `<h1>`–`<h6>` become `#` through `######`, `<strong>`/`<b>` become `**bold**`, `<em>`/`<i>` become `*italic*`, `<a href="...">` becomes `[text](url)`, `<ul>`/`<ol>` with `<li>` items become `-`/`1.` list lines, and `<code>`/`<pre>` become backtick or fenced code blocks. Attributes with no Markdown equivalent, like `class`, inline `style`, or `id`, are dropped, since Markdown has no way to express them.
Example
<h2>Getting Started</h2>
<p>Run <code>npm install</code>, then check the <a href="https://example.com/docs">docs</a>.</p>
<ul>
<li>Node 18+</li>
<li>pnpm</li>
</ul>Getting Started
---------------
Run `npm install`, then check the [docs](https://example.com/docs).
* Node 18+
* pnpmThe heading becomes `##`, the inline code and link keep their Markdown equivalents, and the list becomes `-` lines.
Common Use Cases
Turning a formatted webpage section or documentation page into Markdown for a project's README.
Converting a rich-text email or Google Doc export (as HTML) into Markdown for a wiki or Notion-style knowledge base.
Frequently Asked Questions
Common questions about HTML to Markdown Converter.