HTML to Markdown Converter

Convert HTML code to clean Markdown format instantly. Supports headings, lists, tables, code blocks, links, images, and more.

HTML Input
Options
Markdown Output

Paste HTML to see the markdown output

Converts headings, lists, links, images, tables, code blocks, and more

HTML to Markdown Reference

ElementHTMLMarkdown
Heading 1<h1>Title</h1># Title
Heading 2<h2>Title</h2>## Title
Bold<strong>text</strong>**text**
Italic<em>text</em>*text*
Link<a href="url">text</a>[text](url)
Image<img src="url" alt="alt">![alt](url)
Unordered List<ul><li>item</li></ul>- item
Ordered List<ol><li>item</li></ol>1. item
Blockquote<blockquote>text</blockquote>> text
Code<code>code</code>`code`
Horizontal Rule<hr>---

Features

  • Full Element Support

    Converts headings, paragraphs, lists, tables, code blocks, blockquotes, links, images, and more.

  • Code Block Detection

    Automatically detects language hints in code blocks and includes them in the markdown output.

  • Table Conversion

    Transforms HTML tables into properly formatted markdown table syntax with headers.

  • Customizable Options

    Choose bullet style (-, *, +), control line break handling, and toggle code language hints.

  • Entity Decoding

    Automatically decodes HTML entities like &amp;, &lt;, &gt;, &nbsp; to their actual characters.

  • Clean Output

    Removes scripts, styles, comments, and cleans up excessive whitespace for readable markdown.

Common Use Cases

Blog Migration

Convert HTML blog posts to markdown when migrating to static site generators like Next.js, Gatsby, or Hugo.

Documentation

Transform HTML documentation into markdown for GitHub READMEs, wikis, or documentation sites.

Content Repurposing

Convert web content to markdown for use in note-taking apps like Obsidian, Notion, or Roam.

CMS Migration

Export content from HTML-based CMS systems to markdown-based platforms.

Frequently Asked Questions

Automate Your Business with AI

Love our free tools? Discover our AI-powered products that help businesses automate customer communication.