HTML to Markdown Converter

How it works
Indent
Valid HTML

Input HTML

No problems found. This is valid HTML.

About HTML to Markdown

Moving content from a website, CMS or rich-text editor into a README, wiki or static site? Paste the HTML and get readable Markdown back.

Headings use # style, bullet lists use -, code blocks are fenced with ```, and links, images, bold and italic text are kept. Styling and layout-only tags are dropped, leaving just the content.

How to use it

  1. Paste your HTML into the Input panel, or Open an .html file.
  2. Check that the Output dropdown says Convert to Markdown.
  3. Switch to Preview to check the result renders as expected.
  4. Copy the Markdown or Download it as a .md file.

Frequently asked questions

Are HTML tables converted?

Basic Markdown has no table syntax, so tables are flattened into their text. Rebuild them as Markdown tables by hand if you need them.

What happens to CSS classes and inline styles?

They are dropped. Markdown has no way to express them, so only the content is kept.

Can I convert a whole web page?

Yes, but scripts, menus and footers come along too, so pasting just the article content gives cleaner Markdown.

Related tools