An llms.txt file is only useful if a tool can find it. The file itself is simple: a short Markdown document that names your business, sums up what you sell, and lists your most important pages with a short note each. Where you put it decides what it covers, and whether a tool that looks for it will find it at all. Put it in the wrong place and it is a map nobody opens.
The proposal at llmstxt.org gives the rule in one sentence. The file can be placed at the site root, or at any path within it, covering the pages under that path. That sentence carries the whole guide. The root file covers the whole site. A file at a subpath covers only the pages under that path. Where more than one file applies, a tool should use the most specific one. Start at the root, add subpath files only when you have a reason, and never let two files disagree.
Platform screens change. If a menu name here does not match what you see, check the vendor docs linked in Sources for the current path. Some platforms generate the file for you. The proposal lists tools that generate one automatically, including Wix, which generates an llms.txt file for every Wix site. If your platform generates it, your job is to check what it generated, not to build a second file by hand.
What this guide covers
This guide covers the full job in order. First, you decide what the file should cover, and you put one file at the root. Second, you decide whether any part of your site needs its own file at a subpath, and you keep those files narrow. Third, you make the file findable, with the link relations the proposal recommends. Fourth, you confirm the file loads at the address you published it, and you check that the links inside it work. Fifth, you keep the file current, and you check it after every catalog change.
Who does each step
Marketer work is deciding what the file should cover, writing the short summary and the notes, and checking the live file in a browser. Developer work is publishing the file at the right address, adding the link relations, and generating the file from the catalog so it stays current.
Step 1: put one file at the root, covering the whole site
Start with one file at your domain followed by /llms.txt. That is the conventional place, and it is the place a tool will look first. The root file covers the whole site, so it should list the pages that matter most across the whole business: your best selling products, the categories that organize them, the guides that answer real questions, and the policies that govern a purchase, shipping, returns, and payment.
Write the file in the order the proposal defines. The first line is your business name as an H1, which is the only required section. The next lines are a blockquote, one or two sentences that say what you sell and who it is for. After that, each H2 section groups a set of links, each item a Markdown link with an optional note after a colon. Keep the file short. The proposal says the file itself stays small enough to fit in context, with the detail living behind the links, fetched only when needed.
Publish it and open the address in a browser. It should load as plain text, not as an error page and not as a download. If it shows an error, the file is not published there, whatever your dashboard says. Check the spelling, all lower case, llms.txt, and check that your platform has not added a second file at a different address that disagrees with it.
Step 2: add a subpath file only where a section needs its own map
A subpath file covers only the pages under its path. A file at your domain followed by /docs/llms.txt covers everything in /docs/, and nothing outside it. Where more than one file applies, the proposal says a tool should use the most specific one. That rule is what makes subpath files safe, and it is also what makes them easy to get wrong.
Add a subpath file only when a section of your site is large enough, or different enough, to need its own map. A documentation section with dozens of pages, a wholesale section with its own catalog, or a support section with its own guides are the usual cases. A shop with one catalog and a handful of guides does not need one. Do not add a subpath file because a checklist told you to. Add it because the root file alone leaves out pages a shopper might ask about in that section.
When you do add one, keep it narrow and keep it consistent. It should list the pages under its path, in the same order and with the same facts as the root file wherever they overlap. A subpath file that states a different price for the same product leaves a reader with no way to know which list is right. If a product moves to a different section, move it in both files on the same day.
Step 3: make the file findable with link relations
A file at the root is easy to find by address, but a tool that lands on a single page may never look for it. The proposal recommends two link relations to help a tool find these files. A rel alternate link with type text markdown points to the Markdown version of a page, and a rel describedby link points to the llms.txt file that covers it. Those links can be provided as HTML link elements, or as an HTTP Link response header. The header form also works for non HTML resources, such as the Markdown files themselves, and it can be added in web server or CDN configuration without modifying any pages.
That step is a developer step, and it is optional. No vendor publishes a promise that adding the links guarantees any engine will read the files. If your developer adds them, point the describedby link at the most specific llms.txt file for that page, the subpath file where one exists, the root file everywhere else.
Step 4: confirm the file loads, and confirm the links inside it work
Open the file in a browser and read it like a customer would. Confirm it loads as plain text. Confirm the H1 is your business name. Confirm the summary says what you sell and who it is for, in plain words. Then click every link in the file, or have a developer check them with a link checker. A link that returns an error, or that points at a page you deleted, breaks the chain the file exists to provide.
Check the subpath files the same way, one address at a time. Open each one, confirm it loads, and confirm it lists only the pages under its path. Then open a page inside that section and confirm the describedby link, if you added one, points at the subpath file and not at the root file. If your platform generates the file, check the generated file the same way, because a generated file can list the wrong pages just as easily as a hand written one.
Step 5: keep the file current, and check it after every catalog change
A file in the right place goes stale in the same way a catalog does. A product added to the store should appear in the file. A product removed from the store should leave it. A product whose price changed should show the new price, or no price, with the link doing the work instead. A page that moved to a new address should appear at the new address in every file that lists it, root and subpath alike.
If your files are generated from the catalog, regeneration should happen on its own, but confirm it did. After any catalog change, open the root file and any subpath file that covers the changed product, confirm the listing and the note are right, and open the product page and confirm the price and stock match.
Be clear about what llms-full.txt is before you add one. The proposal at llmstxt.org defines llms.txt only and does not mention llms-full.txt. The full file is a companion convention from documentation platforms, not part of the proposal, not a vendor requirement, and not documented as read by any engine. If you publish one, put it at your domain followed by /llms-full.txt, next to the root index, and keep it built from the same pages in the same order.
Machine-readable version you can copy
This section gives you two copy-ready blocks, built only from the format verified in the llms.txt proposal at llmstxt.org. Replace the example values with your own facts, and keep every fact identical to the live pages.
First, a short root llms.txt file for a plant nursery.
# Fern Hollow Nursery
> Family run plant nursery selling indoor plants, outdoor shrubs, and planting guides for home gardeners.
## Products
- [Indoor monstera](https://www.example.com/products/indoor-monstera): Indoor monstera in a nursery pot, for bright rooms.
- [Garden shrubs](https://www.example.com/products/garden-shrubs): Outdoor shrubs for borders and hedges.
## Guides
- [How to repot a plant](https://www.example.com/guides/how-to-repot-a-plant): Repotting steps, soil, and pot size.
## Policies
- [Shipping and returns](https://www.example.com/policies/shipping-returns): Shipping times and return terms.
Second, the Link header the proposal shows for pointing a tool at the Markdown version of a page and at the llms.txt file that covers it. Replace the example paths with your own, and confirm both addresses load before you publish the header.
Link: </docs/page.html.md>; rel="alternate"; type="text/markdown", </docs/llms.txt>; rel="describedby"
Worked example: a plant nursery whose guides lived under a file nobody found
Take a small plant nursery with a shop and a guides section. The owner had an llms.txt file, and she assumed it was in the right place, because her developer had put it at the guides address, at her domain followed by /guides/llms.txt. It listed the guides, and nothing else. A tool that looked for the root file found nothing, and a tool that landed on a product page never learned the file existed, because no link on the page pointed at it.
She fixed the placement in one pass. She published a root file at her domain followed by /llms.txt, listing the best selling plants, the categories, the guides, and the policies. She kept the guides file where it was, but she narrowed it to the guides under that path, with the same facts as the root file wherever they overlapped. Her developer added a describedby link on the guide pages pointing at the guides file, and a describedby link on the product pages pointing at the root file. She opened both addresses in a browser and confirmed each one loaded as plain text, and she clicked every link in both files.
Frequently Asked Questions
Where should llms.txt live on my site?
At the root, at your domain followed by /llms.txt, covering the whole site. That is the conventional place, and it is the place a tool will look first. Add a file at a subpath only when a section of your site is large enough or different enough to need its own map.
Can I put llms.txt in a subfolder and skip the root file?
You can, but the file then covers only the pages under that path, and a tool that looks for the root file will find nothing. If a section needs its own file, keep it, and publish a root file as well, with the same facts wherever they overlap.
How does a tool find my llms.txt file?
By address, at the root or at a subpath, and by the link relations the proposal recommends: a rel alternate link pointing at the Markdown version of a page, and a rel describedby link pointing to the llms.txt file that covers it. Those links can be HTML link elements or an HTTP Link response header. No vendor promises any engine will read the file.
What is llms-full.txt, and where does it go?
It is a companion file that holds fuller text of your key pages in one document. It is not part of the proposal, which defines llms.txt only and does not mention llms-full.txt. It is a convention from documentation platforms, not a vendor requirement, and no engine is documented as reading it. If you publish one, put it at your domain followed by /llms-full.txt, next to the root index.
Verified Sources & Technical Documentation
- llms.txt proposal, The llms.txt file Specific https://llmstxt.org/
- Google Search Central, Optimizing your website for generative AI features on Google Search Specific https://developers.google.com/search/docs/fundamentals/ai-optimization-guide
- Google Search Central, AI features and your website Specific https://developers.google.com/search/docs/appearance/ai-features
- Schema.org, Product type General Docs https://schema.org/Product
links marked specific point to the page that supports the claim in this guide. Links marked general docs point to the vendor's general docs section for that topic, not to a page that proves every step. Check the vendor docs for the current path before relying on a menu name or click path in this guide.