HTML to Markdown Converter β Free Online
Paste HTML, get clean Markdown. Headings, lists, links, code blocks, tables β all converted. Uses turndown.js. Runs in your browser.
When you need HTML to Markdown
Two big reasons: migration and authoring. Migration happens when you're moving content from an HTML-based CMS (WordPress, Drupal, a legacy site) to a Markdown-based system (GitHub, Hugo, Jekyll, Notion, Obsidian). Authoring happens when you've copied formatted content from somewhere (a webpage, a Google Doc, an email) and want to paste it into a Markdown editor cleanly β without the cruft of <span style="β¦"> tags everywhere.
This converter uses turndown.js β the most widely-used HTML-to-Markdown library, used by Hugo, Ghost, and many other tools β to produce clean GitHub-flavored Markdown output.
What gets converted
- Headings β
<h1>through<h6>become#through######. - Paragraphs and line breaks.
- Bold and italic β
<strong>β**text**;<em>β*text*. - Links β
[text](url). - Images β
. - Code β inline
`code`and fenced```code blocks```. - Lists β both ordered and unordered, nested supported.
- Blockquotes β
> quoted. - Tables β GFM table syntax.
- Horizontal rules.
Common HTML-to-Markdown scenarios
- Moving WordPress posts to a static site generator like Hugo or Jekyll.
- Pasting web content into Obsidian / Notion for clean import.
- Converting MailChimp HTML newsletters back to Markdown for editing.
- Cleaning up Google Doc HTML exports for use as documentation.
- Building a corpus of plain-text content from scraped HTML pages.
- Migrating knowledge-base articles from Zendesk / Confluence to GitHub wikis.
Tips
- Inline styles and class attributes get dropped β Markdown doesn't carry CSS information. If you depend on inline styles, you'll need to recreate them in CSS afterwards.
- For complex tables, GFM table syntax doesn't support cell-merging. Tables with rowspan/colspan need manual fixing.
- Embedded videos and iframes are stripped β they have no Markdown equivalent. Add them back manually with appropriate syntax for your destination platform.
- For round-trip authoring (Markdown β HTML β edit β back to Markdown), expect minor formatting drift on each pass.
FAQs
Is anything uploaded?
No. Runs in your browser.
Does it support GitHub-flavored Markdown?
Yes β tables, fenced code blocks, task lists.
What about complex CSS layouts?
Styling doesn't translate. Only the content structure and text formatting carry across.