llms.txt is a proposed Markdown file that gives AI agents a short introduction to a website and links to useful content. It is commonly published at /llms.txt. It is a navigation aid for compatible tools, not a crawler permission file, a replacement for a sitemap or a guarantee of visibility in ChatGPT.
This guide explains the format, provides an example, and shows how to check an implementation. If your priority is more search impressions and clicks, first make sure your important pages are accessible, useful and connected through internal links.

What is llms.txt used for?
The idea is to give an agent a concise starting point rather than requiring it to interpret an entire website. A documentation team might point to its installation guide, API reference and troubleshooting pages. A product business might include factual product information and support resources.
Jeremy Howard introduced the proposal in 2024. The current llms.txt proposal describes a Markdown index, including versions placed under a section such as /docs/llms.txt. Its usefulness depends on whether the consuming tool discovers and uses it.
llms.txt vs robots.txt vs sitemap.xml
Publishing an llms.txt file does not replace crawlable links that search crawlers can actually follow.
| File | Main purpose | What it does not do |
|---|---|---|
| llms.txt | Offer a curated introduction and links for compatible agents. | Enforce access restrictions or guarantee citations. |
| robots.txt | Communicate crawling rules to compliant crawlers. | Protect confidential data or reliably remove a URL from search by itself. |
| XML sitemap | List URLs to help search engines discover content. | Guarantee indexing or replace navigable internal links. |
Do not expose private information in any public file. Authentication and access controls protect restricted content. Also, a link inside llms.txt does not repair the normal user journey to an orphan page.
A practical llms.txt example
The following is an illustrative file for a fictional software product. Replace every placeholder with your own facts and working URLs. Do not invent Markdown URLs by adding .md to pages that do not serve that format.
# Example Analytics > Example Analytics provides product analytics documentation > for teams implementing its service. The documentation covers installation, events and troubleshooting. ## Documentation - [Quickstart](https://example.com/docs/quickstart.md): Installation steps. - [API reference](https://example.com/docs/api.md): Supported endpoints. - [Troubleshooting](https://example.com/docs/troubleshooting.md): Common errors. ## Product information - [Plans](https://example.com/plans.md): Current plan limits. - [Support](https://example.com/support.md): Support options. Make the file useful to someone unfamiliar with the site. Keep its introduction factual, use descriptive link names and select resources that answer real questions. Prefer clean, readable destinations supported by your publishing system.
An llms.txt example for a service business
This fictional example uses ordinary public page URLs. Replace every placeholder with a real page; adding .md does not create a Markdown version.
# Example Consulting > Example Consulting provides project implementation services. ## Services - [Service scope](https://example.com/services/): Who the service covers. - [Process](https://example.com/process/): Assessment and delivery steps. ## Company information - [Team](https://example.com/team/): Verified experience and responsibilities. - [Contact](https://example.com/contact/): How to discuss a project. Does llms.txt improve SEO or AI visibility?
Do not treat publishing the file as proof of a ranking or citation benefit. Google’s AI search guidance says no special AI text file is required for AI Overviews or AI Mode. Existing SEO work remains relevant.
For another tool, check its own documentation and your evidence. A request to the file proves that it was fetched; it does not prove the content influenced an answer, produced a recommendation or sent a visitor. A validation score is a technical observation, not a business result.
Our AEO vs SEO guide explains how answer-focused content fits into a search strategy. Keep the effort spent on llms.txt proportional to its demonstrated use.
What do LLMs actually care about? This short video explains why clear, contextual mentions across the web matter more to AI platforms than Google-style authority scores.
llm.txt or llms.txt: which filename should you use?
The proposal uses llms.txt, with an “s”. Search spellings such as “llm.txt” or “llms txt” are not interchangeable file paths. Check the exact URL expected by the consuming tool.
How to create and check an llms.txt file
1. Choose a clear scope
Decide whether the file covers the whole site or a documentation section. Include the pages that help a reader complete the relevant tasks. Avoid dumping every campaign URL, tag archive and outdated article into the index.
2. Draft the Markdown
Start with the site or project name, add a short summary and group useful links under clear section headings. Keep descriptions accurate. A generator can provide a starting point, but someone still needs to review the output.
3. Publish one authoritative version
Use a supported generator or serve a plain-text file through your hosting setup. For a site-wide file, the conventional location is https://yourdomain.com/llms.txt. Avoid competing static and generated versions at the same URL.
4. Verify the response and destinations
- The URL returns HTTP 200 and the intended text, rather than a login screen or a page-not-found template.
- The response contains Markdown, without the website’s navigation and HTML layout.
- Every destination resolves to the intended public content.
- Descriptions match current product facts and documentation.
- No private, staging or obsolete URLs have been included.
5. Set an owner and maintenance routine
Update the file when important documentation or product URLs change. Include it in release checks if agents or integrations rely on it. A stale generated file can remain technically valid while directing users to the wrong information.
How to add llms.txt on WordPress
Check whether your installed SEO or documentation plugin offers a supported generator. If it does, review the selected pages and resulting output. Availability and menu locations depend on the plugin version and plan, so follow that vendor’s current documentation.
A manually hosted file is another option when your host supports it. Use the normal deployment process and check that WordPress, the web server and the CDN all serve the expected response. Do not change robots.txt rules merely to advertise llms.txt; the two files have different purposes.
After publishing, open the public URL and inspect the actual file. A successful settings toggle does not demonstrate that the public response works.
What is llms-full.txt?
Some documentation systems also publish a larger file containing the text of multiple pages. This can be convenient for tools that explicitly support it, but it brings maintenance and context-size trade-offs. Confirm what the consuming tool expects rather than assuming that a larger file gives better visibility.
Check the file, then check its actual use
| Observed problem | What to check | Practical correction |
|---|---|---|
| Website layout appears instead of text | Response body and routing. | Serve the intended Markdown resource at the file URL. |
| The URL redirects to the homepage | HTTP response and redirect destination. | Correct the route or hosting configuration. |
| Links lead to retired pages | Each destination and its current purpose. | Update the index to useful live URLs. |
| Two generators disagree | Which publishing method controls the response. | Keep one authoritative source and an owner. |
| The file was requested but no visits appear | Server logs versus website referrals. | Report the fetch separately; do not count it as a human visit. |
For an assistant integration, test whether it reaches the right resources. For marketing, keep identifiable AI referrals and sampled AI visibility separate from file requests.
How to test an llms.txt file without overstating its value
Publishing an llms.txt file is not evidence that an AI answer engine has read or used it. Treat it as an optional machine-readable resource and validate the important pages independently.
- Confirm the file returns HTTP 200 and contains accurate absolute links to canonical, public resources.
- Check that linked pages load without authentication and have useful text, titles and internal links.
- Review server logs where available; distinguish a fetch from actual use in a generated response.
- Keep a stable set of buyer questions if you monitor AI visibility, and do not attribute changes to this file without a credible comparison.
Start with the internal discovery audit and visibility measurement options before investing in a file alone.
What should you prioritise before llms.txt?
- Resolve access problems affecting important pages.
- Answer the actual questions people ask about your service or product.
- Provide supporting facts, examples and clear next steps.
- Add relevant incoming and outgoing links so pages belong in the site structure.
- Review impressions, clicks and qualified enquiries after implementation.
Use our GEO audit checklist to put file configuration alongside the content and measurement work, instead of letting it dominate the project.
Is technical access blocking AI from your site? Ahrefs’ lesson walks through six technical checks, including robots.txt, GPTBot and llms.txt.
Frequently asked questions
Is llms.txt mandatory?
No. It is a proposed convention. A particular application may choose to use it, but publishing a website does not require it.
Does llms.txt block AI training?
No. It is not an access-control or training opt-out mechanism. Review each provider’s documented crawler controls separately.
Does ChatGPT automatically read every llms.txt file?
Do not assume that. Whether a file is requested depends on the tool and workflow. Look for documented support or observed requests for the specific use you are testing.
Does a valid file guarantee an AI citation?
No. Valid formatting shows the file meets a technical check. Citation selection is a separate outcome.
Should a service business spend heavily on llms.txt?
Usually the first question is whether its main pages answer buyers clearly and can be found. Treat a small file experiment as a limited task unless a documented integration makes it important.
Need help separating technical tasks from visibility priorities? Discuss your website through our guide to working with an AEO agency.


