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.
| File | Primary job | Who reads it | What it cannot do |
|---|---|---|---|
robots.txt | Allow or disallow crawlers | Search and AI crawlers | Guarantee indexing or improve content quality |
sitemap.xml | List canonical URLs for discovery | Search engines and some AI crawlers | Control presentation or summarize pages |
llms.txt | Recommend a curated set of useful pages | AI systems that choose to support it | Enforce 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.
- Define the canonical URL list in code or a config file.
- Render the Markdown with a stable ordering and a short description for each entry.
- Return
Content-Type: text/plain; charset=UTF-8with a sensible cache policy. - Add a test that checks the response status, content type, and that every link returns 200.
- 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.txtreturns 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.
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.