Convert HTML to Markdown or Markdown to HTML. ATX headings, fenced code blocks, sanitised output. Free, runs in your browser.
First time here? Pick a direction Your input is processed locally and disappears when you close the tab.
Getting content out of a web page and into something readable is a routine task with an annoying amount of markup in the way. This free html to markdown converter strips it back to structure and text, and converts in the other direction too.\n\nThe honest framing is that the two directions are not equivalent. Markdown to HTML is lossless, because HTML can express everything markdown can. HTML to markdown is lossy by nature: markdown has no representation for a div, a class, an inline style, or most attributes, so they are simply dropped. What survives is the content and its structure — headings, lists, links, emphasis, code, tables — which is usually exactly what you wanted.\n\nOutput uses ATX headings, meaning ## Title rather than the underlined alternative that most converters emit by default, and code blocks are fenced. Both are what modern tooling expects.\n\nThe most common reason people reach for this now is pasting web content into an AI prompt without the markup, and it remains the standard way to move content between a CMS and a static site generator. HTML output is sanitised, so pasted content cannot carry scripts. Pair it with the Markdown Editor for writing, or the Text Cleaner if the source arrived with formatting debris attached.
Pick a direction
Paste your HTML or Markdown
Read the converted output
Copy or download it
HTML → Markdown is lossy, and unavoidably so. Markdown has no way to express a div, a class, an inline style, or most attributes, so they are dropped. Content and structure survive; presentation does not. Markdown → HTML is lossless, since HTML can represent everything markdown can.
Headings use ATX style (## Title) rather than the underlined form, and code blocks are fenced. Converting web content to markdown is now one of the most common ways of getting a page into an AI prompt without dragging the markup along.