What is llms.txt? What it does and whether you need one
llms.txt is a Markdown file that gives AI agents a map of your site. What Google says about it, who reads it, a template, and when it is worth having.
Short answer: llms.txt is a plain Markdown file at yourdomain.com/llms.txt that gives AI tools a short, curated map of your site: what it is, and links to the pages that matter most. It was proposed by Jeremy Howard of Answer.AI in September 2024 and is a community convention, not an official standard. Google says its Search ignores llms.txt files, so it will not help or hurt your rankings. It is worth having if AI agents use your product, docs or API, and worth skipping as an SEO tactic.
I have one on AfterPrompt and re-read the spec while writing this. Most articles on the topic argue about one question, whether it helps SEO. Google has now answered that in writing. The more useful questions are who actually reads the file, and how to keep it from going stale.
What is llms.txt, exactly?
The proposal on llmstxt.org puts it simply: a /llms.txt Markdown file "to provide LLM-friendly content". Web pages are full of menus, scripts and cookie banners. A language model with a limited context window does better with a short, clean summary and a list of links to clean pages.
The format has a fixed order, per the current version of the spec (v2.1):
- An H1 with the name of the project or site. This is the only required part.
- A blockquote with a short summary.
- Optional detail blocks, using H3 or smaller headings, because H1 and H2 are reserved.
- H2 sections, each a list of Markdown links, every link optionally followed by a colon and a short note.
The original proposal also describes a section called Optional: links there can be skipped when a tool needs a shorter context. The spec also suggests offering a clean Markdown version of each page at the same address with .md added, and some sites publish a second file, llms-full.txt, with the full text of their docs in one place.
Does llms.txt help SEO or AI search rankings?
Not in Google. Google's page on AI features says you don't need "new machine readable files, AI text files, markup, or Markdown to appear in Google Search", and that llms.txt files "will neither harm nor help your site's visibility or rankings in Google Search, as Google Search ignores them" (Google: AI features and your website). That covers AI Overviews and AI Mode too.
Google's John Mueller explained why on the Search Off the Record podcast in June 2026. An answer engine choosing between websites "can't trust what is here as a way of differentiating between different websites", since any site can write anything about itself. He did name one case where it helps: "If someone is already on your website, maybe some kind of automated system is helpful" (Search Engine Journal's write-up).
The full episode is worth about 25 minutes if you are deciding whether to build Markdown copies of your pages:

Their verdict, per the episode description, is to stick to HTML for the web, with developer docs as the exception. The spec itself points the same way: llmstxt.org says the file was expected to be useful mainly at inference time, when a tool is reading your site to do a task, rather than for training, and that this is how it has been used.
So who actually reads llms.txt?
Mostly agents and developer tools that are already pointed at your site. Three situations where it earns its place:
- Coding agents reading docs. A developer asks an AI coding tool to integrate your API and gives it your docs URL. A clean index of
.mdpages is much easier for it to work through than rendered HTML. - People pasting your URL into an assistant. "Read afterpromptapp.com and tell me if I can list my company there." The assistant fetches what it can, and a clear summary keeps it from guessing.
- Agents doing a task on your site. This is Mueller's case: the agent has already arrived and needs to find the pricing page, the signup page or the docs for one feature.
That is why the best known examples come from developer platforms. Vercel's file at vercel.com/llms.txt tells agents to add .md to any page address for a Markdown copy and ends with an Optional section linking its full docs file. OpenAI's at developers.openai.com/llms.txt is an index of smaller llms.txt files, one per product. Anthropic's Claude Code docs publish one too. These are companies whose users ask agents to write code against their docs every day.
Does my site need one?
| Your site | Worth it? | Why |
|---|---|---|
| Docs or an API that developers integrate with AI tools | Yes, and add .md pages | Agents read your docs to write code |
| An AI tool or SaaS people ask assistants about | Yes, a short one | Cheap, and gives agents your real facts and key pages |
| A marketing site, blog or local business | Optional | It costs little, but expect no traffic from it |
| You want better Google rankings or AI Overview citations | No | Google ignores it; work on your pages instead |
If you are hoping it will get your product mentioned in ChatGPT answers, it won't do that on its own. Crawler access, clear pages and mentions on sites the assistants already cite do more, and our SEO for AI startups plan puts them in order.
How do you write a good llms.txt file?
Here is a starting point for an AI product. Replace every line with your own facts:
# YourProduct
> YourProduct turns support emails into draft replies for small online shops. Free up to 100 emails a month. Not related to yourproduct.io.
### Facts
- Pricing: free plan and one paid plan, see the pricing page (updated monthly)
- Works with: Gmail, Shopify
- Does not: send replies without a human approving them
## Key pages
- [Pricing](https://example.com/pricing): plans and limits
- [Docs](https://example.com/docs): setup, API and integrations
## Optional
- [Changelog](https://example.com/changelog): what shipped and when
A few rules I would follow:
- Facts, not adjectives. "Free up to 100 emails a month" is useful to an agent. "The leading AI support platform" is noise, and an agent has no reason to repeat it.
- Say who you are not. If another company has a similar name, add one line. Our guide to getting cited by ChatGPT explains why that line also belongs on a normal page.
- Link to pages that work without JavaScript or a login. An agent that hits a login wall learns nothing.
- Keep it short. It is a map, not a copy of your site. Put long material behind links.
How do you keep llms.txt from going stale?
The episode above warns about keeping a "parallel version" of your site, and llms.txt is exactly that: a second copy of your site's facts that someone has to remember to update. A hand written llms.txt with last spring's pricing is worse than none, because an agent will trust it.
On AfterPrompt the file is not a static file. It is a small route that builds the text from the same sources as the site: the blog list comes from the same function that builds the sitemap, and the tool names come from the same list our AI tools pages use. It refreshes every hour. When a new post goes live, it appears in llms.txt without anyone touching it.
Re-reading the v2.1 spec for this post, I also found a mistake in ours: we put plain text paragraphs under H2 headings, and v2.1 reserves H2 for link lists and wants detail under H3. It is a small fix, it is on my list, and it is a good reason to re-read a spec once in a while rather than copy someone else's file.
To test yours, give its address to an assistant and ask five questions a customer would ask: what it costs, who it is for, how to sign up, what it does not do, and where the docs are. If any answer is wrong, the fix goes in the file and on the page it links to.
A speed note, since some people worry this adds load: llms.txt is one small plain text file. Serve it with a cache header, as ours does with a one hour cache, and it costs nothing. If you also publish .md copies of pages, generate them from the same content as your HTML, never by hand.
If agents are a big part of how people use your product, an MCP server goes further than a text file: it lets an agent act, not just read. Our MCP server explainer covers the difference, and our own MCP setup page is a working example.
Frequently asked questions
Is llms.txt an official web standard?
No. It is a proposal by Jeremy Howard of Answer.AI, published in September 2024, that a number of sites, mostly developer platforms, have adopted. No standards body has approved it, and Google has said its Search does not use it.
Does Google use llms.txt?
No. Google's Search Central documentation says Google Search ignores llms.txt files, and that having one neither helps nor harms your visibility in Search, including AI Overviews and AI Mode.
What is the difference between llms.txt and robots.txt?
robots.txt tells crawlers which pages they may fetch. llms.txt is a summary and reading list for AI tools. It grants or blocks nothing, so access rules still belong in robots.txt.
What is llms-full.txt?
It is a companion file some sites publish with the full text of their documentation in one Markdown file, so an AI tool can load everything at once. It suits developer docs. Most other sites don't need one.

