Skip to content
AI Search 6 min read

llms.txt: What It Does, What It Doesn’t, and How to Ship One

A clear-eyed guide to llms.txt: the proposed AI content map, how it differs from robots.txt and sitemaps, a copy-ready template, and when it is worth publishing.

llms.txt: What It Does, What It Doesn’t, and How to Ship One
Key takeaways
  • llms.txt is a proposed convention for guiding AI systems, not an official ranking factor or access-control tool.
  • Use it to map canonical, high-value pages; keep robots.txt, XML sitemaps, and crawlable HTML as the foundation.
  • Publish it as a stable text file, validate every link, and update it when the content map changes.

llms.txt is a proposed convention, not a Google ranking factor. It gives AI systems a short, markdown-style map of the pages you consider most useful: canonical URLs, one-line descriptions, and a clean hierarchy. It can be a sensible piece of AI-search housekeeping, but it cannot fix blocked crawlers, thin content, or a site that machines cannot render.

This guide explains what the file is for, how it differs from robots.txt and XML sitemaps, a template you can adapt, and the cases where publishing one is not worth the maintenance.

What llms.txt is

llms.txt is a plain-text file placed at the root of a site, usually at https://example.com/llms.txt. It uses Markdown conventions: an H1 with the site or product name, a short blockquote summary, then sections containing links and brief descriptions.

The proposal is aimed at helping large language models and AI answer engines find the most useful, canonical content without crawling an entire site blindly. It is not a standard ratified by Google, and major AI providers handle it differently. Treat it as an emerging discovery aid, not a contract.

There is also a related idea called llms-full.txt, which contains the full text of selected pages. That can be useful for documentation sites or research archives, but it also creates duplication, freshness, and maintenance problems. Most marketing sites should start with the short index, not a full-text dump.

llms.txt vs robots.txt vs XML sitemap

These files solve different problems. Mixing them up leads to bad decisions.

FilePrimary jobWho reads itWhat it cannot do
robots.txtAllow or disallow crawlersSearch and AI crawlersGuarantee indexing or improve content quality
sitemap.xmlList canonical URLs for discoverySearch engines and some AI crawlersControl presentation or summarize pages
llms.txtRecommend a curated set of useful pagesAI systems that choose to support itEnforce access or force citations

If a page is blocked in robots.txt, adding it to llms.txt does not grant access. If a URL is missing from your XML sitemap, llms.txt is not a substitute for fixing discovery. And if the page is not useful or not crawlable, no file format will make it citable.

A copy-ready template

Keep the structure simple and the descriptions specific. Avoid marketing adjectives that do not help a machine or a human decide whether the page is relevant.

# TheLinksMaster

> Practical SEO guides, free tools, and audit workflows for technical SEO, content, and AI search visibility.

## Start here
- [AI search visibility guide](https://www.thelinksmaster.com/blog/ai-search-visibility-guide): How AI assistants choose, quote, and cite sources.
- [Google AI Overviews](https://www.thelinksmaster.com/blog/google-ai-overviews-optimization): How to earn a citation in Google's AI answer layer.

## Technical SEO
- [Robots.txt guide](https://www.thelinksmaster.com/blog/robots-txt-guide): Crawler rules, allow/disallow syntax, and blocking mistakes.
- [XML sitemap guide](https://www.thelinksmaster.com/blog/xml-sitemap-guide): Sitemap creation, splitting, and coverage checks.

## Tools
- [Free SEO audit](https://www.thelinksmaster.com/seo-audit): Crawl a site and get a prioritized issue report.

Use absolute HTTPS URLs. Keep one link per line. Put the most important pages first. Do not list every tag archive, paginated listing, or utility page; the point is curation, not a second sitemap.

What to include and what to leave out

Include: pillar guides, product and pricing pages, documentation, comparison pages, original research, and the small set of pages you would want an AI assistant to read first about your business.

Leave out: duplicate parameter URLs, internal search results, staging links, gated content that returns a login wall, legal boilerplate, and thin archives. If a URL is not useful to a human who lands on it, it does not belong in the file.

Keep the list short enough to maintain. A 40–80 link map is usually more useful than a 5,000-link dump. If you need exhaustive discovery, that is what the sitemap is for.

How to ship it

For a static site, add llms.txt to the public root and deploy it like any other asset. For a Laravel or framework-driven site, generate it from a route or a console command so the content map stays in sync with the database.

  1. Define the canonical URL list in code or a config file.
  2. Render the Markdown with a stable ordering and a short description for each entry.
  3. Return Content-Type: text/plain; charset=UTF-8 with a sensible cache policy.
  4. Add a test that checks the response status, content type, and that every link returns 200.
  5. Regenerate when a pillar page is published, renamed, or removed.

If you already generate static SEO files, add llms.txt to the same command. The important part is not the technology; it is that the file does not become a stale list of broken links.

How to test it

Run a few checks after deployment:

  • curl -I https://example.com/llms.txt returns 200 and a text content type.
  • The file is not blocked by authentication, a CDN rule, or a bot challenge.
  • Every URL is absolute, uses HTTPS, and returns 200 without a redirect chain.
  • The descriptions match the current page titles and positioning.
  • The file is linked from your documentation or internal SEO runbook so someone owns it.

A simple broken-link check is enough. If a link 404s, remove it or fix the redirect. A stale link map is worse than no map because it sends both humans and machines to dead ends.

Common mistakes

Blocking AI crawlers and then publishing llms.txt. If the crawler is disallowed, the file does not override robots.txt. Decide whether you want AI access before adding the map.

Treating it as a citation guarantee. No file can force an AI system to quote a page. Citations depend on retrieval, relevance, evidence, and the model's answer process.

Duplicating the entire site. A giant llms.txt is hard to maintain and adds little signal. Curate the pages that matter.

Letting it drift. Renamed pages, changed positioning, and retired products all turn the file into misinformation. Add ownership and a regeneration step.

When to skip llms.txt

If you have a small site with a clean sitemap and no AI-specific distribution strategy, llms.txt is optional. If your platform blocks AI crawlers by policy, publishing a file they cannot read is theater. If you cannot maintain the link list, do not start.

The stronger investment is usually the page itself: a direct answer, evidence, clear authorship, and a crawlable technical setup. The AI search visibility guide covers those fundamentals, and the Google AI Overviews guide explains how passage selection works. Use llms.txt after the basics are solid, not instead of them.

Related reading: AI citation tracking and Answer engine optimization checklist.

Frequently asked questions

Does Google use llms.txt?

Google has not described llms.txt as a ranking or citation signal. It may still be useful for other AI systems or internal documentation, but do not expect it to change Google Search rankings.

Should llms.txt include every blog post?

No. Curate the canonical, high-value pages. Listing every post turns the file into a maintenance burden and dilutes the signal.

Can llms.txt replace my sitemap?

No. Sitemaps are for discovery across search engines. llms.txt is a curated AI-oriented map. Keep both if you use both.

Should I publish llms-full.txt?

Only if you have a documentation or research archive where full text is genuinely useful and you can keep it current. For most marketing sites, the short index is enough.

Share X LinkedIn Email
Want a quick SEO check on a page? Run the free SEO checker and get a scored report with prioritised fixes.
Free SEO checker

Reviewed by TheLinksMaster

SEO Editorial Team

Our editorial team tests every tool and guide on this site against real websites. We update content when search algorithms change so you always get current, practical SEO advice.

How we test and update our guides · Meet the editorial team

Start with these guides

AI Search Visibility: How to Get Your Pages Cited by AI Assistants Get cited by ChatGPT, Perplexity and AI Overviews: bot access, structured data,... Google AI Overviews: How to Earn a Citation (Not Just a Ranking) A practical guide to Google AI Overviews: why top rankings are only the entry ti...
Free DNS lookup Lookup the list of DNS records for a domain. Inspect A, CNAME, MX, TXT, and… Free WHOIS lookup Lookup ownership information for a domain. Review registrar, creation date… Free QR generator Generate a customizable QR code for a text, URL, or phone number. Create… Free User-Agent parser Parse a User-Agent into readable individual components. Identify browser, OS… Free URL parser Parse a URL into readable individual components. Break down scheme, host… Free Case converter Transform text to lowercase, uppercase, sentence, or capitalized case…
AI Content and SEO: How to Use AI Without Losing Trust A practical policy for AI-assisted content: where it helps, where it hurts, how... Gemini SEO: How Google Gemini Finds and Cites Sources A practical guide to Google Gemini visibility: how retrieval works, what makes a... AI Crawler Access: GPTBot, ClaudeBot, PerplexityBot, and Robots.txt A practical guide to AI crawler user agents, robots.txt rules, CDN bot protectio... ChatGPT and Perplexity SEO: How AI Citations Differ How ChatGPT and Perplexity find, cite, and describe sources, plus the content, e... Answer Engine Optimization: The 2026 Checklist A practical AEO checklist for pages that need to be understood, quoted, and cite...
← All guides