HTML to Markdown Converter

Paste HTML and get clean, readable Markdown output instantly.

Ad
Try a sample
HTML Input
Markdown Output
Markdown output will appear here…
Ad

When do you need HTML to Markdown conversion?

HTML to Markdown conversion is useful whenever you need to take content from a webpage, CMS, or email and use it in a Markdown-based context β€” such as a GitHub README, a documentation wiki, a static site generator like Jekyll or Hugo, or a note-taking app like Obsidian or Notion. Copying HTML directly would leave you with messy tags; this tool strips them out and produces clean, portable Markdown.

This converter uses Turndown.js, a robust open-source HTML-to-Markdown library. It correctly handles headings, paragraphs, bold and italic text, links, images, ordered and unordered lists, nested lists, inline code, fenced code blocks with language hints, blockquotes, horizontal rules, and tables. The options let you control heading style (ATX # vs setext ===), list markers, code fence style, and whether to strip images or links from the output.


How to use

  1. Paste HTML into the left panel β€” from a webpage source, a CMS export, or an email.
  2. The Markdown output appears instantly in the right panel.
  3. Adjust the options to control heading style, list markers, and whether to keep images and links.
  4. Click Copy to copy the Markdown to your clipboard, or ↓ Download .md to save it as a file.
  5. Click Open in Editor β†’ to send the result to the Markdown Editor for further editing or PDF export.

Frequently Asked Questions

Right-click on any element on a page and select "Inspect" or "View Page Source". For just the main content (rather than the entire page), right-click the article body and "Inspect", then right-click the element in DevTools and choose "Copy β†’ Copy outerHTML". Paste that into the input here. You'll generally get cleaner Markdown by copying just the content element rather than the entire <html> document.

Markdown is a simpler format than HTML β€” it doesn't support colours, custom fonts, text size, or complex layouts. Any CSS styling (colours, background colours, font sizes, floats, flexbox) will be lost in conversion because Markdown has no equivalent. Only semantic HTML elements β€” headings, paragraphs, lists, code, links, images, tables, blockquotes, bold, italic β€” map to Markdown syntax.

No. The conversion runs entirely in your browser using Turndown.js. Your HTML is never sent to any server, never logged, and never stored. Closing the tab removes all content immediately.

Ad