LLMs.txt: The Complete Guide to Making Your Site AI-Readable

LLMs.txt: The Complete Guide to Making Your Site AI-Readable

If you want your website to survive the transition from a human-browsed internet to an agent-driven one, you need to start speaking the language of machines. llms.txt is the bridge between your chaotic, bloated HTML architecture and the clean, structured data that AI models like Claude, ChatGPT, and Perplexity crave. By dropping a simple, Markdown-formatted text file at your root directory, you are no longer just hoping an AI understands your business; you are handing it a map to the treasure. If you want a first draft in a minute, GrackerAI’s free LLM.txt Generator builds one from any public URL, no account required.

For years, we obsessed over “Search Engine Optimization”: stuffing keywords into headers and chasing backlinks to appease Google’s opaque, ever-shifting algorithms. But the era of the “ten blue links” is fading. Today, users ask an AI agent, “How do I integrate Stripe’s API for recurring billing?” and the agent doesn’t visit a SERP; it visits the documentation directly. If your site is a tangled mess of JavaScript-heavy components and nested div-soup, the agent will struggle to parse your value. It will hallucinate, or worse, it will ignore you entirely. llms.txt is the frontier of AI-Agent discovery, providing a verifiable context layer that turns your site into a primary source, rather than a mystery for a crawler to solve.

Why do AI systems struggle to read websites?

Picture explaining your company over the phone to someone who can only hold about ten pages of notes at once. You would pick the most important points instead of reading your whole site aloud. AI assistants face the same problem every time they answer a question about your business:

  • Context limits: a model can only process a fixed amount of text per request, so it cannot read hundreds of pages in one pass.
  • HTML noise: navigation menus, cookie banners, scripts, and styling markup surround the few paragraphs that actually matter.
  • No sense of priority: a typical site has hundreds of URLs, and nothing in the HTML tells the model which ten carry the answer.

llms.txt addresses all three by giving the model a short, prioritized, Markdown version of your site before it starts fetching anything.

What is an LLMs.txt file and how does it work?

At its core, an llms.txt file is an invitation. It is a plain-text file, formatted in Markdown, that sits at the root of your domain. It tells an AI agent exactly what is important on your site. Think of it as a table of contents for your brain. Instead of forcing a language model to guess what your navigation bar means or to click through dozens of pages, you provide a single, clean file that lists your core documentation, API references, and product guides in a format that LLMs digest natively.

The format was proposed by Jeremy Howard of Answer.AI on September 3, 2024. On August 10, 2026, the llmstxt.org proposal was revised to v2 based on two years of real-world adoption. It is still a proposal, not a ratified standard, which is one of the main ways it differs from robots.txt (more on that in our LLMs.txt vs Robots.txt comparison).

sequenceDiagram
    participant Agent as AI Agent
    participant Server as Web Server
    Agent->>Server: GET /robots.txt
    Server-->>Agent: Returns crawling rules
    Agent->>Server: GET /llms.txt
    Server-->>Agent: Returns Markdown context/links
    Agent->>Server: Fetch linked content (Markdown)
    Server-->>Agent: Returns structured knowledge

In practice, the flow has four stages:

  1. Discovery: the agent checks the standard location for an llms.txt file.
  2. Orientation: it reads the file first and learns what the site is and how it is organized.
  3. Navigation: it follows only the links that match the question, using the short notes beside each link to decide.
  4. Answer: it builds its response from those focused pages instead of from whatever it happened to scrape.

The philosophy here is “AI-First” design. LLMs are trained on vast datasets of Markdown; it is the lingua franca of developers and documentation. When you serve your content in Markdown, you bypass the “noise” of modern web development: the sidebars, the tracking scripts, the CSS animations, and the cluttered footers that confuse agents. The official llms.txt proposal also asks sites to publish a Markdown copy of each linked page at the same URL, either with .md appended (page.html.md) or with the extension swapped (page.md). URLs without a file name use index.html.md or index.md.

What goes inside an llms.txt file?

The proposal defines a fixed set of sections, in this order:

  1. An H1 with the name of the project or site. This is the only required section.
  2. A blockquote summary (a line starting with >) that states what the site or product does in plain terms.
  3. Zero or more Markdown paragraphs or lists with extra context, such as who the product is for or how the docs are organized. No headings in this part.
  4. Zero or more H2 sections that act as file lists. Each item is a Markdown link [name](url), optionally followed by a colon and a short note about the page.

One H2 name has a special meaning: a section called ## Optional holds secondary links that an agent can skip when it needs a shorter context.

The file usually lives at https://yoursite.com/llms.txt, but v2 of the proposal also allows it at any path inside the site. A file at /docs/llms.txt covers the pages under /docs/, which is handy when your docs and marketing site are run by different teams.

Here is a template that follows the spec:

# My Product

> My Product is an API for recurring billing. This file lists the pages an AI assistant needs to answer setup, pricing, and troubleshooting questions.

Docs are written for developers. Every page below is also available as Markdown by appending .md to its URL.

## Core Services
- [Product Overview](https://example.com/docs/overview.md): What the product does and who it is for
- [API Reference](https://example.com/docs/api.md): Endpoints, parameters, and error codes
- [Pricing](https://example.com/pricing.md): Plan tiers and what each includes

## Guides
- [Quickstart Guide](https://example.com/docs/quickstart.md): First working integration in under 10 minutes
- [Troubleshooting](https://example.com/docs/faq.md): Fixes for the most common setup errors

## Optional
- [Changelog](https://example.com/changelog.md): Release history

Should you use llms.txt or llms-full.txt?

Implementation is not one-size-fits-all. You have to choose your level of commitment based on the complexity of your site and the “AI-readiness” of your existing content.

The “Light” approach is the standard for most businesses. It acts as a curated signpost. You provide a concise list of links to your most critical pages: your pricing, your core product features, and your primary documentation entry points. It’s a high-level summary that allows an agent to decide if your site contains the information it needs before it starts a deeper crawl.

The “Full” approach, or llms-full.txt, is for the heavy hitters. If you run a massive technical knowledge base or a complex API suite, this file becomes the payload. It contains the actual documentation text, not just links. This allows the AI to “memorize” your entire product architecture in one go. However, this requires your site to be surgically clean. If you aren’t sure if your content is ready for this level of exposure, an AI-Ready Content Audit can help you identify which parts of your site should be exposed and which should be kept behind the curtain. Note that llms-full.txt is a convention that documentation platforms adopted on their own; the llmstxt.org proposal itself only defines llms.txt and the per-page .md files.

The difference is easiest to see side by side. In llms.txt, a guide is one line:

## Security Guides
- [Ransomware Protection Guide](https://example.com/guides/ransomware.md): 20-page guide to preventing and containing ransomware

In llms-full.txt, the same entry carries the whole guide inline:

## Security Guides

### Ransomware Protection Guide
[The full text of the 20-page guide goes here: every section, example, and checklist.]

Pick llms.txt alone when:

  • Your site has more content than fits in a model’s context window.
  • Your content changes often, and you want to update links rather than duplicate text.
  • You want something one person can maintain.

Pick llms-full.txt (usually alongside llms.txt) when:

  • You have a small, stable body of critical content, such as docs for a single tool or API.
  • You want an agent to have the full context without fetching anything else.
  • You have the resources to regenerate the file every time the source pages change.

What does a good llms.txt look like for different kinds of sites?

The structure stays the same; what changes is how you group the links. Two short examples:

A B2B security vendor groups links by what a buyer is trying to learn:

# TechSecure Solutions

> Threat detection and incident response platform for mid-size and enterprise security teams.

## Products
- [Threat Detection](https://techsecure.example/products/detection.md): How detection works and which data sources it reads
- [Incident Response](https://techsecure.example/products/response.md): Automated containment and remediation workflows
- [Compliance Dashboard](https://techsecure.example/products/compliance.md): SOC 2, ISO 27001, and GDPR monitoring

## Resources
- [Case Studies](https://techsecure.example/cases.md): Customer deployments with outcomes
- [Security Guides](https://techsecure.example/guides.md): Free how-to guides for security teams

## Optional
- [Careers](https://techsecure.example/careers.md): Open roles

A technical blog groups links by series and topic, so an agent can find the canonical post on a subject instead of the newest one:

# DevOps Insights

> A blog on cloud infrastructure, automation, and deployment practices, written by a site reliability engineer.

## Popular Series
- [Zero Downtime Deployments](https://blog.example/series/zero-downtime.md): Five-part guide to release strategies
- [Observability Fundamentals](https://blog.example/series/observability.md): Logs, metrics, and traces for distributed systems

## Topics
- [Cloud Architecture](https://blog.example/topics/cloud.md): AWS, Azure, and GCP patterns
- [Automation](https://blog.example/topics/automation.md): CI/CD, testing, and deployment automation

Documentation sites usually split into “Getting Started”, “Core Concepts”, and “API Reference”, and push migration guides and contributor docs into ## Optional.

How do you create and maintain an llms.txt file?

  1. Pick your pages. List the 10 to 30 URLs that answer the questions buyers and users actually ask: what you do, how it works, what it costs, how to start.
  2. Generate a first draft. Paste your homepage into the free GrackerAI LLM.txt Generator to get a structured starting file, then edit it by hand.
  3. Group by intent. Use H2 sections that mirror what visitors look for: Products or Services, Docs or Guides, Company, Getting Started.
  4. Write a note for every link. Agents decide what to fetch from the note alone. [Pricing](https://example.com/pricing.md) tells them little; [Pricing](https://example.com/pricing.md): Plan tiers with a feature comparison tells them whether to click.
  5. Write plainly. “Protects businesses from cyber attacks with automated threat detection” beats “Revolutionizing the paradigm of cyber-defense.” Models quote what they can understand.
  6. Publish and check it. Upload the file, confirm it returns HTTP 200 at its URL, and make sure nothing it links to is blocked in robots.txt (our robots.txt comparison guide covers how to keep the two files consistent).
  7. Test with real assistants. Ask ChatGPT, Claude, and Perplexity questions about your product and see whether the answers point to the pages you listed.
  8. Keep it current. Add new posts monthly, review every section quarterly, and restructure when your site architecture changes.

Does Google care about your LLMs.txt file?

It is vital to draw a line in the sand: llms.txt is not for Google Search. If you are doing this because you think it will boost your domain authority on search engine result pages, you are mistaken. This is a protocol for the generative web. It is for the agents that are actively synthesizing information, not the crawlers that are indexing it for a list of links.

Skeptics point out that major AI labs haven’t issued a “stamp of approval” for this protocol. According to llmstxt.org, OpenAI, Anthropic, and Google’s Gemini all publish llms.txt files for their own developer docs, and Chrome’s Lighthouse checks sites for one, but none of them has said its assistant reads the file when answering questions. That misses the point of competitive advantage, though. According to BuiltWith Tracking Data, over 844,000 domains have already adopted the format. These early adopters aren’t waiting for permission; they are future-proofing their presence in the context windows of the world’s most widely used models. When an agent is deciding which source to cite in a response, it will naturally gravitate toward the site that is easiest to parse.

Who is doing it right?

The best way to learn is to look at the industry leaders who have already perfected the craft. Stripe’s llms.txt Example is widely considered the gold standard. It is clean, it is hierarchical, and it is brutally efficient. There is no fluff. It tells the agent exactly what the Stripe ecosystem looks like, what the API endpoints are, and how to navigate the documentation. They treat their content as a product, and their llms.txt file as the API to that product. The proposal’s own reference example, the FastHTML llms.txt, is worth reading too, because every link in it points to a .md version of the page.

When you compare this to a standard, bloated HTML page, where an AI has to strip away thousands of lines of JavaScript and CSS just to find the actual documentation, the difference is night and day. A clean Markdown file is like a spotlight in a dark room; it guides the AI directly to the signal, ignoring the noise that clutters the rest of the web.

Is LLMs.txt the end-game or a stepping stone to MCP?

While llms.txt is the current standard for AI visibility, it is likely a stepping stone. We are already seeing the emergence of the Model Context Protocol (MCP), which promises a two-way communication channel between your site and an AI agent. Where llms.txt is a static “read-only” signpost, MCP is a dynamic, persistent connection. The two already overlap: llmstxt.org lists an MCP server that lets agents fetch and search llms.txt files.

Think of it this way: llms.txt is how you get in the door. MCP is how you hold a conversation. As we move deeper into 2026, the focus will shift from simply being “readable” to being “interactive.” If you want to stay ahead of this curve, start by implementing your llms.txt today, and keep a close watch on your SEO Strategy Dashboard to see how your site’s visibility evolves in AI-driven answers compared to traditional search. The goal isn’t just to be found; it’s to be understood.

Applying This to a Single Engine: Claude

Everything above is engine-agnostic by design, but if Claude specifically is the engine you’re optimizing for, see how to optimize for Anthropic’s Claude for how an llms.txt file and MCP fit into Claude’s own retrieval and citation behavior in particular.

Frequently Asked Questions

Is llms.txt a replacement for robots.txt?

No. robots.txt is an exclusion protocol (telling bots where not to go), while llms.txt is an invitation protocol (telling AI agents exactly where the “gold” is located). They should coexist. For the full breakdown of how the two files divide responsibilities, including implementation steps for each, see our LLMs.txt vs Robots.txt comparison guide.

Who created llms.txt, and is it an official standard?

Jeremy Howard of Answer.AI proposed llms.txt on September 3, 2024, and the proposal at llmstxt.org was revised to v2 on August 10, 2026. No standards body has ratified it, so it remains an optional convention, unlike robots.txt, which is an IETF standard.

Where should the llms.txt file live?

Most sites place it at the root, for example https://example.com/llms.txt. Version 2 of the proposal also allows a file at any path, and that file covers the pages beneath it, so /docs/llms.txt can describe just your documentation.

Does this file improve my Google search ranking?

Currently, no. llms.txt is designed for generative AI agents and LLM context windows. It does not carry weight in Google’s traditional ranking algorithms, though it may improve your visibility in AI-powered search results (e.g., SearchGPT or Perplexity).

How do I create an llms.txt file quickly?

Enter your site URL in GrackerAI’s free LLM.txt Generator to get a structured draft, then edit it by hand: keep the H1 name and blockquote summary, group links under H2 sections, and add a short note after every link.

How often should I update my llms.txt file?

You should treat it as a living document. Update it whenever you release new documentation, change your core product architecture, or launch a significant feature that requires AI understanding. Catching a stale or malformed file before it ships is easier than remembering to check it: GrackerAI’s VS Code extension validates llms.txt (and robots.txt) directly in the editor, for free.

Should I use llms.txt or llms-full.txt?

Use llms.txt as a high-level site map for general agents. Use llms-full.txt only if you have specific technical documentation, API specs, or knowledge bases that you want an AI to “memorize” instantly without needing to crawl your entire site. llms-full.txt is a community convention, not part of the llmstxt.org proposal.

Do not let AI keep
recommending someone else

Start your 7-day free trial and get your AI Visibility Score in about a minute. See exactly where you stand, where competitors are beating you, and the ranked fixes to get into the answer. Cancel anytime before the trial ends.

7-day free trial. Cancel anytime before it ends. Trusted by 500+ B2B SaaS teams.

Partnered with
Powered by