Skip to content
KazamTools

HTML to Markdown Converter

Convert HTML to Markdown by pasting a web page, an email or rich text, or by choosing an .html file. You get clean Markdown with headings, links, lists, tables and code blocks, and can skip navigation menus and footers. Everything is converted in your browser.

Files are processed in your browser and never uploaded.How it works

DOCX, HTML, PDF or TXT · converted on your device

How to use the HTML to Markdown Converter

  1. 1Choose Paste from a page or Word and paste, or Upload a file for an .html file.
  2. 2Keep Main content only ticked to skip menus, headers and footers.
  3. 3Check the Markdown preview.
  4. 4Copy it or download it as a .md file.

HTML vs Markdown

HTML and Markdown compared
PropertyHTMLMarkdown
Full nameHyperText Markup LanguageMarkdown
File extensions.html, .htm.md, .markdown
Created byTim Berners-Lee at CERN; now maintained by WHATWGJohn Gruber, with Aaron Swartz
Introduced19912004
CompressionNone: plain text with tagsNone: plain text with light formatting marks (#, *, -)
Opens onEvery browserGitHub, Notion, Obsidian, Reddit, Discord, any text editor and AI chat apps
Best forWeb pagesNotes, documentation, READMEs and text for AI models

Why convert HTML to Markdown?

People convert HTML to Markdown to move content between systems: migrating a blog from WordPress to a static site generator, saving a help article into Obsidian or Notion, turning an HTML email into a README, or feeding a web page to an AI model without thousands of tokens of markup.

You can paste directly. When you copy part of a web page or a formatted document, the clipboard carries the HTML behind it, and the converter uses that rather than the plain text, so links, headings and lists survive. For a saved page, choose the .html file. With Main content only on, the converter looks for the page's main article and leaves out navigation, sidebars, cookie banners and footers.

Scripts, styles and tracking code are dropped. Images become [Image: alt text] markers when that option is on, which keeps the Markdown readable while showing where pictures were. For Word documents, see DOCX to Markdown.

Frequently asked questions

Can I paste a web page instead of uploading?

Yes. Copy the part of the page you want and paste it; the converter reads the formatting from the clipboard.

Are links kept?

Yes. Links become Markdown links with their original addresses.

What does Main content only do?

It keeps the main article and skips menus, sidebars, headers and footers.

Does it fetch pages from a URL?

No. It only converts HTML you paste or a file you choose, so nothing is fetched or uploaded.

About the formats: What is a Markdown file? · All file formats