HTML → Markdown Converter
HTML → Markdown Converter takes HTML you paste and turns it into Markdown, entirely in your browser.
Converts pasted HTML to Markdown in your browser. Headings, bold/italic, links, images, lists (including nested), blockquotes, inline code, code blocks, horizontal rules and simple tables are supported. Script, style, iframe and similar nodes are removed; javascript:, data: and other unsafe link targets are dropped, keeping only the visible text. Nothing is uploaded, fetched, or stored. It does not convert Markdown back to HTML — for that, use the Markdown Editor.
How to use it
- Paste your HTML into the input box
- Click Convert to Markdown
- Review the Markdown output and the conversion stats
- Copy the Markdown, or clear and paste new HTML
It converts headings, bold and italic, strikethrough, links, images, ordered and unordered lists including nested ones, blockquotes, inline code, fenced code blocks, horizontal rules, line breaks, and simple tables. The HTML is parsed into the inert content of a <template> element and never inserted into the page, so no script runs and no referenced image, frame or media file is fetched while it is read. Script, style, iframe, object and similar nodes are removed, HTML comments are dropped, and unsafe link or image targets such as javascript: and data: URLs are stripped so only the visible text remains. Relative URLs and anchors are kept as written. This is a focused converter, not an exhaustive one: tables with merged cells are flattened and unusual markup may need a manual touch-up. It goes one way only — to turn Markdown back into HTML, use the Markdown Editor in this category. Input is limited to 1 MB and nothing is uploaded or stored.
FAQ
Headings, paragraphs, bold, italic and strikethrough, links, images, ordered and unordered lists including nested ones, blockquotes, inline code, fenced code blocks, horizontal rules, line breaks and simple tables. Anything unrecognised is unwrapped to its text content.
They are removed along with their contents, HTML comments are dropped, and the pasted HTML is never rendered. It is parsed inside an inert <template> fragment that is never added to the page, so no script can run and no referenced image, frame or media file is fetched.
No. A dangerous link target is discarded and only the visible link text is kept. data: image sources are also dropped to avoid huge output, and the image's alt text is kept as plain text instead.
No, it only converts HTML to Markdown. To render or preview Markdown as HTML, use the Markdown Editor in this category; this tool is the one-way HTML-to-Markdown direction.
It handles common HTML well, but it is a focused converter, not an exhaustive one. Tables with merged cells are flattened, and unusual or malformed markup may need a small manual edit afterwards.