Skip to content
Skip to content
Guide10 min read

What is llms.txt, and do you need one for AI search?

By Updated Editorial standards

llms.txt is a proposed markdown file, served at yourdomain.com/llms.txt, that gives large language models a short summary of a website and links to its most useful pages; Jeremy Howard of Answer.AI proposed it on 3 September 2024. For AI visibility you do not need one. Google says Google Search ignores the file, and three studies of AI citations have found no link between having one and being cited.

What llms.txt actually is

The proposal came from Jeremy Howard of Answer.AI in September 2024. His argument: HTML pages are a poor way for a language model to learn about a site. They arrive wrapped in navigation menus, cookie banners, script tags and tracking pixels, and a model working within a limited context window wastes most of its attention on boilerplate. A single clean markdown file at the root of the domain hands over the essentials directly.

The proposal is now on version 2, published in August 2026. It keeps the same basic format and adds standard ways for an agent to find a page's markdown version and the llms.txt file that covers it.

It is not robots.txt or sitemap.xml under another name. Those two files are mechanical: one tells crawlers what they may not access, the other lists every URL you have with no opinion about which matter. llms.txt is editorial. It is the shortlist of pages you would hand a well-informed stranger, with context on why each one is there. There is a fuller definition in the llms.txt entry of our AI search glossary.

What goes in an llms.txt file

The format is deliberately simple. The proposal lists five parts, in this order:

  1. An H1 with the name of the site or project. It is the only part the file must have.

  2. A blockquote with a short summary, holding the key facts a reader needs to understand the rest of the file.

  3. Any further detail, in paragraphs or lists but with no headings.

  4. Sections under H2 headings, each holding a list of links to pages with more detail.

  5. In each list, a markdown link written as [name](url), then optionally a colon and a note about the page.

By convention, an H2 section called Optional holds secondary links that an agent can skip when it needs a shorter read. A short file for a made-up plumber, line by line:

# Example Plumbing

> Example Plumbing repairs boilers and fixes leaks in Leeds and Wakefield. Call-outs start at £85.

We cover LS and WF postcodes only, from 7am to 10pm, seven days a week.

## Services

- [Boiler repairs](services/boilers.md): brands we repair, prices and how to book

- [Leaks and burst pipes](services/leaks.md): emergency call-outs and what they cost

## Optional

- [Customer reviews](reviews.md): what customers say, with dates

Some tools also publish an llms-full.txt, with the full text of the pages in one file. It is not part of the proposal, which does not mention it.

llms.txt vs robots.txt vs sitemap.xml

The three files sit at the root of a site and do different jobs, and only robots.txt controls anything.

Google-Extended, in the robots.txt row below, is a token rather than a separate crawler: Google's crawler documentation says it manages whether your pages may be used to train Gemini models, and that it does not affect your place in Google Search. To see what your own robots.txt allows, the free AI crawler checker reads it against 12 AI crawlers and checks whether you publish an llms.txt file.

What each file controls
FileWhat it doesControls AI trainingControls AI search
robots.txtTells crawlers which pages they may fetchYes, for crawlers that obey it, such as OpenAI's GPTBot and Google's Google-Extended tokenYes, through search crawlers such as OAI-SearchBot, which OpenAI says decides whether you appear in ChatGPT search, and Googlebot for Google
sitemap.xmlLists the pages you want search engines to findNoNo: it helps crawlers find pages but allows or blocks nothing
llms.txtGives AI tools a short, curated summary with linksNoNo: it blocks nothing, and Google Search ignores it

Do ChatGPT and other AI tools read llms.txt?

llms.txt is a community proposal, not a web standard. No standards body has adopted it, and no major AI engine, including OpenAI, Anthropic, Google or Perplexity, has confirmed that it uses the file for retrieval or for training.

Google has now answered the question for its search engine. Its guide to optimising for generative AI features says you do not need llms.txt files to appear in Google Search, its AI features included, "as Google Search itself doesn't use them", and that keeping one will neither harm nor help your visibility there. OpenAI's crawler documentation sets out the robots.txt rules for its crawlers and does not mention llms.txt.

The supply side looks healthy: thousands of sites publish the file, helped along by documentation platforms that generate it automatically. The demand side does not. Server log analyses consistently show AI crawlers fetching llms.txt rarely, if at all, and Google's John Mueller has publicly compared the idea to the keywords meta tag, a signal search engines learned to ignore because site owners cannot be trusted to describe themselves neutrally.

The largest count so far comes from Ahrefs, which studied 137,210 sites that used its analytics in May 2026. Of those, 28% published an llms.txt file, and 97% of the files received no requests at all that month. Among the requests that did arrive, the most frequent AI fetchers were GPTBot, OpenAI's training crawler, and Claude Code, ahead of every AI search bot. One tool does look for the file: Chrome's Lighthouse has an llms.txt audit among its agentic browsing checks, and it marks a missing file as not applicable because the file is optional.

So when a vendor tells you llms.txt raises your AI visibility or your rankings, ask for evidence. We have not seen any that survives scrutiny. Correlation studies circulate, but sites that publish llms.txt files are also sites that care about structured, current content, and that second trait explains any visibility gains far more plausibly than the file does.

What the evidence says about llms.txt and AI citations

Three studies have looked for a link between having an llms.txt file and being cited in AI answers, and none found one.

SISTRIX. A study of 96,418 pages published on 22 October 2026 compared pages cited by ChatGPT, Google AI Mode and AI Overviews in Germany, Austria and Switzerland with uncited pages from the same sites. Of all cited pages, 11.7% came from domains with an llms.txt, against 14.0% across all domains. SISTRIX concluded: "As things stand, there is no measurable effect on AI citations."

Discoverable. We took the 100 websites Google cited in 78 AI Overviews for UK brand searches in October 2026 and requested each one's llms.txt. Ten served one, and of the 314 citations, 23 went to a site with the file. Wikipedia, cited in 31 of the 78 Overviews, had none when we checked. It is a small, descriptive check rather than a controlled comparison, and it points the same way; the details are in our report on the SISTRIX study.

SE Ranking. An analysis of nearly 300,000 domains found 10.13% had an llms.txt file. Its statistical tests and its machine learning model showed no effect of the file on how often a domain was cited by AI models, and the model was more accurate with the file left out.

These are correlations, and none rules out a small effect. None of them supports the claim that the file earns citations by itself.

Do you need an llms.txt file?

Not for AI visibility. No AI search service has said it uses the file to decide what to cite, Google says its search ignores it, and the three studies above found no link with citations. If you already have one, keep it, but fix your pages first: clear facts, current prices and pages AI crawlers can read matter more.

There are three reasons to make one anyway:

  1. It helps documentation sites. The proposal says llms.txt files are used most heavily for software documentation, where coding agents follow them to find API references, and Ahrefs found Claude Code among the most frequent AI fetchers of the file.

  2. It prompts a page review. Writing an llms.txt forces a question most sites never answer explicitly: if a stranger could read only ten of your pages, which ten? Teams that sit down to write the file tend to discover that their pricing page is vague or that their about page was last touched three years ago.

  3. It is cheap insurance. A first draft takes about 20 minutes for a typical marketing site, Google says the file will neither harm nor help your visibility in its search, and if an AI service starts reading it, yours is already there.

How to create an llms.txt file

The free llms.txt generator reads your homepage and sitemap and drafts a file for you to edit. To write one yourself, follow six steps:

  1. Start with the skeleton the proposal specifies. Line one is an H1 with your company or site name.

  2. Write the summary. Directly beneath it goes a blockquote of one or two sentences stating what you do and for whom, in plain factual language. That blockquote is the most important part of the file, so write it the way you would want a model to repeat it.

  3. Group your key links under H2 sections. Sensible groupings for a commercial site: products or services, pricing, documentation or guides, and company information.

  4. Describe every link. Under each heading, list links in markdown format with a one-line description after each. Write descriptions as verifiable statements, not slogans. 'Growth plan pricing and what each tier includes' beats 'Discover our flexible plans'.

  5. Keep it short. Most sites need between ten and thirty links. The proposal allows an H2 called Optional for secondary material, which is a useful home for anything a model can skip when context is tight.

  6. Serve it and keep it current. Serve the file at the root of your domain as plain text or markdown, and keep it wherever your site content lives, so it gets updated when pages change rather than rotting in a forgotten deploy.

llms.txt best practices: mistakes that defeat the point

The most common failure is dumping every URL into the file. That reproduces your sitemap and throws away the one thing llms.txt offers, which is curation. A model handed 4,000 undifferentiated links learns nothing about what matters; the file only works as a shortlist.

Bare links without descriptions are nearly as bad, because the description supplies the context a URL cannot. Ad copy in the descriptions is a subtler version of the same mistake. A model grounding its answers in your file can do nothing useful with 'the leading platform for modern teams', but it can repeat 'B2B payroll software for UK companies with 10 to 200 employees'.

Two more worth flagging: letting the file go stale, which turns a trust signal into a liability the moment a model quotes your 2024 pricing, and treating the file as a rankings play, which sets expectations no current evidence supports. If you publish one, keep it current, but expect nothing from it directly.

Where llms.txt sits in GEO

Keep proportion. llms.txt is a minor tactic within generative engine optimisation, the wider discipline of making sure AI engines describe and recommend you accurately. The levers with real evidence behind them are less glamorous: accurate, up-to-date facts on your own pages, and third-party sources that corroborate them.

Accuracy is where the bigger gap is. In our July 2026 test of 30 brands, AI described 27 of the 30 (90 per cent) with at least one materially false claim when answering from memory, and 13 of 30 (43 per cent) even with live web search running. Clear and current pages are what fix that.

The place to start is measurement, not file creation. Run your brand through our free AI visibility checker, which needs no login and asks 4 prompts on Claude, ChatGPT and Google AI Overviews in about a minute, showing what AI says about your brand right now (paid plans run the same check on Perplexity, Gemini, Google AI Mode, Bing AI Overviews and Bing AI Mode; see plans and prices). Perplexity is paused. Fix what it gets wrong, then check again. An llms.txt file is a sensible 20 minutes along the way; it is not the work itself.

llms.txt: questions

Is it llm.txt or llms.txt?

It is llms.txt, with an s, as in LLMs. The proposal names the file llms.txt and places it at the root of a site, or under a path such as /docs/llms.txt for one section. A file called llm.txt is not part of the proposal, and tools that follow the proposal will not look for it.

Does Google use llms.txt?

Not for Google Search. Google's guide to optimising for generative AI features says Google Search, its AI Overviews and AI Mode included, does not use llms.txt files and ignores them, so one neither helps nor harms your visibility there. Chrome's Lighthouse does check for the file in its agentic browsing audits, which is a separate tool.

Does ChatGPT read llms.txt?

OpenAI has not said that it does. Its crawler documentation explains how OAI-SearchBot finds pages for ChatGPT search and how GPTBot collects training data, and it does not mention llms.txt. Ahrefs found GPTBot was the most frequent AI fetcher among the files that got any requests, but GPTBot collects training data, which is a different job from answering a question.

Will an llms.txt file hurt my SEO?

No. Google says creating and maintaining an llms.txt file will neither harm nor help your site's visibility or rankings in Google Search, because Google Search ignores it. Google may still crawl and index the file like any other file on your site, which it says does not mean the file is treated in a special way.

Who is using llms.txt?

From about one website in ten to more than one in four, depending on the count. Ahrefs found the file on 28% of 137,210 sites, which it calls an upper bound, and SE Ranking on 10.13% of nearly 300,000 domains. OpenAI, Anthropic and Google publish one for their developer documentation, and Mintlify, GitBook, Yoast and Wix can generate one.

Sources

Keep exploring: Free AI visibility checkerWhat is GEO?The best GEO tools (2026)AI Visibility Index: 40 brands measuredGEO statistics 2026Google AI Overviews trackerChatGPT visibility trackerPerplexity visibility trackerGemini visibility tracker

See where your business stands.

Run a free AI visibility check and get your score in about a minute, no login.