P
Privatool
Tutorial2 min read

HTML to Markdown Converter — Convert HTML Content to Markdown

Learn how to convert HTML to Markdown for use in blog posts, README files, and CMS platforms. Free online converter with live preview.

By Privatool Team·

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"> ![y](x)
<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

  1. Go to HTML to Markdown
  2. Paste your HTML in the left panel
  3. Markdown output appears instantly on the right
  4. Toggle preview to see rendered output
  5. Copy Markdown or download as .md file
#html to markdown#convert html#markdown guide#html markdown#content conversion

Try our free tools

All tools run in your browser. Files never leave your device.

Explore free tools →