llms.txt: The Complete 2026 Guide (Generator, Examples, Validators)
By Esteve Castells
Table of contents
- What is llms.txt?
- What llms.txt is for (and what it is not)
- The llms.txt specification (structure and rules)
- llms.txt vs llms-full.txt vs robots.txt vs sitemap.xml
- How to create your llms.txt step-by-step (manual)
- Real-world llms.txt examples
- Best llms.txt generators in 2026
- How to validate your llms.txt
- Where to host it and how to verify it is accessible
- Common mistakes to avoid
- Does llms.txt actually affect AI search visibility today?
- How to track whether AI uses your content
- Summary
- Frequently asked questions
If you have ever opened your website with an AI assistant in mind, you have probably wondered the same thing every other SEO and content team is asking in 2026: do these models actually read my site, and if so, what part? Pages are noisy. Navigation, ads, cookie banners, related articles, footer junk. Models waste tokens parsing all of it before they get to the answer.
llms.txt is the proposed fix. It is a Markdown file at your domain root or a relevant subpath that gives compatible AI tools a curated map of that part of your site. This guide walks through the published proposal, practical examples and generators, how to check and host the file, common mistakes, and the honest answer to the question everyone wants answered: does it move the needle in ChatGPT, Perplexity, Gemini, or Google Search AI features yet?
What is llms.txt?
llms.txt is a plain-text Markdown file, commonly served at https://yourdomain.com/llms.txt. The v2 proposal also permits subpaths such as /docs/llms.txt. It is intended for large language models and AI agents that are trying to make sense of your site without parsing every HTML page. Think of it as a Wikipedia-style summary written in machine-friendly Markdown, hand-curated to point AI systems at your most important content.
Jeremy Howard, co-founder of Answer.AI, published the proposal on September 3, 2024, and updated it to v2 on August 10, 2026. The text lives at llmstxt.org, where he calls it an informal overview open to community input. The idea sits philosophically between two existing files you already know: robots.txt (rules for what crawlers can and cannot access) and sitemap.xml (a machine-readable list of every URL). llms.txt is neither. It is a human-curated brief explaining your site, written in Markdown so that LLMs can parse it cheaply and accurately.
Some tools generate larger context files that concatenate page content, but llms-full.txt is not defined by the llms.txt proposal. The current proposal recommends linked Markdown page variants; larger context bundles remain tool-specific.
You can see ours in production at https://llmpulse.ai/llms.txt.
What llms.txt is for (and what it is not)
Agents read websites on demand. A coding agent fetches a library's documentation to get an API call right, and a chat assistant with search reads pages to answer a question about a product. HTML is a poor format for that job. CSS, JavaScript, navigation, ads, sidebars, and cookie banners eat tokens that could otherwise carry actual answers. Markdown often removes navigation and presentation markup, although the token savings depend on the original page. Context windows are larger than they were, but still too small to hold most websites in full.
For an agent reading your site this way, a good llms.txt helps in three ways:
- Clarity. Can the agent figure out what your site is about in one short read?
- Curation. Did you tell it which pages are canonical and which are noise?
- Speed. Can it reach your key content without 20 round-trips and a render budget?
You write the summary once, choose the URLs that matter, and link to clean Markdown versions of them. According to the proposal, agents consult the file when they need information while assisting a user, so it is mainly used at inference, though training runs could use it too. Its heaviest use is software documentation, where coding agents follow it to find API references and tutorials.
It will not get you into AI search results. Google says Google Search, AI Overviews and AI Mode included, ignores llms.txt, and OpenAI, Anthropic, and Perplexity do not document reading it on other sites (the evidence is further down). Visibility in AI answers still comes from crawler access, useful and citable content, and mentions in the sources models consult. For the broader strategic picture, our guide to AI search optimization covers how llms.txt fits alongside structured data, content design, and citation tracking.
The llms.txt specification (structure and rules)
The proposal is intentionally minimal. The whole file is Markdown, in a format precise enough for a parser or regular expressions to process. Only the H1 is required; the optional elements that follow come in a fixed order.
Here is the canonical structure:
# Project Name
> A short, one-sentence description of what this site or project does.
An optional paragraph or two of additional context. This block is free-form Markdown and can include any details you want the LLM to know before it explores the listed resources.
## Docs
- [Quickstart](https://example.com/docs/quickstart): One-line description of the page.
- [API reference](https://example.com/docs/api): What this page covers.
## Examples
- [Hello world example](https://example.com/examples/hello): Description.
## Optional
- [Changelog](https://example.com/changelog): Less critical, can be skipped if context is tight.
The rules, in the order the elements appear:
- Byte-order mark (optional). The file may start with a BOM.
- H1 (required). The H1 is your site or project name and is the only required element.
- Blockquote summary (optional). A short blockquote may follow the H1. The proposal does not set a 200-character limit.
- Free-form context (optional). Markdown blocks of any type except headings (paragraphs, lists) can follow the blockquote, with details about the project and how to read the links.
- H2 sections (optional). Sections can group Markdown links under headings such as Docs, API, Examples, or Tutorials.
- Link notes (optional). A link can be followed by a colon and description to add context; the description is not required.
- Optional section. In v2, “Optional” remains a convention for grouping secondary links, which an agent can skip when it needs a shorter context. The heading has no special mechanical meaning.
That is the whole spec. No XML, no JSON, no front-matter, no schema validation step. The simplicity is the point. An LLM should be able to parse the file with a basic Markdown parser and walk the structure semantically.
llms.txt vs llms-full.txt vs robots.txt vs sitemap.xml
These four files are constantly confused. Each serves a different purpose. Here is the clean breakdown:
| File | Audience | Format | What it contains | Required? |
|---|---|---|---|---|
| robots.txt | Crawlers (Googlebot, GPTBot, etc.) | Plain text directives | Allow / disallow rules per user-agent | Optional but standard |
| sitemap.xml | Search engine crawlers | XML | Every URL on the site, last-modified dates | Recommended for SEO |
| llms.txt | LLMs and AI agents | Markdown | Curated index of key pages with descriptions | Emerging proposal, voluntary |
| Generated context bundle | Specific tools or agents | Implementation-specific | Selected page content assembled for a context window | Not part of the llms.txt proposal |
Put another way: robots.txt sets crawl permissions, sitemap.xml lists canonical URLs for search engines, and llms.txt proposes a curated Markdown index for compatible AI tools. Generated context bundles are optional tool-specific artifacts. Google says no special AI-readable file is required for AI Overviews or AI Mode.
If you have not yet checked which AI crawlers your site allows, do that first. Our guide on whether your website is crawlable by AI walks through the user-agents and headers you need to inspect.
How to create your llms.txt step-by-step (manual)
Generators are fine for a first pass, but a manually written llms.txt is usually better. The auto-generators tend to either (a) include too many URLs and bloat the file or (b) miss the context paragraphs entirely. Here is the practitioner workflow.
Step 1: Pick your H1 and one-line summary. The H1 is the name of your company or product. The blockquote summary is the elevator pitch. Both should match how you would describe the site to a human in a single breath. No marketing fluff, no buzzwords.
Step 2: Write the context paragraph. One or two sentences right under the blockquote. Tell the LLM what kind of audience you serve, what topics your site is authoritative on, and what readers should expect. This block is often left empty, and it gives an agent the frame for reading the links that follow.
Step 3: Enumerate your most important pages. Open a spreadsheet. List the URLs an agent should read to answer a question about your company or product well. For a SaaS site: pricing, key product pages, top documentation pages, the most cited blog posts, the changelog, and the trust pages (security, terms, privacy). For most company sites, a few dozen links cover it. If the list starts to look like your sitemap, it has stopped being a selection.
Step 4: Group them under H2 sections. Common sections: Docs, API, Tutorials, Examples, Blog, Company, Optional. Pick the groupings that match how a curious LLM would navigate your site. If a section grows too long, split it.
Step 5: Write a one-line description per link. The note after the colon is your chance to tell the agent what each page actually covers. Be specific. “Pricing” is weak. “Plan comparison with feature breakdown and current monthly prices” is strong.
Step 6: Move secondary content to Optional. Changelogs, secondary policies such as cookies, and low-priority blog content. The “Optional” H2 is a convention for links an agent may skip when context is tight; the heading has no special mechanical meaning in v2.
Step 7: Offer Markdown versions of your key pages. The proposal recommends that pages an agent might need have a clean Markdown version at the same URL, with .md appended (page.html.md) or in place of the extension (page.md), and that the links in llms.txt point to that kind of content. A larger bundle such as llms-full.txt is worth building only if a specific tool you use asks for one: its filename and format are implementation-specific and not part of the proposal.
Step 8: Validate, host, and link. Validate the file (next section). Upload it at the relevant root or subpath. For discovery, v2 recommends standard link relations, as HTML <link> elements or an HTTP Link header: rel="describedby" points to the llms.txt that covers a page, and rel="alternate" type="text/markdown" points to the page's Markdown version.
Real-world llms.txt examples
Looking at live files is useful, but implementations change and do not prove that a search engine consumes them. The proposal itself points to FastHTML as an example, documentation platforms such as Mintlify generate the file for the sites they host, and the AI labs publish one for their own developer docs. Verify any example before copying its structure. These were checked on November 24, 2026:
Mintlify. As a docs platform, Mintlify auto-generates llms.txt for every customer site hosted on the platform. Their own llms.txt links to a documentation index and to API reference pages, and includes an Optional section.
FastHTML. The proposal links to FastHTML as its reference example. It uses the suggested Markdown structure to point readers and compatible tools toward documentation resources.
Perplexity. Perplexity publishes an llms.txt index for its developer documentation. This shows that the format is useful as documentation infrastructure, but it is not evidence that Perplexity Search ranks third-party sites through llms.txt.
OpenAI, Anthropic, and Google. The AI labs publish llms.txt files for their developer documentation (OpenAI, Anthropic, and Google for the Gemini API), as do Stripe and Cloudflare. This is the format's most common use: technical docs that coding agents read on demand.
The practical pattern is curation rather than completeness. Keep descriptions accurate, list canonical resources, and avoid turning the file into a second sitemap.
Best llms.txt generators in 2026
If you do not want to hand-write the file, generators can do most of the heavy lifting. Quality varies. Some auto-generators crawl your sitemap and produce a 5,000-line monstrosity with every blog post, every category page, and every legal disclaimer. That is worse than no llms.txt at all because it defeats the curation premise.
Here is how the main options compare in 2026:
| Option | How it works | Best for |
|---|---|---|
| LLM Pulse llms.txt generator (free) | Runs a web search restricted to your domain and its subdomains, and an AI model writes an llms.txt and an llms-full.txt from the pages it finds, in about two minutes. It does not crawl, so a site that search engines have not indexed gets no files | A first draft for an indexed site, to review and edit before you publish it |
| Yoast SEO and AIOSEO (WordPress plugins) | Generate the file from your WordPress content, with settings for what goes in; Yoast refreshes it automatically and AIOSEO can also write an llms-full.txt | Company sites and blogs on WordPress |
| Wix | Generates and maintains an llms.txt for every Wix site; you can edit it in the dashboard, which stops the automatic updates | Sites built on Wix |
| Docs platforms (Mintlify, GitBook) | Generate llms.txt, an llms-full.txt, and Markdown versions of the pages for the docs sites they host | Product and API documentation |
| Manual template from the llmstxt.org proposal | Fill in the documented structure by hand | First-time creators, small sites |
| Open-source plugins and CLI tools (for example, for VitePress and Docusaurus) | Generate the file when the docs build, or convert pages to Markdown locally | Developers comfortable with CLIs |
If you used Firecrawl's hosted llms.txt API, note that Firecrawl has deprecated it and announced its removal for December 10, 2026; it now points users to its map and batch scrape endpoints.
If your site already runs on a docs platform or a CMS that generates the file, start there. Whatever produced the draft, read it before you publish and expect to cut a good part of it: generators that dump your sitemap into Markdown produce bloated output, and curation is the point of the format.
Our free llms.txt generator gives you that first draft. In LLM Pulse accounts, GEO Audits include the same generator, and you can edit both files in the app before you download them.
How to validate your llms.txt
llms.txt has no formal schema, so “validation” is less rigid than for JSON-LD or sitemap.xml. There are still checks worth running.
- Markdown parses cleanly. Run the file through any CommonMark parser. If headings, links, or list bullets break, fix them. The most common issues are stray asterisks and unescaped square brackets.
- Exactly one H1. Multiple H1s confuse the parser. The spec is explicit: one H1, at the top.
- Optional structure is intentional. A blockquote and H2 link sections are useful conventions, but only the H1 is required by the proposal.
- All links resolve. Every URL in the file must return a 200 status code. Run a link checker. Dead links erode trust in the file.
- No JavaScript-only pages. If a linked page renders content via JS only, the LLM will fetch the HTML shell and get nothing. Link to a server-rendered equivalent or to the page's Markdown (
.md) version instead. - Reasonable size. Keep the index curated enough to be useful. The proposal does not set a 100 KB limit or define a size limit for generated context bundles.
- UTF-8 encoding. The file must be served as plain text with UTF-8 encoding. Test with curl: curl -I yourdomain.com/llms.txt and confirm the Content-Type header.
Community validators have started to appear in 2026. Most are simple web forms that fetch your file, parse it, and flag missing or malformed sections. Chrome's Lighthouse also has an llms.txt audit in its experimental Agentic Browsing category, which requires Chrome 150 or later. It flags a server error when it requests the file and marks the audit not applicable when the file is missing (404), because the Chrome documentation treats the file as optional for now. The proposal adds a manual test: give an agent only your llms.txt as a starting point and ask it questions about your content. For most teams, running a CommonMark parser plus a link checker is enough.
Where to host it and how to verify it is accessible
The conventional location is /llms.txt at the root of a domain. The proposal also allows a file within a subpath when the content applies to a specific section, so root is the default, not the only valid location. When more than one file applies to a page, agents should use the most specific one.
Hosting steps:
- Upload llms.txt to your web root (the same directory that serves your index.html and robots.txt).
- Confirm it is reachable via https://yourdomain.com/llms.txt. Test from a clean browser tab and incognito mode.
- Verify the Content-Type header is text/plain or text/markdown. If your server returns application/octet-stream, fix the MIME-type configuration.
- Ensure caching is sane. A Cache-Control max-age of one day is reasonable; LLMs do not need second-by-second freshness.
- If a specific tool needs a generated context bundle, publish it at the location that tool documents.
- Confirm robots.txt does not disallow the path. Block /admin, not /llms.txt.
Once live, a quick curl test confirms accessibility: curl -i https://yourdomain.com/llms.txt. You should see a 200 response, plain-text content type, and your Markdown in the body. If a CDN sits in front of your origin, do a hard cache purge on the file path after each update.
Common mistakes to avoid
Most broken llms.txt files share the same handful of issues. Avoid these and you are ahead of many implementations.
- Hosting at the wrong scope. Use /llms.txt for the whole site, or a subpath file such as /docs/llms.txt for that section. A subpath file describes the URLs beneath its path.
- Serving as HTML instead of plain text. If your CMS wraps the file in template HTML, AI parsers choke. Serve raw.
- Dumping the entire sitemap. Five thousand links in llms.txt is not curation, it is noise.
- Unclear summary or links. The blockquote and link descriptions are optional, but when you include them they should be concise and accurate.
- Using H1 inside sections. Only one H1 in the entire file. Sections are H2.
- Including JavaScript-only pages. If the page is empty without JS, the LLM gets nothing.
- Treating Optional as a special instruction. In v2, the heading is a convention for grouping secondary links an agent may skip when it needs a shorter context.
- Letting it go stale. Treat llms.txt like a sitemap: review quarterly, refresh after major site changes.
- Blocking it in robots.txt. If your robots.txt disallows /, you will accidentally block AI agents from reading the very file you wrote for them.
Does llms.txt actually affect AI search visibility today?
Here is the honest answer most other guides will not give you: the proposal is new, adoption by the major AI engines is uneven, and OpenAI has not confirmed llms.txt as a ChatGPT search ranking signal, and Google explicitly says Search ignores it. What we do know:
- The format is implemented by some documentation platforms and developer tools.
- Google. Its guide Optimizing your website for generative AI features on Google Search (last updated July 10, 2026) puts llms.txt files first in its list of things you can ignore: you don't need special AI text files or Markdown to appear in Google Search, its generative AI features included, "as Google Search itself doesn't use them." Keeping one for other services is fine, but it "will neither harm nor help your site's visibility or rankings in Google Search, as Google Search ignores them." That covers AI Overviews and AI Mode.
- OpenAI and Perplexity. Their crawler documentation mentions llms.txt only as the index of their own developer docs. Neither says that its crawlers or assistants read the file on other sites to decide what to cite.
- Anthropic. Its help article on how its crawlers work does not mention llms.txt.
- A specific agent or documentation tool may use llms.txt when its own documentation says so; do not assume every agent fetches it.
The case for shipping one anyway is straightforward. For documentation, APIs, and SaaS products, it is a cheap Markdown index for the coding agents and tools that read docs on demand. Writing a thoughtful llms.txt takes a few hours. The file can be small and inexpensive to host, though it still needs maintenance and should not expose private or outdated URLs. Even if no major AI engine treats it as a ranking signal in 2026, the act of writing one forces you to curate your most important pages and articulate your site’s purpose in plain language. Those are both useful regardless.
What you should not do is treat llms.txt as a magic switch. Shipping the file will not catapult you to the top of ChatGPT answers next week. AI visibility comes from accessible, useful content and authoritative mentions across the web. Treat llms.txt as an optional experiment, not a confirmed ranking signal. The folks who win in AI search treat the whole stack as a system. For a deeper look at what actually moves rankings inside AI, our piece on how ChatGPT searches work covers the retrieval and ranking flow inside the most-used AI assistant.
How to track whether AI uses your content
You can ship the perfect llms.txt and still have no idea whether it changed anything. The only way to know is to measure: are AI models mentioning your brand more often, citing your URLs more often, and showing up in answers to the prompts your customers actually ask?
This is exactly the problem LLM Pulse solves. LLM Pulse runs your strategic prompts across ChatGPT, Perplexity, Gemini, Google AI Mode, and Google AI Overviews, tracks brand visibility and citation frequency for you and your competitors, and surfaces share of voice across those models; you can add others, such as Claude and Copilot, as paid add-ons. Compare citation counts and mention rates for the same prompts before and after you publish the file, but do not attribute a change to llms.txt alone: other content changes and model variation can affect the results.
For a practical walk-through of citation monitoring, see our guide on how to monitor citations and sources in AI answers, and the companion piece on how to track brand mentions in LLMs. The measurement layer is what turns llms.txt from a “we shipped it” checkbox into an actual GEO program.
The same measurement principle applies whether you are running an in-house team or a GEO agency. Without instrumentation, every optimization (llms.txt included) is theoretical. With it, you can see what changed, defend budget, and prioritize the work that actually moves AI visibility.
Summary
llms.txt is a simple, low-cost file that gives agents and AI tools a curated map of your site in Markdown. The proposal, published by Jeremy Howard in 2024 and updated to v2 in August 2026, is intentionally minimal: one required H1, then an optional blockquote summary, context, H2 sections with linked resources, and a conventional Optional section for less critical links. The proposal points to FastHTML as its example, documentation platforms such as Mintlify generate the file, and OpenAI, Anthropic, Google, and Perplexity publish one for their own developer docs. Generators can produce a first draft in minutes, but the best implementations are still hand-curated.
By Google's own account, the file makes no difference to Google Search, AI Overviews and AI Mode included, and OpenAI, Anthropic, and Perplexity have not documented using it on third-party sites. The format appears on more documentation sites, but it still needs maintenance and should not expose private or stale URLs. Publish it only if the upkeep fits your workflow, and pair it with proven crawlability and content work.
What you should not skip is the measurement layer. If you cannot see whether AI is citing your content, you cannot tell whether anything changed after you published llms.txt. LLM Pulse tracks brand visibility and citations across ChatGPT, Perplexity, Gemini, Google AI Mode, and Google AI Overviews, gives you visibility scores over time and share of voice against your competitors, and starts at €49 per month. For a wider look at the tool landscape, see our breakdown of the best AI visibility tools in 2026.
Frequently asked questions
No. None of the major AI engines has confirmed that it is required for ranking or crawling, and Google says Google Search ignores it. It is useful for documentation sites, APIs, and SaaS products, because coding agents and other tools that read docs on demand follow it. For a company site it is a cheap exercise (a few hours of picking pages) that is worth doing if someone will keep it current.
Usually at /llms.txt on the relevant domain. The proposal also permits a subpath-specific file. Serve it as readable Markdown text with UTF-8 encoding. Any larger context bundle is tool-specific, not a standard llms-full.txt companion.
No. robots.txt sets crawl permissions (which user-agents can access which paths). llms.txt is a curated content index for AI consumption. The two files serve different purposes and can sit side by side. Make sure your robots.txt does not accidentally disallow /llms.txt.
Google may discover and crawl llms.txt like other text files, but says Search ignores it for visibility and rankings. Google-Extended is a product-control token, not a separate HTTP crawler.
The proposal sets no required link count or file-size limit. Include enough canonical resources to orient a compatible tool, but keep the list curated and maintainable rather than copying the entire sitemap.
There is no public evidence that it does. OpenAI's crawler documentation mentions llms.txt only as the index of its own developer docs, and it does not say that its crawlers or ChatGPT read the file on other sites to decide what to cite. llms.txt can help when an agent or coding tool reads your documentation on demand, or when a developer points a model at your URL directly. To see whether your citations change, track the same prompts before and after you publish the file, and do not credit it with a change you cannot isolate.
No. The llms.txt proposal does not define an official llms-full.txt companion. Some generators create context bundles under that or similar names, but their format and discovery rules are tool-specific. Publish one only when a tool you use documents it.
Quarterly review is a reasonable cadence for most sites. Update immediately when you ship a major new product area, retire a page that is listed, change pricing structures, or restructure your docs. If your CMS or docs platform auto-generates the file, it stays in sync automatically. If you maintain it manually, set a recurring calendar reminder so it does not drift.
No. llms.txt is not a permissions file. It is an index. If you want to control specific uses, follow each provider’s documented crawler roles: GPTBot controls OpenAI training, OAI-SearchBot controls ChatGPT search, Google-Extended controls some non-Search Google uses, Googlebot controls Google Search AI features, and PerplexityBot supports Perplexity search. Perplexity documents that its user-triggered Perplexity-User fetcher generally ignores robots.txt. Publishing an llms.txt does not grant or deny anything by itself.
Discover your brand's visibility in AI search effortlessly