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.
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
<!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># 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
<!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># 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 |

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:
- 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.
- 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?
| Input | What you get |
|---|---|
| Navigation, sidebars, footers, cookie banners | Removed by Readability |
| Page title | Added as the first # heading. The article's own <h1> is usually dropped when it repeats the title |
| Relative links and image paths | Rewritten to absolute URLs using the final (post-redirect) address |
| Images | . The image is linked, not downloaded |
| Tables with a header row | GFM pipe table |
| Tables without a header row | Kept as an HTML <table> |
| Code blocks | Fenced, but the language tag is lost because class attributes are stripped |
| Byline, publish date | Not included in the output |
| Content loaded by JavaScript | Missing. Scripts are not run |
| Pages not encoded as UTF-8 | Accented and non-Latin characters can come out garbled |
| Login or paywall | You 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 it | Paste a link on this page | Put r.jina.ai/ in front of the URL | Command line |
| Removes menus and footers | Yes, Readability | Yes | No, converts the whole page |
| Runs the page's JavaScript | No | Yes | No |
| Who fetches the page | A Cloudflare function on mdconvert.app | Jina's servers | Your machine |
| Where the HTML is parsed | Your browser | Jina's servers | Your machine |
| Scripting / batch | No | Yes, it is an HTTP API | Yes |
| Account or key | None | Works without a key; a key raises rate limits | None |
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.