What is an llms.txt file?
An llms.txt file is a Markdown page at the root of a website that lists its most useful pages for language models. It was proposed at llmstxt.org. Think of it as a short reading list. A sitemap lists everything, while llms.txt lists what matters.
What does a good llms.txt look like?
# Example Store
> Handmade leather bags, shipped worldwide from Porto.
## Products
- [Work bags](https://www.example.com/work): Laptop bags and briefcases
## Help
- [Returns](https://www.example.com/returns): 30 day return policy
Keep descriptions plain. Ten good links beat two hundred, because the point is to choose.
How is llms.txt different from robots.txt and sitemap.xml?
| File | Who it's for | What it does |
|---|---|---|
| robots.txt | Crawlers | Says which paths they may fetch |
| sitemap.xml | Search engines | Lists every page you want indexed |
| llms.txt | AI tools that choose to read it | Points to your most useful pages |
None of them replaces another. If you need to control access, use the robots.txt generator. An llms.txt file can't block anyone.
Should you bother with one?
Publish one if you run documentation, an API or a product people ask coding assistants about. It takes a few minutes. Don't expect rankings from it, since Google says it has no effect on Search. If time is short, check AI crawler access and structured data first.
Where do you upload the file?
Put it at /llms.txt on your main domain and serve it as plain text. Open the address in a browser to confirm you see Markdown and not an error page. WordPress users can upload it to the same folder as wp-config.php.