HTML to Markdown Converter
Convert HTML to clean, readable Markdown with GFM tables, code blocks, and neste...Convert HTML to clean, readable Markdown with GFM tables, code blocks, and nested lists. Choose your bullet and code style, then copy or download the ...
Updated
HTML
Markdown output appears here as you type.
How HTML elements map to Markdown
<h1> to <h6># to ######<strong>, <b>**bold**<em>, <i>*italic*<del>, <s>~~strike~~<code>`code`<pre><code>```code```<a href>[text](url)<img><ul><li>- item<ol><li>1. item<blockquote>> quote<table>| a | b |Quick answer
To convert HTML to Markdown, paste your HTML into this tool and it instantly produces the equivalent Markdown, which you can view as raw text or a rendered preview and then copy or download as a .md file. It handles headings, bold and italic, links, images, code blocks, nested lists, blockquotes, and GitHub Flavored Markdown tables. Everything runs in your browser using the turndown engine, script and style tags are stripped for safety, and there is no signup.
Supported Conversions
Why Use HTML to Markdown Converter?
Clean, Readable Markdown
Semantic HTML becomes tidy Markdown with single-space bullets and proper fenced code blocks, not padded or messy output.
GFM Tables & Strikethrough
HTML tables convert to GitHub Flavored Markdown pipe tables, and del or s tags become ~~strikethrough~~.
Code Blocks With Language
A pre and code block keeps its language-js class as a fenced block, so syntax highlighting survives the conversion.
100% In Your Browser
Conversion runs on your device with the turndown engine. Your HTML is never uploaded to a server.
Scripts Stripped Safely
Script, style and iframe tags are removed with their contents, so no executable markup ends up in your Markdown.
Output You Control
Choose the bullet character, fenced or indented code blocks, and whether to keep or strip unknown wrapper tags.
Live Markdown + Preview
See the raw Markdown and a rendered preview of it side by side, both updating as you type.
Free & Unlimited
Convert as much HTML as you want with no signup, no limits, and no watermark.
Common Uses for HTML to Markdown
GitHub READMEs
Turn existing HTML documentation into Markdown for repository README files.
Static Site Content
Convert web pages into Markdown for Hugo, Jekyll, Astro, or Next.js content.
CMS Migration
Move rich HTML content into a Markdown-based CMS or knowledge base.
Blog & Notes
Paste HTML from an article and save clean Markdown for your notes or blog.
How It Works
Paste Your HTML
Paste HTML from a webpage, rich-text editor, or your source code into the input box. Full documents and fragments both work.
See the Markdown
The Markdown appears instantly on the right. Adjust bullet style, code fences, or unknown-tag handling to fit your target.
Copy or Download
Click Copy to send the Markdown to your clipboard, or download it as a .md file for GitHub, docs, or your static site.
Tips & Information
Use the Preview Tab
Switch to Preview to see how the resulting Markdown renders before you copy it.
Keep Code Languages
Give your code element a class like language-python so the fenced block keeps the language hint.
Complex Tables
Tables with merged cells (rowspan or colspan) may need a manual fix, since Markdown tables cannot merge cells.