Convert HTML source code into clean Markdown. Paste any HTML — from a full webpage to a single snippet — and get formatted Markdown with headings, links, images, lists, code blocks, blockquotes, and tables. All processing runs in your browser. Your HTML is never uploaded.
Right-click anywhere on the page and select "View Page Source" (Chrome, Firefox, Edge) or "View Source" (Safari). Press Ctrl+A (Cmd+A on Mac) to select all, then copy and paste into the input panel. For cleaner results, use your browser's Reader Mode first to remove navigation and ads.
"Preserve hyperlinks" converts <a> tags into [text](url) Markdown links. "Preserve images" converts <img> tags into . "Preserve code blocks" wraps <code> and <pre> content in backtick fences. Unchecking any option strips that element to plain text or removes it entirely.
No. All conversion runs locally in your browser using a built-in JavaScript parser. Your HTML source is never uploaded, transmitted, or stored anywhere. Close the tab and your data is gone.
Yes. Copy the full page source (View Page Source → Ctrl+A → Copy) and paste it in. The converter automatically skips <script>, <style>, <nav>, <header>, <footer>, and <aside> tags so the output focuses on the main content. For even cleaner results, use Reader Mode before copying.
Markdown is readable plain text widely supported by static site generators (Hugo, Jekyll), documentation platforms (GitHub, GitLab), AI tools, and note-taking apps. A typical HTML-to-Markdown conversion reduces file size by 30–50% while preserving key formatting. Use this tool when migrating blogs, preparing content for LLMs, or simplifying HTML documentation.
This free online tool converts HTML source code into clean Markdown. Paste any HTML — from a single snippet to an entire webpage — and get formatted Markdown with headings, links, images, lists, code blocks, blockquotes, and tables. Three toggle options let you control exactly what appears in the output, and real-time stats show the size reduction and processing time for every conversion.
All processing happens in your browser. No HTML is uploaded to any server, no API calls are made, and no data is stored. Close the tab and your input is gone.
The converter handles full webpage source by stripping <script>, <style>, <nav>, <header>, <footer>, and <aside> tags, so the Markdown output focuses on the main content rather than boilerplate. For complex pages with deeply nested tables or non-standard markup, format the HTML first with the HTML Formatter before converting.
<h1>–<h6> → #–######<a href="url">text</a> → [text](url)<img src="url" alt="text"> → <ol>) and unordered (<ul>), including nested lists<strong>/<b> → **bold**, <em>/<i> → *italic*, <del>/<s> → ~~strikethrough~~<code> for inline backticks, <pre><code> for fenced code blocks<blockquote> → > lines<hr> → ---Webpage source code often includes navigation bars, sidebars, advertisements, and JavaScript that are not part of the main article. For cleaner Markdown output, use your browser's Reader Mode before copying the source — this strips most non-content elements automatically. Alternatively, paste only the relevant HTML section (for example, the content inside <article> or <main>). If the conversion result looks unexpected, try formatting the HTML first with the HTML Formatter to clean up the structure.
Markdown is the standard format for static site generators (Hugo, Jekyll, Eleventy, Astro), documentation platforms (GitHub, GitLab, Notion, Obsidian), AI and LLM workflows, and modern content management systems. Converting HTML to Markdown reduces file size by 30–50% on average while keeping key formatting — headings, links, images, lists, code, and tables — intact and readable.
Common reasons to convert include migrating blog posts from WordPress or Blogger to a static site, preparing rich text content for AI tools like ChatGPT and Claude, archiving web articles in a lightweight format, and simplifying HTML documentation for Markdown-based wikis. Unlike HTML, Markdown files can be read and edited without any special tools — a plain text editor is all you need.
| Aspect | HTML | Markdown |
|---|---|---|
| Syntax | Opening and closing tags: <p>text</p> |
Plain-text markers: **bold**, # heading |
| File size | Larger due to tags and attributes | 30–50% smaller for equivalent content |
| Readability | Requires rendering to read comfortably | Readable as plain text in any editor |
| Use cases | Web pages, emails, rich UI components | Documentation, blogs, notes, AI input |
| Learning curve | Steeper — dozens of tags and attributes | Gentle — a handful of intuitive markers |
| Editing tools | WYSIWYG editors or IDEs | Any plain text editor |
<article>, <main>, or the specific <div> that contains your content. This avoids converting headers, footers, and sidebars.