HTML to Markdown Converter
Convert HTML code into clean, readable Markdown in seconds. Whether you're moving content from an old website, copying from a rich text editor, or just prefer Markdown, this tool preserves headings, links, images, lists, bold, italic, and more. No signup, no uploads — it all happens right here in your browser.
Why use this HTML to Markdown converter?
Markdown is the preferred format for documentation, readme files, static blogs, and many collaborative platforms. If you have existing HTML content, converting it manually is a pain. This tool automates the process, preserving the structure you care about — headings, links, images, lists, and inline formatting. And because everything runs in your browser, your code stays 100% private.
- Heading conversion –
<h1>through<h6>become#to######(or underlined Setext style if you prefer). - Links & images –
<a>tags turn into[text](url)and<img>into. You can toggle these off if needed. - Lists – ordered and unordered lists are faithfully reproduced with numbers or bullets.
- Inline formatting – bold (
<b>,<strong>) becomes**bold**, italic becomes*italic*, and code becomes `` `code` ``. - Clean output – all remaining HTML tags are stripped, leaving only clean Markdown.
How to convert HTML to Markdown (step‑by‑step)
1. Paste your HTML
Copy the source code of a webpage, an email, or any HTML snippet and drop it into the left box.
2. Set conversion options
Decide whether to keep links and images as Markdown syntax, and choose between ATX (#) or Setext (underlined) headings.
3. Get your Markdown
The Markdown appears instantly on the right. Tweak the options to see the output update in real time.
4. Copy or download
Use the buttons to copy the Markdown to your clipboard or save it as a .md file. Then paste it into GitHub, Stack Overflow, or your blog.
Example: before and after
| Input HTML | Output Markdown |
|---|---|
WelcomeThis is bold and italic. Visit our site.
|
# Welcome This is **bold** and *italic*. Visit [our site](https://example.com). - Item 1 - Item 2 |
Common use cases
- Documentation migration: Convert old HTML manuals into Markdown for GitHub or GitLab.
- Blogging: Turn HTML content from a WordPress export into Markdown for a static site generator like Jekyll or Hugo.
- Email conversion: Save a rich HTML email as clean Markdown notes.
- Code snippets: Extract Markdown from webpages to embed in readme files.
- Collaboration: Prepare HTML content for platforms that prefer Markdown (Reddit, Discord, Stack Overflow).
Pro tips
- If your HTML contains inline styles or scripts, they will be stripped out — only the semantic structure remains.
- For tables, the converter will try to preserve them as Markdown tables if they're simple. Complex tables may be simplified.
- Use the "Preserve links" option unchecked if you want the link text only, without the URL.
- After conversion, you can further edit the Markdown with any Markdown editor — it's plain text, after all.
- Need the reverse? Check out our Markdown to HTML tool.