HTML to Markdown Converter

HTML to Markdown Converter

Free HTML to Markdown converter with live preview and URL fetch. GitHub Flavored Markdown, configurable headings, bullets. 100% browser, no signup.

Updated May 2026

HTML to MD MD to HTML
Options
Bullet Style

Live Conversion

Output updates as you type. Runs entirely in your browser.

Need the reverse? Markdown to HTML →

How to convert HTML to Markdown

Paste HTML, or fetch it straight from a URL

1. Paste HTML or a URL

Paste an HTML snippet, or drop a public URL and click "Fetch & Convert" to pull the page content automatically.

2. Adjust the options

Pick a heading style (ATX or Setext), a bullet marker, and toggle GitHub Flavored Markdown and HTML sanitizing.

3. Copy or download

"Copy MD" copies the Markdown to your clipboard, or download a ready-to-use `.md` file for your editor.

What this HTML to Markdown converter does

Powered by Turndown.js, 100% in the browser

Fetch from URL

Pulls a public page, strips navigation and ads, and converts only the main article content — no manual copy-paste from DevTools.

GitHub Flavored Markdown

Converts tables, strikethrough, task lists, and autolinks correctly when GFM is enabled.

Live preview

The Markdown output updates on every keystroke, with a rendered preview alongside the raw text — no separate convert button to click.

Configurable heading and list style

Choose ATX (#) or Setext underline headings, and pick *, -, or + as the bullet marker.

HTML sanitizing

Optionally strip scripts and unsafe markup before conversion, so pasted or fetched HTML can't inject anything into the output.

Conversion examples

What HTML tags look like once converted

HTML
Markdown
`<h1>Introduction</h1>`
`# Introduction`
`<strong>bold text</strong>`
`**bold text**`
`<ul><li>Apples</li></ul>`
`* Apples`
`<p style="color:red"><strong>Warning</strong></p>`
`**Warning**` — inline styling is dropped

When you'll reach for this converter

The most common scenarios people use it for

Migrating a blog to a static site generator

Export HTML from WordPress or a legacy CMS and get clean .md files ready for Hugo, Astro, or Jekyll.

Saving articles to Obsidian or a notes vault

Use the URL fetch to convert any article and paste the result straight into your Obsidian or Logseq vault.

Cleaning up WYSIWYG editor output

TipTap, Quill, and Froala all generate HTML — convert it before saving if your backend or CMS stores content as Markdown.

Turning HTML emails into documentation

Paste an email body and get clean Markdown for internal docs, changelogs, or a Confluence page.

Prepping clean content for LLM prompts or RAG pipelines

Markdown strips boilerplate and preserves heading structure, which means fewer tokens and better retrieval accuracy than feeding raw HTML to a model.

Something not converting right? Start here

Fetch fails on paywalled or login-gated pages

URL fetch only works on public pages — content behind authentication or a paywall can't be retrieved.

Tables not converting without GFM enabled

Without GitHub Flavored Markdown turned on, HTML tables won't be converted to pipe-table syntax — they'll fall back to plain text.

Expecting CSS styling to carry over

Markdown only supports structural formatting — bold, headings, lists, links. Colors, fonts, and inline styles are intentionally dropped.

Why use this HTML to Markdown converter

The URL fetch is the real differentiator: it pulls a public page, automatically strips navigation and ads, and converts only the main content — no more manually copying raw HTML out of DevTools.

It runs on Turndown.js entirely in your browser. No HTML you paste is ever sent to a server — the URL fetch uses a client-side CORS proxy just to retrieve the page, but locally pasted HTML never leaves your machine.

Frequently asked questions

It's a tool that turns HTML markup (<h1>, <strong>, <ul>) into equivalent Markdown syntax (#, **, -). It's useful for migrating content between platforms, cleaning up output from WYSIWYG editors, and saving web pages into Markdown-based note apps.

Resources

Related Tools