HTML to Markdown Converter
Paste HTML on the left, get clean Markdown on the right. Runs entirely in your browser — no upload, no account.
100% client-side · no upload
How to convert HTML to Markdown
- Paste your HTML source into the left panel.
- The Markdown output updates automatically in the right panel.
- Click Copy MD to copy the Markdown to your clipboard.
- Paste into your Markdown editor, README, or documentation file.
- Review the output — complex nested HTML may need minor manual cleanup.
Common use cases
- CMS migration: Export HTML from an old CMS, convert to Markdown for a static site generator.
- README authoring: Copy a styled web page section, convert to Markdown for a GitHub README.
- Documentation: Convert HTML documentation pages to Markdown for a docs-as-code workflow.
- Blog migration: Convert existing HTML posts to Markdown for a new Markdown-based blog.
Related tools: Markdown to HTML · Markdown Preview · Markdown Stripper
常见问题
- Is my HTML text sent to a server?
- No. Conversion happens entirely in your browser using the DOMParser API. Your text never leaves your device.
- Which HTML elements are converted?
- Headings (h1–h6), paragraphs, bold (strong/b), italic (em/i), strikethrough (del/s), inline code, code blocks (pre/code), links (a), images (img), unordered lists (ul/li), ordered lists (ol/li), blockquotes, and horizontal rules (hr).
- What happens to unsupported HTML elements?
- Elements without a Markdown equivalent (such as tables, spans with classes, or custom components) are passed through by extracting their text content. The structure may not be perfectly preserved.
- Can I convert a full HTML page?
- You can paste a full HTML page, but the converter will process the entire document body. For best results, paste just the content section (the article or main element) rather than the full page with navigation and footer.
- Why does some formatting look slightly different after conversion?
- HTML allows many ways to express the same visual result (e.g. nested spans, CSS-only bold). The converter maps semantic HTML elements to Markdown equivalents. Visual-only formatting that relies on CSS classes will not carry over.
- How do I convert Markdown to HTML?
- Use the Markdown to HTML tool — it performs the reverse conversion.
- Does this work on mobile?
- Yes. The tool works in Safari, Chrome, and Firefox on both iOS and Android.
- Does this work offline?
- Yes. Once the page has loaded, the converter works without a network connection.