HTML to Markdown Converter

Paste or load HTML, clean unsafe markup in your browser, then turn it into editable Markdown.

HTML input

Markdown result

Example HTML converted to Markdown.

Scripts, styles, event handlers, and unsafe links are removed before conversion. Complex CSS and meaningless wrapper elements are not retained.

How to Convert HTML to Markdown

Paste HTML or import an .html file, review the generated Markdown, then edit, copy, or download the result.

HTML to GitHub Flavored Markdown

The converter uses Turndown with GFM support to produce editable Markdown for tables, fenced code, lists, links, and familiar text formatting. Review the generated source before reusing it because HTML presentation rules and CSS do not map directly to Markdown.

Supported HTML: Headings, Lists, Tables and Code

Convert common headings, paragraphs, strong and emphasized text, links, ordered and unordered lists, tables, and preformatted code. The result targets maintainable Markdown rather than preserving every wrapper element or CSS-driven visual detail from the source HTML.

HTML to Markdown element mapping
HTMLMarkdown
<h1>#
<strong>**bold**
<em>*italic*
<a>[text](url)
<ul> / <ol>List
<pre> / <code>Fenced / inline code
<table>GFM table

Safe HTML Cleanup

Before conversion, the browser removes scripts, styles, iframes, objects, embeds, link and metadata elements, event-handler attributes, and unsafe link schemes. This cleanup reduces executable or irrelevant markup while keeping the meaningful document content available for conversion.

Common Uses: CMS, Documentation and Web Content

Turn copied CMS markup, exported web content, documentation fragments, or saved HTML files into Markdown you can edit and version. This page does not fetch a URL: paste HTML directly or load a local .html, .htm, or .xhtml file.

HTML to Markdown FAQ

Is HTML uploaded?

No. HTML cleanup and Markdown conversion happen in the current browser.

Can I upload an HTML file?

Yes. The tool accepts .html, .htm, and .xhtml files.

Are scripts and styles preserved?

No. Scripts, styles, and event handlers are removed for safer, cleaner output.

Can I edit the converted result?

Yes. Edit, copy, or download the Markdown result directly.

Does this output GitHub Flavored Markdown?

Yes. The conversion uses GFM support for structures such as tables and fenced code where the source HTML can be mapped reliably.

Can I convert a full HTML page or only a fragment?

Both. Paste a fragment or load a local HTML document. Scripts, metadata, styles, and unsafe markup are removed before conversion.

Related Markdown Tools