HTML to Markdown
Convert HTML to clean Markdown. Preserves headings, links, lists, and code blocks.
ConvertGFMClient-sideUnlimited
0 / 500,000
How to use
- Paste your HTML. Any HTML document or fragment.
- Copy the Markdown. Readable Markdown ready for a .md file.
Common use cases
- Migrating CMS articles to Markdown
- Extracting blog posts from HTML
- Converting email newsletters to Markdown
Frequently asked questions
- What is this HTML to Markdown converter best for?
- Migrating articles out of a CMS into a Markdown-based system (Hugo, Jekyll, Astro, MDX docs sites), pulling clean prose out of an HTML email or scraped page, or generating a starting point for a README from an existing web page.
- Which HTML elements convert correctly?
- Standard semantic elements convert cleanly: headings (h1-h6), paragraphs, links, images, ordered and unordered lists, blockquotes, inline and fenced code blocks, tables, and emphasis (bold, italic). Unknown or visual-only elements (spans, divs without semantic meaning) collapse to their text content.
- Does the output use GitHub Flavored Markdown?
- Tables, fenced code blocks, and task lists use GFM extensions, since most modern Markdown renderers support GFM. Plain CommonMark consumers will see the tables as raw HTML.
- Will it strip inline styles and scripts?
- Yes. <style>, <script>, inline style="\u2026" attributes, and class/id attributes are dropped because Markdown has no equivalent. The result focuses on content; styling is left to the destination system.
- Does conversion happen in the browser?
- Yes. The Turndown library runs locally; HTML is never uploaded.
Related tools
How to use
- Paste your HTML. Any HTML document or fragment.
- Copy the Markdown. Readable Markdown ready for a .md file.
Common use cases
- Migrating CMS articles to Markdown
- Extracting blog posts from HTML
- Converting email newsletters to Markdown
Frequently asked questions
- What is this HTML to Markdown converter best for?
- Migrating articles out of a CMS into a Markdown-based system (Hugo, Jekyll, Astro, MDX docs sites), pulling clean prose out of an HTML email or scraped page, or generating a starting point for a README from an existing web page.
- Which HTML elements convert correctly?
- Standard semantic elements convert cleanly: headings (h1-h6), paragraphs, links, images, ordered and unordered lists, blockquotes, inline and fenced code blocks, tables, and emphasis (bold, italic). Unknown or visual-only elements (spans, divs without semantic meaning) collapse to their text content.
- Does the output use GitHub Flavored Markdown?
- Tables, fenced code blocks, and task lists use GFM extensions, since most modern Markdown renderers support GFM. Plain CommonMark consumers will see the tables as raw HTML.
- Will it strip inline styles and scripts?
- Yes. <style>, <script>, inline style="\u2026" attributes, and class/id attributes are dropped because Markdown has no equivalent. The result focuses on content; styling is left to the destination system.
- Does conversion happen in the browser?
- Yes. The Turndown library runs locally; HTML is never uploaded.