HTML to Markdown Converter
Convert HTML markup to clean Markdown syntax. Supports all major elements: headings, lists, code, links, and tables. Runs in your browser.
Also searched as: html a md · limpiar html · html to md · convert html markdown · html to markdown
HTML and Markdown are both ways to structure text, but they serve different audiences. HTML is the language of web browsers — it was designed for rendering in a browser engine, not for reading by humans. Markdown, by contrast, is designed to be readable in its raw form, making it the preferred format for documentation, static site generators, GitHub repositories, and note-taking apps like Obsidian and Notion. When you migrate a website, extract content from a CMS, or want to repurpose blog posts in a new platform, you often need to convert existing HTML into clean Markdown. This tool automates that conversion instantly, with no server required.
Powered by Turndown.js, one of the most battle-tested HTML-to-Markdown libraries available, this converter handles everything from simple bold and italic text to nested lists, fenced code blocks, hyperlinks, images, and even basic HTML tables. Your content never leaves your browser — the entire process runs locally on your device.
Paste your HTML code into the left input panel.
The Markdown output is generated instantly in the right panel.
Click Copy to copy the Markdown to your clipboard.
What is an HTML to Markdown Converter?
An HTML to Markdown converter is a tool that reads valid HTML markup and produces equivalent Markdown syntax. HTML tags like h1, strong, a href, and ul are translated into their Markdown counterparts: #, **, [text](url), and -. This is especially valuable for developers and content editors who need to move content from legacy web pages, WYSIWYG editors, or HTML-based CMS platforms into Markdown-native systems like Hugo, Jekyll, Docusaurus, GitHub wikis, or Notion databases. The result is clean, portable, human-readable text.
How to Use This Converter
Paste your HTML into the left panel — it can be a full page snippet, a copied section from a browser's DevTools, or raw HTML from a CMS export. The Markdown output appears instantly in the right panel. Use the Copy button to grab the result and paste it directly into your Markdown editor, documentation system, or repository. If the output contains stray HTML tags, those elements are not part of Markdown's syntax and may need manual cleanup.
Why Convert HTML to Markdown?
Supported HTML Elements
This tool converts: headings (h1–h6 → # through ######), paragraphs (p), bold (strong/b → **), italic (em/i → *), inline code (code → backticks), code blocks (pre/code → fenced blocks), unordered lists (ul/li → -), ordered lists (ol/li → 1.), hyperlinks (a → [text](url)), images (img → ), blockquotes (blockquote → >), horizontal rules (hr → ---), and basic tables (table → pipe-delimited). HTML attributes not representable in Markdown — such as class, style, or id — are dropped.
Frequently asked questions
Does this tool support all HTML elements?
It covers the most common elements used in web content: headings h1 through h6, paragraphs, bold, italic, inline code, fenced code blocks using pre and code tags, unordered and ordered lists, hyperlinks, images, blockquotes, horizontal rules, and basic HTML tables. Elements that have no Markdown equivalent — such as div, span, or form — are stripped of their tags, and their text content is preserved where possible.
Is my HTML content sent to a server?
No. The conversion runs entirely in your browser using the Turndown.js library. Your HTML is never uploaded, transmitted, or stored anywhere. This makes the tool safe for converting private or sensitive content.
Can I use this to convert full web pages to Markdown?
Yes. Copy the HTML source of any section from your browser's DevTools and paste it into the input. For best results, remove navigation, header, footer, and sidebar HTML first, so your output contains only the content you need.
Is the output compatible with GitHub Flavored Markdown?
Yes. The converter produces standard Markdown that is fully compatible with GitHub Flavored Markdown (GFM), GitLab Markdown, and common Markdown renderers used in Notion, Obsidian, and most static site generators.
What happens to HTML attributes like class or style?
Markdown does not support arbitrary HTML attributes, so class, style, id, and data-* attributes are dropped during conversion. If you need to preserve specific styling or structure, you may keep certain HTML tags inline — most Markdown renderers accept raw HTML inside .md files.