Paste HTML to Markdown

Drop HTML from any source — CMS export, email template, browser DevTools, or a copied snippet. We strip scripts and styles, then convert to Markdown for docs or chatbot ingestion.

Paste raw HTML from a page, email export, or CMS. Scripts/styles are stripped before conversion.

About this paste html to markdown converter

Sometimes the page you need is behind a login, a paywall, or a Cloudflare bot challenge — so a server-side URL fetcher can't reach it. The fix is simple: open the page in your own browser, copy the rendered HTML from DevTools or the source, and paste it here. This free HTML-to-Markdown converter handles whatever HTML you throw at it — entire pages, single articles, email templates, or a copied snippet — and returns clean Markdown.

It's the right tool for support teams converting help-center articles into chatbot training data without crawling, marketers cleaning up CMS exports (WordPress, Webflow, Shopify), developers prepping email HTML for storage, and anyone who hit a 'site fetch failed' wall using a URL-based converter. Conversion runs entirely on our server with no copy ever stored after the response.

When to use this tool

  • The URL-based converter failed (paywalled, login-walled, or aggressive bot blocking).
  • You want to convert an email HTML template into Markdown for archive or AI training.
  • You're cleaning up a WordPress, Webflow, or Shopify export for migration to another platform.
  • You copied HTML from your browser DevTools and want a clean Markdown version.
  • You need to feed a long page into ChatGPT or Claude and HTML is eating your token budget.

How it works

  1. 1

    Paste your HTML

    Paste raw HTML — a full document or a snippet — into the box above. The tool accepts up to ~600 KB of HTML per request, more than enough for a typical article or email.

  2. 2

    We strip and convert

    Server-side, we strip <script>, <style>, and other noise, then run Turndown to convert tags into Markdown — headings, lists, links, code blocks, blockquotes, and tables all preserved.

  3. 3

    Copy the Markdown

    Output is ready to paste into ChatGPT, Claude, Notion, GitHub, or your chatbot training tool. Nothing is stored after the response — your HTML and the Markdown both live only in your browser.

Frequently asked questions

How do I convert HTML to Markdown online?

+

Paste the HTML into the box above and click convert. The tool returns Markdown with headings, lists, links, and code blocks preserved. It works for full HTML documents or snippets — no install or signup required.

Why convert HTML to Markdown for AI?

+

Markdown is much more token-efficient than HTML. A 5,000-word article in HTML often runs 30k+ tokens because of inline class attributes, ARIA labels, and tracking divs; the same article in Markdown is closer to 7-8k tokens. That difference lets you feed longer content into ChatGPT, Claude, or Gemini without truncation.

What's the difference between this and the webpage-to-Markdown tool?

+

The webpage tool fetches a URL server-side and converts the HTML it gets back. This tool skips the fetch — useful when the source is behind a login, paywall, or anti-bot wall. If you can see the page in your browser, you can copy the HTML and paste it here.

How do I copy HTML from a webpage?

+

Open the page in Chrome or Firefox, right-click anywhere on the article and choose 'Inspect.' In DevTools, right-click the <article> or <main> tag (or the <html> root for the full page) and choose Copy > Copy outerHTML. Paste the result into this tool.

Will tables, code blocks, and lists survive the conversion?

+

Yes. The converter uses Turndown with the GFM plugin enabled, which preserves tables, fenced code blocks, task lists, and strikethrough. Complex layouts (multi-column grids, absolutely-positioned elements) won't preserve their visual layout — that's by design, since Markdown is a flat semantic format.

Is there a size limit?

+

A single paste is capped at roughly 600 KB of HTML to keep the converter fast. That's enough for a long article or a full HTML email. For larger documents, split into sections and convert each separately, or use a build-time conversion script.

Skip the copy-paste — train a chatbot on your real content

BuiltABot crawls your site, converts every page to clean text, and powers a 24/7 AI assistant. Five-minute install, no code required.