Skip to content
Toolbrik

HTML to Markdown Converter

Convert between HTML and Markdown in both directions. Paste an HTML snippet and get its Markdown, or write Markdown and get the rendered HTML and its source.

Conversion

Markdown output

How to use: HTML ↔ MD

  1. 1Pick the direction: HTML to Markdown or Markdown to HTML.
  2. 2Paste the content.
  3. 3Check the preview and copy the result.

What is it for?

  • Migrate content from a CMS into Markdown files.
  • Turn a README or docs into HTML.
  • Clean up HTML pasted from the browser.

From HTML to Markdown and back

What is preserved

Headings, paragraphs, lists, links, images, bold, italics, quotes, code and tables have a direct Markdown equivalent. Inline styles, classes and scripts are lost in conversion.

Flavors

Markdown has dialects (CommonMark, GitHub Flavored Markdown) that differ on tables, task lists and strikethrough. Check which one your platform supports.

Security

If you plan to display the generated HTML on a website, sanitize it: Markdown allows embedded HTML and could include scripts.

Related tools

Frequently asked questions

Does it keep classes and attributes?+

When converting to Markdown, non-standard attributes are dropped for simplicity, but tables, lists, links and images are preserved.

Was "HTML ↔ MD" useful?

Share it with whoever needs it. It's free and stores no data.