HTML to Markdown
Runs in browserConvert HTML to clean Markdown — paste HTML source and get properly formatted .md output with headings, links, lists, and code blocks.
Last updated 08 Apr 2026
Paste HTML and get clean Markdown instantly. Converts headings, paragraphs, links, images, lists, tables, code blocks, bold, and italic to their Markdown equivalents. Configure heading style (ATX or Setext) and link style (inline or reference). Runs in your browser — nothing is uploaded.
How to use
- 1
Paste your HTML
Paste HTML source code into the input area. It can be a full page, a fragment, or content copied from view-source.
- 2
Configure options
Choose heading style (ATX or Setext), link format (inline or reference), bullet character, and code block style.
- 3
Convert and copy
The Markdown output generates instantly. Copy it to your clipboard with one click.
Frequently asked questions
Is my HTML sent to a server?
Does it handle tables?
What heading style should I choose?
Does it preserve images?
Can it convert an entire webpage?
What about inline styles and classes?
Convert HTML to Markdown in seconds. Paste page source, component markup, or
email HTML and get clean, readable Markdown output that preserves headings, links,
images, lists, code blocks, bold, and italic formatting.
Powered by Turndown, the standard HTML-to-Markdown library used by Obsidian,
Notion export tools, and countless developer utilities. Configure heading style
(ATX # or Setext underline), link format (inline or reference), code block fencing,
and bullet character.
Who is this for: developers migrating documentation from HTML to Markdown,
writers converting blog posts to .md files, anyone building a static site from
existing HTML content, and students extracting clean text from web pages for notes.
Related tools
Markdown Preview
Write Markdown and see a live GitHub-flavoured HTML preview side by side — export clean HTML instantly.
HTML Formatter
Format and beautify messy HTML with configurable indent, wrapping, and attribute handling — paste or type, get clean output instantly.
JSON Formatter
Format, validate, and minify JSON instantly — with configurable indentation, error location, and tree view.
Diff Checker
Compare two texts, code files, or documents side by side — word-level diff highlighting, private and browser-based.
Text Cleaner
Clean up messy text — strip HTML, remove extra whitespace, trim blank lines, normalize line endings, and more.