HTML to Markdown Converter

Paste HTML source — a whole snippet or a fragment — and convert it to clean, readable Markdown. Nothing you paste leaves your browser — this tool runs entirely on your device.

Share as link: your text is compressed and stored inside the link itself, after the #. That part of a web address is never sent to our server — we never see it, log it, or store it. Anyone with the link can read the text, and the link can never be taken down or revoked, because no copy exists on a server. Don't share secrets this way. Some chat apps mangle long links.

What this tool does

Developers and content migrators meet the same job constantly: a chunk of HTML — from a CMS export, an old website, an email template or a page's source — needs to become Markdown for a static site generator, a README, a knowledge base or an AI prompt. Doing it by hand means hunting tags for an hour. This converter parses the HTML properly, with a real DOM parser in your browser rather than fragile find-and-replace, and emits Markdown that preserves the document's meaning: heading levels, bold and italic, links with their URLs, images with alt text, bullet lists, blockquotes and inline code. Scripts, styles and tracking markup are discarded, which also makes this a quick way to sanitise a snippet before reusing it.

How to use it

  1. Copy the HTML source you want to convert.
  2. Paste it into the box above.
  3. Click “Convert HTML to Markdown”.
  4. Review the output, then copy it into your project.

Example

Before:

<h2>Welcome</h2><p>Read the <a href="https://example.com/docs">docs</a> <strong>before</strong> you start.</p>

After:

## Welcome

Read the [docs](https://example.com/docs) **before** you start.

Good to know

You don't need a complete document — fragments convert fine, and a full page works too (navigation and boilerplate come along, so trim after). This tool deliberately does not fetch URLs: fetching a page for you would mean your request goes through a server. Paste the source yourself — in any browser, right-click a page and choose View Source, or copy a selection and use Rich Text to Markdown, which is usually faster.

Frequently asked questions

Can I convert a whole web page by giving a URL?

Not here, by design. A URL fetcher would run on a server and see what you're converting. Paste the page's source, or copy the visible text and use Rich Text to Markdown.

What happens to tables?

Basic tables pass through as text rows. For spreadsheet-grade tables, use the HTML Table Converter, which produces proper CSV or Markdown tables.

Are scripts and styles kept?

No. Script, style and head content is dropped — the output is the readable document only.

Related tools

Rich Text to Markdown

Start from copied formatted text instead of source code.

HTML Table Converter

Turn an HTML table into CSV or a Markdown table.

Markdown to Plain Text

Strip Markdown back down to plain text.

JSON Formatter

Format and validate JSON while you're cleaning up data.