HTML to Markdown Converter
Convert HTML to Markdown or Markdown to HTML, with live preview of the result.
Runs entirely in your browser.
HTML to Markdown Conversion Tool
Conversion Reference
| HTML | Markdown |
|---|---|
<h1> ... <h6> | # ... ###### |
<strong>, <b> | **bold** |
<em>, <i> | *italic* |
<code> | `code` |
<pre> | Fenced code block |
<a href> | [text](url) |
<img> |  |
<ul>, <ol>, <li> | - item / 1. item |
<blockquote> | > quote |
<hr> | --- |
<table> | Pipe table |
About HTML to Markdown Conversion
Markdown is a lightweight markup language that lets you write formatted documents in plain text. Converting HTML into Markdown is useful when migrating web pages, blog posts, or documentation into Markdown-based systems such as GitHub README files, static site generators, and wikis.
This tool parses your HTML in the browser and walks the document tree, translating headings, paragraphs, bold and italic text, links, images, nested lists, blockquotes, code blocks, horizontal rules, and tables into their Markdown equivalents. Script and style elements are stripped, and unknown tags are unwrapped so their text content is preserved. The reverse direction renders standard Markdown syntax back into HTML.
Everything runs locally in your browser with plain JavaScript — nothing is uploaded to a server. Learn more in our HTML Tutorial.