Imagine walking into a huge library where the reception desk hands you a single index card: “History is on floor 2, repair manuals are on floor 3, and the five books most visitors ask for are right here.”
That index card is llms.txt. It is a plain Markdown file placed at https://yoursite.com/llms.txt that summarizes what your website is about and links to your most important pages with one-line descriptions—written so an AI assistant can understand your site without scraping fifty navigation menus, cookie banners, and footers.
robots.txt vs. sitemap.xml vs. llms.txt
Website owners already juggle two special root files. Adding a third makes sense once you see that each one answers a completely different question:
| File | URL | Plain-English job | Who reads it |
|---|---|---|---|
robots.txt | /robots.txt | The bouncer: says which folders bots are allowed or forbidden to visit | Search crawlers and AI bots |
sitemap.xml | /sitemap.xml | The full inventory: an XML list of every page URL and when it changed | Google, Bing, and search indexers |
llms.txt | /llms.txt | The curated map: a short Markdown summary of your site and best pages | AI assistants, coding agents, and doc fetchers |
They do not replace each other. A healthy website usually keeps all three in sync.
Why AI tools like a plain text map
Webpages are built for human eyes, which means a single article often arrives wrapped in navigation bars, sidebars, pop-ups, SVG icons, and tracking scripts. When an AI assistant reads a site, all that extra HTML eats up its context window—its limited working memory for a single reply.
A clean llms.txt solves two problems at once:
- Fast orientation: In one small request, an assistant learns who you are, what your site covers, and which URLs actually matter.
- Less noise: Instead of guessing whether
/about-us-2or/pricing-oldis current, the model gets your chosen links with accurate one-line descriptions.
The honest reality check: do you actually need one?
Let’s be straight about what llms.txt does and does not do:
- What it helps with: Developer tools (like Cursor, Claude Code, and documentation assistants), AI research tools that inspect a domain directly, and anyone pasting your site into an AI workflow. It is also a great forcing function to see if your own site structure makes sense.
- What it will NOT do: It will not magically push a weak website to the top of ChatGPT or Google. Adoption across big consumer AI engines is still evolving and uneven.
Because writing one takes five minutes—and maintaining it takes zero minutes if your static site generator builds it automatically—the upside is easy to justify as long as you keep your expectations grounded (see AI SEO in plain English for the bigger picture).
A copy-paste llms.txt template
The llmstxt.org proposal uses simple Markdown: one # title, one > summary line, optional context paragraphs, and ## sections containing bulleted links.
Save this as llms.txt in your website’s public root folder (so it loads at https://yourdomain.com/llms.txt):
# Your Site or Business Name
> One clear sentence explaining what your site does and who it helps.
A short paragraph with any key facts an assistant should get right:
your main products or topics, where you operate, and how to find your best guides.
## Start Here
- [About](https://yourdomain.com/about/): Who runs this site and what we do.
- [Services or Products](https://yourdomain.com/services/): Clear overview and pricing.
- [Contact](https://yourdomain.com/contact/): How to reach us.
## Key Guides
- [How to choose the right plan](https://yourdomain.com/guides/choosing-a-plan/): Side-by-side comparison for beginners and teams.
- [Troubleshooting common errors](https://yourdomain.com/guides/troubleshooting/): Fixes for the 10 most common setup issues.
## Optional
- [Full archive](https://yourdomain.com/blog/): All older posts and announcements.
That ## Optional heading at the bottom has a specific meaning in the spec: it tells tools, “If you are short on space, you can skip this section without missing the core story.”
How to keep it from going stale
The fastest way to ruin an llms.txt file is writing it once in January and forgetting it while you publish thirty new pages.
- If you run a small brochure site (5–15 pages): Writing
llms.txtby hand is totally fine—just update it whenever you add or rename a main page. - If you run a blog or docs site: Let your site generator build
llms.txtautomatically on every deploy, the same way it builds your RSS feed or sitemap.
On this site (404human.dev), Zola treats templates/llms.txt as a built-in feed template. Every time a new post or project log is published, /llms.txt updates itself with the title, permalink, and description—so it can never drift out of date. You can inspect this site’s live file directly at 404human.dev/llms.txt.
Four quick rules for a good llms.txt
- Keep it concise: Aim for a clean directory of your best pages, not a 5,000-line dump of every tag and pagination URL.
- Write factual descriptions: “Pricing for our 3 plans ($0, $19, $49/month)” beats “Revolutionary solutions tailored to your journey.”
- Use full canonical URLs: Include
https://yourdomain.com/...consistently so links work even if someone downloads the file locally. - Never put private or internal links in it:
llms.txtis completely public, just likerobots.txt.
Frequently asked questions
Where should I put my llms.txt file?
Put it at the root of your website so it loads at https://yourdomain.com/llms.txt, right next to robots.txt and sitemap.xml. It should be served as plain UTF-8 text (Markdown).
Does llms.txt replace robots.txt or sitemap.xml?
No. robots.txt sets crawler access rules, sitemap.xml lists every URL for search engines, and llms.txt gives AI tools a curated, human-readable Markdown map of your most useful pages.
Do major AI search engines guarantee they read llms.txt?
No. Adoption is still uneven across consumer chatbots, though developer AI tools, coding agents, and documentation fetchers increasingly check for it. Treat it as a low-effort, helpful signpost rather than a magic ranking switch.