# all·markdown

Convert HTML to Markdown

Turn HTML into clean Markdown without uploading it. Drop a file or paste the markup — the conversion runs in this tab.

Drop an .html file here

or

Or paste markup — or paste formatted content copied from a page

Converted in this tab. The file is never uploaded.

Pasting from a live page beats pasting source

Select text on a rendered page and copy it: the clipboard carries the formatted HTML behind the selection, which converts straight to Markdown with its headings and lists intact. Copying from view-source gives you escaped text, which converts to a code block instead.

Everything is sanitised first

HTML from the web is untrusted input. The markup is sanitised before conversion, so scripts, event handlers and inline styles are removed rather than carried into your document.

Common questions

How do I convert HTML to Markdown?
Drop an .html file onto the box above, or paste the markup into the left pane. The Markdown appears on the right, ready to copy or download.
Can I paste a whole web page?
Yes. Copy from the rendered page rather than viewing source and the clipboard carries formatted HTML, which converts directly. Copying from view-source gives you escaped text instead, which converts to a code block.
What happens to scripts and styles?
They are removed. The HTML is sanitised before conversion, so scripts, event handlers and inline styles are stripped rather than carried into the output.
Which elements are supported?
Headings, paragraphs, lists, tables, links, images, blockquotes, code blocks, and bold, italic and strikethrough. Layout markup such as divs and spans is unwrapped, since Markdown has nothing to map it onto.
Why did my page come out as one long paragraph?
Usually because the source used styled divs rather than semantic elements. Turndown reads structure, not appearance, so text that only looks like a heading has no heading to convert.