URL to Markdown

Enter a URL to fetch its content and convert it to clean Markdown. Perfect for preparing web content for LLMs and AI workflows.

This tool sends the URL to our server to fetch the page. No data is stored.
Output — Markdown

To convert a URL to Markdown, paste the full address (with https://) into the box above and press Fetch & Convert. You get the main article as Markdown, starting with the page title as an # heading. Navigation, sidebars, cookie banners and footers are left out, and every link and image points to an absolute URL, so the text still works once it is pasted into a chat with an AI model, a notes app or a repo.

What does the output look like?

A blog post: menus, cookie banner and sidebar removed

Page at https://acme.example/blog/sqlite
<!doctype html><html><head><title>Why we moved to SQLite | Acme Blog</title></head><body>
<nav><a href="/">Home</a> <a href="/blog">Blog</a> <a href="/pricing">Pricing</a></nav>
<div class="cookie-banner">We use cookies. <button>Accept</button></div>
<main><article><h1>Why we moved to SQLite</h1><p class="byline">By Dana Lee</p>
<p>Our app ran on Postgres for three years. Last spring we moved the read path to <a href="/docs/sqlite">SQLite</a> and cut p95 latency from 180 ms to 40 ms. This post covers what changed, what broke and what we would do again if we started over today.</p>
<h2>What changed</h2><p>Each region now ships a read-only SQLite file that is rebuilt every five minutes from the primary database. Writes still go to Postgres. The app opens the file with <code>immutable=1</code> so readers never take a lock.</p>
<pre><code class="language-sql">PRAGMA journal_mode = WAL;</code></pre>
<p>Most of the work was in the build step, not the app. We had to make sure the file was swapped atomically and that old readers finished before it was removed.</p>
</article></main>
<aside><h3>Related posts</h3><ul><li><a href="/a">Postgres tips</a></li></ul></aside>
<footer>© 2026 Acme. <a href="/privacy">Privacy</a></footer></body></html>
Markdown out
# Why we moved to SQLite

Our app ran on Postgres for three years. Last spring we moved the read path to [SQLite](https://acme.example/docs/sqlite) and cut p95 latency from 180 ms to 40 ms. This post covers what changed, what broke and what we would do again if we started over today.

## What changed

Each region now ships a read-only SQLite file that is rebuilt every five minutes from the primary database. Writes still go to Postgres. The app opens the file with `immutable=1` so readers never take a lock.

```
PRAGMA journal_mode = WAL;
```

Most of the work was in the build step, not the app. We had to make sure the file was swapped atomically and that old readers finished before it was removed.

The title comes from the page's <title>, with the "| Acme Blog" suffix removed. The byline is dropped, and so is the sql language tag, because Readability strips class attributes.

A docs page with a table and a relative image

Page at https://docs.example.com/guides/cdn
<!doctype html><html><head><title>Choosing a CDN - Docs</title></head><body>
<header><nav><a href="/">Docs home</a> <a href="/api">API</a></nav></header>
<main><h1>Choosing a CDN</h1>
<p>We tested three CDNs from five regions over two weeks. The table shows median time to first byte for a 40 KB HTML page. Lower is better, and every number is the median of about 2,000 requests per region.</p>
<table><thead><tr><th>CDN</th><th>TTFB</th></tr></thead><tbody><tr><td>Alpha</td><td>38 ms</td></tr><tr><td>Beta</td><td>45 ms</td></tr></tbody></table>
<p><img src="img/ttfb.png" alt="TTFB by region"></p>
<p>Alpha was fastest in four of five regions. Beta was cheaper at our volume, so we kept it for static assets and moved HTML to Alpha.</p>
</main><footer>Edit this page on GitHub</footer></body></html>
Markdown out
# Choosing a CDN - Docs

We tested three CDNs from five regions over two weeks. The table shows median time to first byte for a 40 KB HTML page. Lower is better, and every number is the median of about 2,000 requests per region.

| CDN | TTFB |
| --- | --- |
| Alpha | 38 ms |
| Beta | 45 ms |

![TTFB by region](https://docs.example.com/guides/img/ttfb.png)

Alpha was fastest in four of five regions. Beta was cheaper at our volume, so we kept it for static assets and moved HTML to Alpha.

Here the " - Docs" suffix stays in the title. Readability decides case by case whether a suffix is the site name.

What happens to the page between the link and the Markdown?

Two steps, in two places:

  1. Fetch, on our server. Browsers block one site from reading another site's HTML, so the URL is sent to a small Cloudflare function. It checks the address is http or https, downloads the page with a normal desktop browser user agent, follows redirects and streams the raw HTML back. It does not parse the page or save a copy.
  2. Extract and convert, in your browser. Mozilla's Readability (the code behind Firefox Reader View) picks out the main article. Turndown then turns that HTML into Markdown, the same converter as HTML to Markdown.

So the URL you enter and the page's HTML pass through the function. Nothing else you do here does.

Why is the output empty or missing most of the page?

Usually because the page builds its content with JavaScript. The function downloads the HTML the server sends and does not run any scripts, so a single-page app often returns an almost empty shell. You will see "Could not extract readable content", or only a heading. Pages that are lists of links (home pages, search results, category pages) also give thin results, because Readability is looking for one main article.

Is the Markdown good input for ChatGPT or Claude?

It is a good start. Removing navigation and footers cuts a lot of tokens that carry no meaning, and Markdown keeps the headings and tables a model can use for structure. Long articles can still be long. Run the result through the Markdown for AI tool if you want to trim it further.

How are tables, code, images and other page elements handled?

InputWhat you get
Navigation, sidebars, footers, cookie bannersRemoved by Readability
Page titleAdded as the first # heading. The article's own <h1> is usually dropped when it repeats the title
Relative links and image pathsRewritten to absolute URLs using the final (post-redirect) address
Images![alt](absolute-url). The image is linked, not downloaded
Tables with a header rowGFM pipe table
Tables without a header rowKept as an HTML <table>
Code blocksFenced, but the language tag is lost because class attributes are stripped
Byline, publish dateNot included in the output
Content loaded by JavaScriptMissing. Scripts are not run
Pages not encoded as UTF-8Accented and non-Latin characters can come out garbled
Login or paywallYou get whatever a logged-out visitor sees
Non-HTML URLs (PDF, images, JSON)Not supported; extraction fails or returns noise

How does this compare with Jina Reader and Pandoc?

MDConvert (this page)Jina Reader (r.jina.ai/<url>)Pandoc -f html -t gfm <url>
How you use itPaste a link on this pagePut r.jina.ai/ in front of the URLCommand line
Removes menus and footersYes, ReadabilityYesNo, converts the whole page
Runs the page's JavaScriptNoYesNo
Who fetches the pageA Cloudflare function on mdconvert.appJina's serversYour machine
Where the HTML is parsedYour browserJina's serversYour machine
Scripting / batchNoYes, it is an HTTP APIYes
Account or keyNoneWorks without a key; a key raises rate limitsNone

Jina Reader handles JavaScript-heavy pages better, and both alternatives can be scripted. This page is for grabbing one article without installing anything or calling an API.

Maintained by Ankit Aglawe. Last updated .

Related Tools

Need a different format? See every tool on the Markdown converter page, or go back to the MDConvert home page.

URL to Markdown questions

Does it work on pages that need a login?
No. The page is fetched without your cookies, so a members-only or paywalled article returns the login screen or the public teaser. Open the page yourself, select the text and use Paste to Markdown instead.
Why did I get an "Access denied (HTTP 403)" error?
The site refused the request, which is common on sites behind bot protection. There is no workaround on this page. Copy the page source into HTML to Markdown, or copy the rendered text into Paste to Markdown.
How long will it wait for a slow page?
Up to 30 seconds. After that the request is cancelled and you see a timeout message.
Does it follow redirects?
Yes. Short links and http-to-https redirects are followed, and relative links are resolved against the final address, not the one you typed.
Can I convert a PDF link?
Not here. This tool expects an HTML page. Download the PDF and drop it into PDF to Markdown, which reads it in your browser.
Is there an API?
No. The endpoint behind this page only returns raw HTML for your browser to convert, and it is not a documented API. For scripted conversion, Jina Reader or Pandoc are built for it.