Skip to content
Back to insights

llms.txt · AI search

llms.txt: What the File Does and How to Write It Properly

llms.txt is a Markdown file that guides AI agents through your website. Google Search ignores it. Structure per spec version 2, an example and a how-to guide.

Updated 9 min readResponsible: Mehdi Bornak

llms.txt is a Markdown file at /llms.txt that gives language models and AI agents a short overview of your website and its key links. Jeremy Howard proposed it in September 2024, and version 2 followed in August 2026. It is not an official standard: Google Search explicitly does not use it, and the crawler documentation of OpenAI, Anthropic and Perplexity does not name it as a signal (as of November 2026).

What is llms.txt?

An llms.txt file is a curated signpost for AI agents: in a few lines it explains what a website is about and links to the pages an agent needs to answer a question. Because it is written in Markdown, both people and machines can read it.

The specification at llmstxt.org gives the reasoning: web pages are built for people, wrapped in navigation, ads and JavaScript, and converting them back into clean text is difficult and imprecise. At the same time, language model context windows are still too small for most websites. A concise overview in a fixed location is meant to solve that.

The file is intended for the moment an agent needs information while answering a question – that is, for using a model rather than mainly for training it. According to the spec, it is used most heavily for software documentation, where coding agents follow it to API references and tutorials.

How is an llms.txt file structured?

The spec defines a fixed order. Only the H1 is required:

  1. an optional byte-order mark (BOM),
  2. an H1 with the name of the project or site – the only required part,
  3. a blockquote with a short summary containing what you need to understand the rest of the file,
  4. any number of Markdown sections without headings, such as paragraphs or lists with details,
  5. any number of sections under H2 headings containing “file lists”: each entry is a Markdown link [name](url), optionally followed by a colon and a note.

By convention, a section headed “Optional” marks links an agent can skip when it needs a shorter context. The file sits at the root as /llms.txt or in a subpath such as /docs/llms.txt. It then covers all pages under that path; where several files apply, agents should use the most specific one.

Here is what the llms.txt of a fictitious maintenance company could look like:

# Example Ltd

> Example Ltd maintains solar installations for commercial customers. This file links to services, prices and contact details as Markdown versions.

We only work for business customers, not for private households.

## Services

- [Maintenance and inspection](https://www.example.com/services/maintenance/index.md): process, intervals, inspection report
- [Fault service](https://www.example.com/services/faults/index.md): response times and service area

## Company

- [Prices](https://www.example.com/prices/index.md): flat rates and hourly rates
- [Contact](https://www.example.com/contact/index.md): contacts and how to send a request

## Optional

- [References](https://www.example.com/references/index.md)

The links point to Markdown versions of the pages, as the spec recommends; for URLs without a file name you append index.md or index.html.md. If you don't offer Markdown versions, your regular page URLs are the obvious choice.

What changed in version 2 of the spec?

Jeremy Howard revised the proposal on August 10, 2026, citing two years of practice: by his account, thousands of sites publish an llms.txt file and documentation platforms generate one automatically. The main changes, according to the changes page:

  • Markdown versions: pages with useful information should offer a clean Markdown version at the same URL – either with .md appended (page.html.md) or with the extension replaced (page.md). Version 1 only allowed the first form.
  • Discovery: link relations are new. rel="alternate" type="text/markdown" points to a page's Markdown version and rel="describedby" to the llms.txt file that covers it – as an HTML <link> element or an HTTP Link: header.
  • Subpaths: a file covers the pages under its path, and the most specific file wins. That lets projects that control only a path on someone else's host take part.
  • Usage: agents are expected to read or search the llms.txt file and then follow the relevant links. The llms_txt2ctx tool that version 1 described for expanding the file into model context is no longer part of the proposal, so the “Optional” section has lost its special technical meaning.

An llms-full.txt – a single file containing the full text of all content – does not appear in the spec. Some documentation sites offer one anyway, including those of Anthropic, Perplexity and Cloudflare (checked on November 4, 2026). If you offer one, you have to update it with every content change.

Who reads llms.txt – and who doesn't?

Google Search does not read it, Chrome's Lighthouse checks it, and neither Bing's Webmaster Guidelines nor the crawler documentation of OpenAI, Anthropic and Perplexity says that they process other websites' llms.txt files. The table shows what the operators document themselves (checked on November 4, 2026):

OperatorWhat is officially documented
Google Search incl. AI Overviews and AI ModeDoes not use llms.txt. According to Google, the file neither harms nor helps visibility or rankings (clarified on June 15, 2026).
Chrome Lighthouse (Google)An audit under “Agentic browsing” flags server errors when fetching the file. If the file is missing (404), the audit is “Not Applicable” because providing it is optional at the moment.
Microsoft Bing and CopilotThe Bing Webmaster Guidelines don't mention llms.txt; to signal important URLs they point to XML sitemaps and IndexNow.
OpenAIThe crawler documentation mentions llms.txt only as the index of its own docs.
AnthropicThe help article on its crawlers does not mention llms.txt.
PerplexityThe crawler documentation refers to llms.txt only as the index of its own docs.

At the same time, OpenAI, Anthropic, Google (for the Gemini API) and Perplexity publish their own llms.txt files for their developer documentation, as do Stripe, Vercel and Cloudflare. That shows these companies use the format for their docs – not that their search systems read your file.

The clearest use case is agents deliberately fetching documentation. In version 2, Jeremy Howard writes that coding agents use the files reliably. That is the author's assessment, not a measurement published by an operator.

Is llms.txt a ranking factor?

Not for Google, and there is no evidence for other services. In its guide to generative AI features, Google says you don't need new machine-readable files, AI text files, markup or Markdown to appear in Google Search – including its generative AI features – because Google Search itself doesn't use them. Creating and maintaining an llms.txt file for other services is completely fine, Google adds, and will neither harm nor help your visibility or rankings in Google Search.

Google is just as clear about what counts instead: SEO fundamentals, crawlable content, and unique content that goes beyond common knowledge. For ChatGPT and Perplexity, their search crawlers also need to be allowed to fetch your pages – more on that in ChatGPT SEO: How to Get Cited in ChatGPT and Perplexity.

How is llms.txt different from robots.txt and sitemap.xml?

The three files sit in similar places but do different jobs: robots.txt governs what crawlers may fetch, sitemap.xml lists pages for search engines, and llms.txt curates and explains content for AI agents.

robots.txtsitemap.xmlllms.txt
PurposeTells crawlers which URLs they may accessTells search engines about pages, files and how they relateCurated overview with context and links for language models
FormatText file with rules per user agentXMLMarkdown
ScopeRules for the whole siteAll indexable pagesA deliberate selection
Who reads it?Crawlers such as Googlebot, OAI-SearchBot or PerplexityBotSearch engines such as Google and BingAI agents on demand; not Google Search
Controls access?Yes, for crawlers that respect itNoNo

In practice: llms.txt blocks nothing. To admit or exclude AI crawlers, use robots.txt; our AI search readiness checklist lists the crawlers. And to keep a page out of Google, Google says you need noindex or password protection – robots.txt is not the tool for that. The spec sees llms.txt as a complement that can add context to the content robots.txt allows.

Does your website need an llms.txt file?

It isn't required. It makes sense when AI agents are meant to work with your content and you can keep the file up to date.

SituationAssessment
Software, API or product documentationWorth it: the most common use according to the spec, ideally with Markdown versions of the pages.
Knowledge base, help center, services that need explaining with processes, conditions or pricesCan be worth it: the spec explicitly mentions businesses outlining their structure and policies.
Small website with a few readable pagesOptional: little effort, but no proven effect.
Nobody will maintain the fileBetter skip it: outdated links and descriptions send agents the wrong way.
Goal: better Google rankings or guaranteed AI citationsNo reason: Google doesn't use the file, and there is no evidence for other services.

Many systems now generate the file automatically; the spec lists Mintlify, GitBook, Yoast SEO, AIOSEO and Wix, among others. Review an auto-generated file anyway: a complete list of every page is not yet a curated overview.

How to create an llms.txt file, step by step

  1. Choose the pages. Which pages does an agent need to answer questions about your offering correctly? Typically services, prices or terms, processes, contact and key articles – not every URL; that's what the sitemap is for.
  2. Write the file. H1 with the name, a blockquote summary, then H2 sections with links and a short note for each. The spec recommends concise, clear language, informative link descriptions and no unexplained jargon. Only include what the target pages actually say.
  3. Put it in place. The file belongs in the website's root directory. In Next.js, files in the public/ folder are served from the base URL, so public/llms.txt becomes /llms.txt. That is how rocket-monkeys.com, built with Next.js, does it.
  4. Check delivery. Open the URL in a browser and make sure the server returns the file without errors. Lighthouse's llms.txt audit flags exactly those server errors.
  5. Optional: add Markdown versions. For documentation or pages that need explaining, offer a .md version at the same URL and link it with rel="alternate" type="text/markdown".
  6. Test it. The spec suggests giving an agent only your llms.txt as a starting point and asking it questions about your content. If the answers are right, the overview works.
  7. Maintain it. Whenever you add, rename or delete an important page, check the llms.txt in the same step. Your server logs show requests for /llms.txt if you want to know whether it gets fetched.

An llms.txt file is a small addition, not a strategy. Pages that search engines and AI crawlers can fetch and understand matter more. If you're building or relaunching a website anyway, llms.txt and Markdown versions can be planned in from the start – Rocket-Monkeys builds websites and relaunches as part of its software development service.

Sources

  1. The /llms.txt file, v2 – Jeremy Howard, llmstxt.org, published September 3, 2024, modified August 10, 2026
  2. Changes (v2, August 2026) – Jeremy Howard, llmstxt.org, accessed November 4, 2026
  3. Optimizing your website for generative AI features on Google Search – Google Search Central, last updated July 10, 2026
  4. Latest Google Search documentation updates – Google Search Central, entry of June 15, 2026
  5. llms.txt (Lighthouse audit) – Chrome for Developers, last updated May 5, 2026
  6. Bing Webmaster Guidelines – Microsoft Bing, accessed November 4, 2026
  7. Introduction to robots.txt – Google Search Central, last updated December 10, 2025
  8. Learn about sitemaps – Google Search Central, last updated December 10, 2025

Responsible

Mehdi Bornak, AI Manager (IHK)

Mehdi Bornak is the owner of Rocket-Monkeys and an IHK-certified AI manager. Rocket-Monkeys was founded in 2022 and builds custom software and AI solutions for companies.

More about us

Frequently asked questions

Frequently asked questions

01What is an llms.txt file?

An llms.txt file is a Markdown file at /llms.txt that gives language models and AI agents a short overview of a website. Only an H1 with the name is required; a blockquote summary and H2 sections with link lists are common. Jeremy Howard proposed the format in September 2024, and version 2 followed in August 2026. It is not an official standard.

02Does my website need an llms.txt file?

It isn't required. According to Google, Google Search does not use the file, but it doesn't hurt there either. It is most useful for documentation, help centers and services that need explaining, where AI agents are meant to fetch your content. The effort is small; maintenance is what matters, because outdated links send agents the wrong way. Don't expect better rankings or guaranteed AI citations.

03Do Google, ChatGPT or Perplexity read llms.txt?

Google says Google Search does not use llms.txt, including for AI Overviews and AI Mode. The crawler documentation of OpenAI, Anthropic and Perplexity does not say they process other websites' llms.txt files; at most it mentions the file as the index of their own docs. These companies publish their own llms.txt files for their developer documentation. Chrome's Lighthouse only checks whether fetching the file fails.

04What is the difference between llms.txt and robots.txt?

robots.txt tells crawlers which URLs they may access, so it controls access. llms.txt blocks nothing: it is a curated Markdown overview that AI agents read on demand to find your most important content. sitemap.xml, in turn, lists all indexable pages for search engines. The three files complement each other; none replaces another.

Let’s talk about your project.

20 minutes, free and without obligation – with a person from the team.