Free Tools/HTML to Markdown Converter
Free Tool · No signup

HTML to Markdown Converter

A free URL to Markdown and HTML to Markdown converter. Turn any public web page, or HTML you paste in, into clean Markdown with the navigation and clutter stripped. Headings, lists, links and tables are kept, and you see the size in tokens so it fits your AI prompt.

Why use our HTML to Markdown Converter

From a URL or pasted HTML

Enter a public address and the page is fetched and converted, or paste HTML you already have. Both give the same clean Markdown.

Just the content, not the clutter

Menus, footers, sidebars, forms and cookie banners are removed by default, so you get the article or page body. Switch it off to keep the whole page.

Sized for AI prompts

Markdown is far smaller than raw HTML. In one test, a real product page dropped from about 120,000 characters of HTML to about 2,000 of Markdown. The tool shows words and estimated tokens.

Free, and nothing is stored

No account and no limits on page count. The pages you convert are not saved on our side.

Public pages only. The page is read as the server sends it, without running JavaScript.

When converting to Markdown helps

Giving a page to an AI assistant: ChatGPT, Claude and similar tools read Markdown more easily than raw HTML, and the smaller size leaves more room in the prompt for your actual question.
Moving content between systems: Markdown is the common format for documentation sites, static site generators, note apps and many CMS imports, so converting a page once saves retyping it.
Auditing what a page really says: With the menus, scripts and styling removed, you see the headings and copy a reader or crawler gets. It is a quick way to check structure and spot thin pages.
Keeping a readable copy: Download a page as a .md file to keep a lightweight, searchable copy for research, a content inventory or a migration.

HTML vs Markdown: the same content

A small heading and paragraph, as the page serves it and as Markdown.

Before · HTML
<div class="hero-wrap">
  <h2 class="title t-lg">Simple pricing</h2>
  <p class="sub">Start <a href="/sign-up">free</a>.</p>
</div>

Tags, classes and attributes that mean nothing to a reader, and cost space in an AI prompt.

After · Markdown
## Simple pricing

Start [free](/sign-up).

The same heading, text and link, with only the structure that matters.

Frequently Asked Questions

How do I convert a web page to Markdown?
Enter the page's address on the From URL tab and press Convert to Markdown. The tool fetches the public page, removes the menus and footer, and returns Markdown you can copy or download as a .md file. If you already have the HTML, use the Paste HTML tab instead.
How do I convert HTML to Markdown for ChatGPT or Claude?
Convert the page here, then paste the Markdown into your prompt. Markdown keeps headings, lists, links and tables but drops the tags, scripts and class names, so it takes up far less of the context window. The token figure is an estimate of about four characters per token for English text, so treat it as a guide, since each model counts a little differently.
Why convert HTML to Markdown for AI?
Raw HTML is mostly markup the model has to read past: tags, attributes, scripts and styling. Markdown keeps only the structure that carries meaning, so the same content is much shorter and easier to follow. In one test, a real product page went from about 120,000 characters of HTML to about 2,000 of Markdown.
Does HTML to Markdown keep tables, links and images?
Tables, links, headings, lists, bold and italic text and code blocks are kept. Links stay by default and can be switched off. Images are left out by default to save space, and turning on Include images adds them as Markdown image links with their alt text.
What is the difference between HTML and Markdown?
HTML describes a page for a browser, with a tag for every element and attributes for styling and behaviour. Markdown is a lightweight plain-text format that marks headings, lists, links and emphasis with simple symbols, so it is easy to read, edit and reuse in documentation, notes and AI prompts.
Does URL to Markdown work on JavaScript websites?
Only partly. For a URL, the tool reads the HTML exactly as the server sends it and does not run JavaScript, so a page that builds its content in the browser can look almost empty. Open the page, copy the rendered HTML from your browser's developer tools (Copy outerHTML on the html tag), and use the Paste HTML tab.
Can I convert a page behind a login to Markdown?
Not from a URL, because the tool can only fetch public pages. While you are logged in, copy the page's HTML from the developer tools and paste it into the Paste HTML tab. The pages you convert are not stored on our side.
Is this HTML to Markdown converter free?
Yes, it is free with no signup. Pages up to about 3 MB and pasted HTML up to about 2 MB are supported, and each visitor can run a limited number of conversions in a short period to prevent abuse.

Make your site easier for AI assistants to read with our llms.txt Generator and see which AI bots can reach it with our AI Crawler Checker. To check what a page really says, try our SEO Content Checker and Heading Checker.

Want an AI that has actually read your site?

SEOMentor crawls your whole site and gives Mentor AI the text of your pages, so its advice is about your real content, not guesses.

Scan your site free
Free HTML to Markdown Converter: Convert a URL or Paste HTML | SEOMentor