HTML to Markdown

Convert HTML into Markdown instantly, in your browser.

Suggested tools

Markdown to HTML

Convert Markdown into HTML instantly.

MDHTML
Open Tool

HTML Formatter

Indent and tidy HTML, or minify it.

HTML
Open Tool

HTML Escape / Unescape

Encode < > & " ' as HTML entities, or decode entities back to text.

HTML
Open Tool

HTML Minify

Remove comments and extra whitespace from HTML safely.

HTML
Open Tool

Word Counter

Count words, characters, sentences, lines and paragraphs.

TEXT
Open Tool

Text Compare

Compare two texts and see the differences highlighted line by line and word by word.

TEXT
Open Tool

About HTML to Markdown

HTML to Markdown converts web content into clean Markdown for README files, wikis, documentation sites, Notion, Obsidian or GitHub. Headings, paragraphs, bold and italic text, links, images, lists, blockquotes, horizontal rules and code blocks are converted to their Markdown equivalents.

Scripts and styles are dropped and HTML entities are decoded, so you get readable text rather than markup. Everything runs locally in your browser — the text you paste is never uploaded.

How to use HTML to Markdown

  1. Paste the HTML (for example, copied from a page's source).
  2. Press Convert.
  3. Copy the Markdown, or download it as a .md file.

Key features

  • Headings h1–h6 become # to ######
  • Links, images, lists and blockquotes converted
  • <pre><code> blocks become fenced code blocks
  • Scripts and styles removed automatically

Example

Input
<h2>Notes</h2><p>Use <strong>UTF-8</strong> for <a href="https://example.com/csv">CSV files</a>.</p><ul><li>One</li><li>Two</li></ul>
Output
## Notes
Use **UTF-8** for [CSV files](https://example.com/csv).

- One
- Two

When to use HTML to Markdown

  • Moving blog posts or help pages from a CMS into Markdown files.
  • Copying web content into Notion, Obsidian or a GitHub README.
  • Converting HTML emails or exported documents into editable Markdown.

Tips and common problems

  • Paste only the main content HTML; menus and footers would also be converted.
  • Check links afterwards — relative links such as /page need the full site address in a new location.
  • Tables are kept as text; recreate them as Markdown tables if needed.

Frequently asked questions

Table markup is not converted into Markdown tables; the cell text is kept. Complex tables are usually best kept as HTML inside Markdown.