April 2, 2026

Optimizing your site for agentic visitors: Markdown, context, tokens and more

The web was built for browsers. In a few years, the most frequent "visitor" to your site won't be a human behind a screen; it will be an AI agent.

For 30 years, we've optimized the web for visual rendering. We've packed pages with JavaScript, CSS, tracking pixels, images, and layout code so that humans get a rich, interactive experience.

But for AI systems, specifically those using Retrieval-Augmented Generation (RAG), that visual "noise" is an expensive tax.

At TollBit, we've formatted content in Markdown to aid in RAG since our first day. Here is why Markdown matters, how it transforms your content, why it's the key to saving your CDN budget, and the infrastructure TollBit adds beyond Markdown.

What is Markdown?

Markdown is a lightweight formatting syntax used to represent text in a clean, structured format. It keeps the meaningful structure of a document, such as headings, lists, links, and emphasis, while removing the presentation code used to render a webpage.

This makes Markdown both human readable and easy for machines to process.

HTML is required for rendering sites via a browser, but delivering content to AI in HTML is inefficient. HTML pages contain scripts, styling, ads, and other elements designed for rendering the page in browsers but Markdown only delivers the core content.

For AI systems that need to retrieve and process information quickly and efficiently, this difference matters.

Why Markdown? The token economy

Large Language Models (LLMs) don't "see" a webpage the way we do. They process tokens to read. Every unnecessary <div>, <span>, or <script> tag in your HTML is a token the model has to pay for and — more importantly — spend "attention" on.

For developers building RAG systems, the context window acts as the model's working memory. Every token in the input consumes space in that window. When large portions of that space are filled with HTML boilerplate instead of meaningful content, the model has less room to focus on the information that actually matters. This increases compute costs, reduces retrieval efficiency, and can degrade the quality of the final output.

Markdown solves this by stripping away the presentation and preserving only the semantic structure.

Real-world transformation: from HTML to machine ready

The best way to understand the impact is to look at real data.

Below are 10 real publisher articles from sites on the TollBit network. These are not hypothetical examples or test pages. Each of these articles has been accessed by AI companies paying for access through TollBit as part of real RAG workflows.

For each article, we compared the original HTML page with the Markdown version returned through TollBit.

Mashable article — raw HTML (304 KB)

Mashable article — raw HTML (304 KB)

Mashable article — TollBit Markdown (51.9 KB)

Mashable article — TollBit Markdown (51.9 KB)

Daily Record article — raw HTML (524.6 KB)

Daily Record article — raw HTML (524.6 KB)

Daily Record article — TollBit Markdown (15.4 KB)

Daily Record article — TollBit Markdown (15.4 KB)

Express.co.uk article — raw HTML (475.1 KB)

Express.co.uk article — raw HTML (475.1 KB)

Express.co.uk article — TollBit Markdown (42.6 KB)

Express.co.uk article — TollBit Markdown (42.6 KB)

Forbes article — raw HTML (1201.2 KB)

Forbes article — raw HTML (1201.2 KB)

Forbes article — TollBit Markdown (41 KB)

Forbes article — TollBit Markdown (41 KB)

Goal.com article — raw HTML (378 KB)

Goal.com article — raw HTML (378 KB)

Goal.com article — TollBit Markdown (13.2 KB)

Goal.com article — TollBit Markdown (13.2 KB)

IGN article — raw HTML (193.2 KB)

IGN article — raw HTML (193.2 KB)

IGN article — TollBit Markdown (13 KB)

IGN article — TollBit Markdown (13 KB)

Mirror.co.uk article — raw HTML (448.9 KB)

Mirror.co.uk article — raw HTML (448.9 KB)

Mirror.co.uk article — TollBit Markdown (12.8 KB)

Mirror.co.uk article — TollBit Markdown (12.8 KB)

Newsweek article — raw HTML (842.3 KB)

Newsweek article — raw HTML (842.3 KB)

Newsweek article — TollBit Markdown (22.3 KB)

Newsweek article — TollBit Markdown (22.3 KB)

Readers Digest article — raw HTML (256.9 KB)

Readers Digest article — raw HTML (256.9 KB)

Readers Digest article — TollBit Markdown (77.1 KB)

Readers Digest article — TollBit Markdown (77.1 KB)

ZD Net article — raw HTML (756.7 KB)

ZD Net article — raw HTML (756.7 KB)

ZD Net article — TollBit Markdown (34.9 KB)

ZD Net article — TollBit Markdown (34.9 KB)

Previous slideNext slide

Publisher URL TypeRaw HTML SizeTollBit MarkdownToken ReductionMashable Article304 KB51.9 KB81.5%****Daily Record Article524.6 KB15.4 KB97.4%****Express.co.uk Article475.1 KB42.6 KB94.9%****Forbes Article1201.2 KB41 KB97.1%****Goal.com Article378 KB13.2 KB96%****IGN Article193.2 KB13 KB94.7%****Mirror.co.uk Article448.9 KB12.8 KB97.5%****Newsweek Article842.3 KB22.3 KB97.5%****Readers Digest Article256.9 KB77.1 KB56.1%****ZD Net Article756.7 KB34.9 KB96.7%

Across these examples, TollBit removes unnecessary HTML overhead before the content reaches an AI system, delivering the structured article content. By serving this optimized version, TollBit-enabled publishers become an optimal alternative to web scrapers for AI companies.

Key Takeaways

HTML pages are overwhelmingly noisy for AI systems

Across these articles, the majority of what an AI system downloads from the open web is not the article itself. It contains scripts, layout elements, and other rendering code that adds little value for machine consumption.

Markdown dramatically reduces token load

Many of these examples show reductions above 95 percent. That means less token usage, more available context window space, and lower inference costs.

Faster ingestion improves RAG performance

Instead of scraping and processing large HTML pages, which can take anywhere from a few seconds to over a minute, AI systems can fetch structured content in 0.25 seconds through TollBit.

Through TollBit's Markdown, content is faster to ingest, cheaper to process, and produces better RAG results.

Reclaiming your bandwidth

When a scraper hits your site it is forcing your servers to serve high-res images, CSS libraries, and JavaScript bundles. You are paying the CDN egress bill for a visitor who will never see an ad or subscribe to your newsletter.

By routing AI traffic through TollBit's Markdown stream, you offload this burden.

  1. Lower CDN Bills: Serving a 10KB Markdown file is significantly cheaper than serving a 200KB HTML page.
  2. Reduced Infrastructure Load: AI systems can fetch optimized content through TollBit without repeatedly hitting the origin site.
  3. Human Performance: By moving bot traffic to a dedicated pipe, your site remains fast and responsive for your actual human readers.

The reality check: where Markdown falls short

Markdown is the best tool for document retrieval, but it isn't a silver bullet. It's important to understand its limitations:

These limitations are not flaws. They simply reinforce that Markdown is best used as a machine-optimized representation of the core content, not a replacement for the human web.

What TollBit adds to the Markdown baseline

Simply converting text to Markdown is a utility. TollBit is an infrastructure layer that adds the controls publishers need to actually manage how their content is used by AI systems.

The bottom line

The web is being re-indexed for a new generation of users: AI agents.

Continuing to serve them the same HTML pages designed for human browsers is inefficient. As AI systems become a primary way information is retrieved, publishers need infrastructure that allows them to deliver content in a format machines prefer while maintaining control over how it is used.

At TollBit, we've spent the last two years building the infrastructure to bridge this gap. Markdown is one piece of it. The additional value comes from the additional filtering controls, licensing, delivery layers, and future optimizations.

Get started with TollBit Agent Sites

You may also be interested in

December 16, 2025

The Imperva + TollBit Integration is Now Live

AI systems are consuming more website content than ever before. A majority of this scraping is happening without consent, attribution, or compensation — placing strain on infrastructure and diminishing the value of high quality content.

Read more

July 1, 2025

How to Monetize AI Bot Traffic with Fastly AI Bot Management + TollBit

The conversation around AI and web content has reached a tipping point. As blocking becomes the predominant industry approach to AI bot traffic, a fundamental question emerges: what if there's a better approach than blocking? Our customers have been asking this question for months. Instead of treating all AI bot traffic as adversarial, they want the ability to monetize legitimate AI traffic while maintaining security against bad actors.

Read more

February 2, 2024

The New Era of Internet

The Internet we've known, for all its promise of accessibility, often falls short of true information democracy. Finding accurate, in-depth knowledge frequently means navigating complex paywalls, biased search rankings, and siloed platforms built to capture our attention, not empower our minds. With the advent of AI assistants, there might be a chance to break down barriers and rewire how we access the collective knowledge humanity has gathered online.

Read more