Free conversion tool / No signup

HTML to Markdown converter.

Convert an HTML fragment or local HTML file into editable Markdown. This free converter keeps headings, emphasis, links, lists, code blocks and simple tables, while removing scripts, styles and embedded content. No account required.

Source

Paste text or open a local file. Up to 100,000 characters; text files up to 400 KB.

0 / 100,000 characters. Editing source clears the previous output.

No account required. The converter does not send your source text or file to a conversion server. Normal site requests and analytics may still occur. Remote images, scripts and embedded content are not loaded in previews.

Converted output

By Faizan Khan | Updated December 4, 2026

Convert an HTML fragment or local HTML file into editable Markdown. This free converter keeps headings, emphasis, links, lists, code blocks and simple tables, while removing scripts, styles and embedded content. No account required.

How to use this converter

  1. Paste the HTML source, or open a local .html, .htm or .txt file. This is a source converter, not a website scraper: it does not fetch URLs or read a page behind a login.

  2. Select Convert. The browser sanitizes the HTML, then translates supported document elements to Markdown. The input is not inserted into the live page.

  3. Review the Markdown source before copying or downloading converted.md. Check nested lists, table headers and relative links in your destination renderer.

A worked conversion example

This original example shows the kind of structure to expect. Review your own document's output before publishing or sharing it.

HTML input

<h2>Reset access</h2>
<p>Ask an <strong>administrator</strong>.</p>
<ol><li>Open settings.</li><li>Choose Reset.</li></ol>
<p><a href="/help/access">Access guide</a></p>

Markdown output

## Reset access

Ask an **administrator**.

1. Open settings.
2. Choose Reset.

[Access guide](</help/access>)

What survives the conversion?

Semantic headings become hash-style headings. Bold and italic text become emphasis markers. Ordered lists retain their starting number, unordered lists become bullets, blockquotes gain quote markers, and preformatted blocks become fenced code. Code fences expand when the source code contains backticks, so an example containing a fence does not accidentally close its own block.

Simple HTML tables become GitHub Flavored Markdown pipe tables. The first row becomes the Markdown header, even if the source used data cells rather than header cells. Review that choice: a table with no real header may need a new descriptive first row. Cell line breaks are flattened. Merged and nested tables are rejected instead of producing a misleading grid.

A practical migration review

For a help-center migration, convert one complete article before processing the rest. Compare the article title, ordered steps, warnings, links and tables with the original. A navigation menu pasted with the article is still content; remove it from the source first. The converter does not infer which section of a full HTML page is the article body.

Relative links remain relative. A link to /help/access will point at the root of the site where you later publish it, not at the original website. Update those paths deliberately. Image elements are omitted so the converter does not fetch images or embed tracking URLs; move approved screenshots separately and write meaningful alt text in your editor.

Know what Markdown cannot represent

Layout, CSS, fonts, colors, scripts, forms, media players and interactive components are not portable Markdown structure. Their visual appearance will not survive. Underlines and arbitrary container styling are reduced to text. This tool is for recovering an editable document, not creating a pixel-identical copy of a web page.

Treat the generated Markdown as source that still needs a publishing review. Sanitization protects this tool's conversion and preview path; it is not a promise that every future MDX plugin, renderer or extension interprets the output identically. Keep your destination renderer's own security settings in place. Inputs are limited to 100,000 characters and text files to 400 KB.

Frequently asked questions

Can I convert a website URL to Markdown?

Not here. Paste HTML source or open a local HTML file. The converter intentionally makes no remote URL requests, does not crawl sites and cannot access authenticated pages.

Are HTML scripts or tracking images executed?

No. Scripts, event handlers, styles, images and embedded documents are removed from the supported conversion structure. HTML is processed in an inert container, not mounted as an interactive page.

Does it preserve HTML tables?

Simple rectangular tables become GFM pipe tables, with the first row used as a header. Merged or nested tables require manual simplification. Verify the result in a renderer that supports GFM tables.

Is my HTML uploaded?

The converter reads and transforms content in this browser and does not send it to a conversion server. Normal site traffic and analytics may still occur; this is not an offline or whole-site zero-network claim.

Related tools and reading

Technical references