HTML to Markdown Converter

Convert HTML to clean Markdown with support for headings, lists, tables and code blocks — fully in your browser.

Conversion Settings
0 chars
Markdown Output
0 lines
27.287 viewsYour data is processed in your browser and never sent to a server.

Related tools

Word Counter
Count words, characters and sentences instantly in your browser. Free, no sign-up.
Change Case
Convert text to UPPERCASE, lowercase, Title Case, Sentence case, camelCase, PascalCase, snake_case and kebab-case — instantly in your browser, free, no sign-up.
Lorem Ipsum Generator
Generate placeholder Lorem Ipsum text by paragraphs, sentences or words. Free and instant.
Compare Text
Compare two blocks of text and see line-by-line differences instantly. Free and private.

Get to know this tool

The HTML to Markdown Converter transforms HTML markup into clean, readable Markdown — headings, emphasis, links, nested lists, blockquotes, fenced code blocks, and even tables — entirely in your browser. It's the exact reverse of this site's Markdown to HTML tool, and like every tool here, your content never leaves your device.

Why convert HTML to Markdown?

Markdown has become the writing format of the modern web: READMEs, wikis, documentation sites, static blogs, GitHub issues, and note apps like Obsidian all speak it natively. But a lot of existing content lives as HTML — old blog posts, CMS exports, emails, and web pages. Converting that HTML to Markdown makes it editable as plain text, versionable in git, and portable between platforms without dragging along div soup and inline styles.

Key Features

  • Full Element Coverage: Headings (h1–h6), bold/italic/strikethrough, links, images, nested and ordered lists, blockquotes, horizontal rules, inline code, fenced code blocks (with language detection from class="language-…"), and tables.
  • Safe Parsing: HTML is parsed with the browser's DOMParser, which never executes scripts — pasting untrusted HTML is safe.
  • Junk Removal: <script>, <style> and other non-content elements are dropped automatically; wrapper <div>s and <span>s disappear, leaving only content.
  • Configurable Output: Choose your bullet character and decide whether links and images are kept or reduced to plain text.
  • Live Conversion: Output updates as you type, with debouncing so large documents stay smooth.
  • 100% Client-Side Privacy: No network requests; your HTML is processed in memory only.

How to Use the HTML to Markdown Converter

  1. Paste your HTML into the left panel (a full page or just a fragment — both work).
  2. Adjust the settings: bullet style, keep/drop links, keep/drop images.
  3. The Markdown appears instantly in the right panel.
  4. Click Copy or Download .md to grab the result.

Why Choose This Tool?

Server-based converters are overkill for what is fundamentally a text transformation — and they see everything you paste. This tool runs the entire conversion locally using the browser's own HTML parser (the most accurate parser there is), handles nested structures correctly, and produces Markdown that renders identically on GitHub, in documentation generators, and in note apps.

Frequently Asked Questions (FAQ)

Is it safe to paste HTML from untrusted sources?

Yes. The tool parses HTML with DOMParser, which builds a document tree without ever running scripts or loading external resources. Nothing in the pasted markup can execute.

What happens to elements Markdown can't express?

Structural wrappers (div, span, section) are unwrapped and their text content kept. Styling attributes are dropped, since Markdown has no equivalent. Scripts and styles are removed entirely.

Does it support tables and code blocks?

Yes. <table> becomes a GitHub-flavored Markdown pipe table, and <pre><code> becomes a fenced code block — including the language tag when the original uses a language-* class.

Can I convert a whole web page?

Yes — paste the page source and the converter will extract the content. For best results, paste just the article/body portion so navigation menus and footers don't end up in your Markdown.