HTML to Markdown — paste rich content, get clean .md with links, code, tables, lists preserved.
- Runs locally
- Category Format Converter
- Best for Turning pasted content or local files into a handoff-friendly format.
What this tool does
Free online HTML to Markdown converter. Paste any HTML — a blog post, a copied web page, a chunk of rich text from a CMS — and get back clean, portable Markdown. We walk the parsed DOM and emit Markdown for headings (h1–h6), paragraphs, bold/italic, links, images, ordered & unordered lists (with nesting), blockquotes, inline code, fenced code blocks, horizontal rules, line breaks, and pipe tables. Inline styles and framework cruft are stripped — you get the structure, nothing else. 100% browser-side, no upload, no tracking. Pairs with our Markdown to HTML converter for round-trips.
Tool details
- Input
- Text + Numbers + Structured content
- The page exposes text boxes, numeric controls, file pickers, or structured inputs depending on the tool.
- Output
- Live result + Copy + Download
- The result area focuses on usable output, with copy, download, or preview actions when supported.
- Privacy
- Browser-side processing
- The main tool logic does not call an external API, so inputs normally stay in the current tab.
- Save / share
- No account required
- Open the page and use it; whether results survive refresh depends on the tool.
- Performance budget
- Initial JS <= 20 KB
- No WASM budget is declared, keeping the tool quick to open on mobile.
- Best fit
- Format Converter · Developer
- Category and role tags drive related tools, internal links, and quick fit checks.
How to use
-
1. Input
Paste or drop your content into the tool panel.
-
2. Process
Click the button. All processing is local in your browser.
-
3. Copy / Download
Copy the result or download to disk in one click.
How HTML to Markdown fits into your work
Use it when the main problem is getting content from one practical format into another.
Conversion jobs
- Turning pasted content or local files into a handoff-friendly format.
- Previewing a conversion before you use it in a larger workflow.
- Cleaning small format mismatches without opening a full editor.
Conversion checks
- Try a small sample first when the source format is messy.
- Check character encoding, separators, and line endings after conversion.
- Keep the source until the converted output has been reviewed.
Good next steps
These links move the current task into a more complete workflow.
- 1 HTML to JSX Paste HTML, get React-ready JSX — class becomes className, inline styles become objects, tags self-close. Browser-only. Open
- 2 Markdown to HTML Convert Markdown to clean HTML — headings, lists, code, links, images, tables — instant live preview, browser-only Open
- 3 Markdown Table Generator Build Markdown tables visually — add/remove rows, column alignment, paste from Excel / CSV — browser-only Open
Real-world use cases
Move a CMS blog post into a Git-based docs repo
Your team migrates 40 articles from WordPress to a Docusaurus site. Copy each post's rendered HTML, paste it here, and get Markdown with headings, links, and code fences intact. The inline-style soup WordPress emits gets dropped, so the .md drops straight into version control with no hand-cleanup.
Turn a scraped web page into a clean note
You grab an article via "View Source" or a scraper and end up with 200 lines of nav divs and tracking spans around the real content. Paste the body HTML and the converter keeps the paragraphs, blockquotes, and the pipe table of specs, giving you a 30-line note you can drop into Obsidian or Notion.
Feed clean Markdown to an LLM prompt
You want to summarize a 3000-word HTML page with an LLM, but raw HTML burns tokens on tags. Convert it first and the same content shrinks 40 to 60 percent because every `<p class="...">` becomes a blank line. The model also reads headings and lists more reliably than nested div structure.
Standardize email or rich-text snippets for a changelog
A teammate sends release notes as a rich-text email with bold items and a bulleted list. Paste the copied HTML and you get `**bold**` and `- item` lines you can commit to CHANGELOG.md, so every entry matches the repo's Markdown style instead of carrying font tags and `mso-` styles into the file.
Common pitfalls
Pasting a full page's HTML including `<head>`, `<nav>`, and `<footer>`. Copy only the article body, or you get the menu and cookie banner as headings too.
Expecting Word or Google Docs paste to convert perfectly. Their HTML hides structure in `mso-list` styles that have no Markdown equivalent. Save as `.html` and clean it first.
Assuming inline `style="color:red"` or `text-align` survives. Markdown has no styling, so it is dropped. If visual style matters more than portability, stay in HTML.
Privacy
Conversion runs entirely in your browser using the native DOMParser. The HTML you paste never leaves the page, is never uploaded to a server, and is not written to the URL. Closing or refreshing the tab discards it. You can safely paste internal or unpublished content.
FAQ
Tool combos
Folks in your role tend to reach for these alongside this tool.
- 555 Timer Calculator Astable f = 1.44/((R1+2R2)C) + monostable t = 1.1RC — pick R1, R2, C in Ω/kΩ and µF/nF, read frequency, duty cycle and pulse width — browser-only
- Add Line Numbers Number every line of pasted text — set start, step and separator, zero-pad to align, skip blanks, or strip numbers back off — browser-only
- AES Text Encryptor Encrypt & decrypt text with a password — AES-256-GCM + PBKDF2 via WebCrypto — 100% in your browser, nothing uploaded
- Affine Cipher Encoder & Decoder Encrypt and decrypt the ax+b affine cipher with live modular-inverse check, browser-only