Free online HTML to Markdown converter
This free online HTML to Markdown converter turns any HTML into clean, readable Markdown instantly. Paste your HTML on the left, click Convert, and copy the Markdown output on the right.
No login, no ads, and your content never leaves your browser.
HTML Input
Markdown Output
How to convert HTML to Markdown
- Paste your HTML into the left input box, full pages or snippets.
- Click Convert and clean Markdown appears instantly on the right.
- Copy or download the Markdown output for docs, blogs, or repos.
Runs entirely in your browser. Nothing is sent to a server.
HTML to Markdown conversion reference
Use this HTML tag to Markdown cheat sheet for quick checks while you convert content.
| HTML tag | Markdown equivalent |
|---|---|
<h1>Heading</h1> | # Heading |
<h2>Heading</h2> | ## Heading |
<strong>text</strong> | **text** |
<em>text</em> | *text* |
<a href="url">text</a> | [text](url) |
<img src="url" alt="alt"> |  |
<code>text</code> | `text` |
<pre><code>...</code></pre> | ``` ... ``` |
<blockquote>text</blockquote> | > text |
<ul><li>item</li></ul> | - item |
<ol><li>item</li></ol> | 1. item |
<hr> | --- |
When to use an HTML to Markdown converter
- Migrating a CMS from platforms like WordPress or Webflow to a static site stack such as Hugo, Astro, or Jekyll.
- Writing docs in Git by converting legacy HTML documentation into Markdown for READMEs and repos.
- Cleaning scraped content by stripping raw tags and keeping readable Markdown structure.
- Email template editing where HTML sources are easier to maintain as Markdown in version control.
- LLM prompt preparation when you need to convert HTML-heavy pages into cleaner context for tools like ChatGPT or Claude.
- Notion and Obsidian import where Markdown is the preferred editable format.
Privacy note: conversion runs in your browser. Your HTML is never uploaded or stored.
Frequently asked questions
Is this HTML to Markdown converter free?
Yes, completely free. No account and no limits.
Does it handle full HTML pages or just snippets?
Both. Paste a full HTML document or a snippet and the tool outputs clean Markdown.
Are inline styles and CSS preserved?
No. Styles are stripped because Markdown does not support CSS. Structure such as headings, lists, and links is preserved.
Is there an HTML to Markdown CLI option?
Not in this web tool, but you can use the turndown npm package in a Node.js pipeline for HTML to Markdown CLI workflows.
Will HTML tables convert to Markdown?
Yes. Standard HTML tables convert to GitHub Flavored Markdown table syntax.
Related conversion tools
Check out our other services and tools: