Why convert HTML to Markdown?
Markdown is simpler to write and read than HTML. You might need to convert HTML to Markdown when:
- Migrating content from an HTML website to a Markdown-based platform (Ghost, Hugo, Jekyll)
- Converting a web page to a README file on GitHub
- Moving content from an old CMS to a new one
- Simplifying HTML email templates for editing
HTML to Markdown conversion table
| HTML | Markdown |
|---|---|
<h1>Title</h1> |
# Title |
<h2>Title</h2> |
## Title |
<strong>text</strong> |
**text** |
<em>text</em> |
*text* |
<a href="url">link</a> |
[link](url) |
<img src="x" alt="y"> |
 |
<ul><li>item</li></ul> |
- item |
<ol><li>item</li></ol> |
1. item |
<blockquote>text</blockquote> |
> text |
<code>code</code> |
`code` |
<hr> |
--- |
Markdown advantages over HTML
Readability: Markdown source is readable as plain text without rendering.
Portability: Works in GitHub READMEs, static site generators, Notion, Obsidian, and dozens of CMS platforms.
Speed: Writing ## Heading is faster than <h2>Heading</h2>.
What doesn't convert cleanly
HTML supports many features that have no Markdown equivalent:
<div>,<span>,<section>— structural elements with no Markdown equivalent (kept as raw HTML)<table>— converts to Markdown table format (supported in GitHub Flavored Markdown)- Inline styles (
style="color: red") — stripped entirely <script>and<style>tags — stripped- Complex nested structures — may require manual cleanup
When to keep raw HTML inside Markdown
Markdown parsers (including GitHub, Jekyll, Hugo) allow raw HTML inline. If you need something Markdown can't express — centered text, colored spans, custom classes — you can include the HTML directly:
Normal Markdown paragraph.
<p style="text-align: center;">Centered via HTML</p>
Back to Markdown.
Platforms that accept Markdown
- GitHub — READMEs, issues, pull requests, wikis
- Ghost CMS — native Markdown editor
- Hugo / Jekyll / Eleventy — static site generators
- Notion — supports Markdown shortcuts
- Obsidian — Markdown-native note taking
- Dev.to / Hashnode — developer blogging platforms
How to convert HTML to Markdown free
- Go to HTML to Markdown
- Paste your HTML in the left panel
- Markdown output appears instantly on the right
- Toggle preview to see rendered output
- Copy Markdown or download as
.mdfile