llms.txt not valid
ai/llms-txt-invalid
/llms.txt is not Markdown with a # title, or links to pages the crawl found not answering 200. AI tools that read it get a broken map of the website.
- Severity
- Low
- Area
- AI readiness
- Checked
- Weekly, and with Check now
- Health score
- Weight 1
How Talewright checks it
The weekly crawl reads /llms.txt and checks that it is Markdown with a # title. A link in it to a page the crawl also reached is broken when that page does not answer 200; pages listed only in /llms.txt are not requested.
How to fix it
Make /llms.txt Markdown with a # title and links that answer 200.
The problem
The website serves /llms.txt, but a tool that reads it cannot use it as the proposal intends. Either the file has no line that starts with a # title, it is served as an HTML page, or some of its links lead to pages that do not answer 200, such as a 404 or a server error.
Common causes are a file that was generated once and never updated after pages moved, a hand-written file that starts with plain prose instead of a heading, and a route that answers /llms.txt with an HTML page.
Why it matters
The llms.txt proposal exists to give AI agents a reliable map of a website. Its format is small: a Markdown H1 with the website’s name is the only required part, followed by a > summary, an optional Base URL: line, optional detail and ## sections that list Markdown links with notes. A tool that expects that structure may not recognize a file without the title. A link that fails sends the tool to a dead end, which is worse than leaving the page out.
Keep the stakes in proportion. Google’s guide to its generative AI features says llms.txt and similar AI files are not needed, Google Search does not use them, and they have no effect on Search visibility either way. The value of a correct file lies with the other tools that read it. If keeping it accurate is more work than it is worth, removing it is a reasonable choice; the website then gets the low llms.txt missing finding instead. See the llms.txt guide.
Fixing it
- Open
/llms.txtand confirm the first line is a#heading with the website’s name. - Confirm the file is served as plain text, not wrapped in the website’s HTML layout.
- Request every link in it. Remove or fix each one that fails, and replace links that redirect with their final address so tools need no extra request.
- Keep links absolute, so they work wherever the file is read.
- If the file is generated, fix the generator so it lists only pages that exist.
Failing, no title and a link to a page that was deleted:
Example Desks sells handmade oak desks.
- [Desks](https://example.com/shop/desks/)
- [About](https://example.com/about-us/)
Passing:
# Example Desks
> Handmade oak desks, built to order.
## Pages
- [Desks](https://example.com/desks/): every model with sizes and prices
- [About](https://example.com/about/): who builds the desks
A hand-written file usually sits in the website’s public or static folder. A generated one comes from a build script, a framework integration or a CMS plugin; the fix then belongs in its configuration or in the list of pages it reads.
Ask your agent
Fix this website's /llms.txt so it follows the proposal at llmstxt.org. Find where it is produced (a static file, a build script or a plugin). The first line must be a # heading with the website's name, followed by an optional > summary and ## sections of Markdown links. For every link, request it and use the final URL that answers 200; drop links to pages that no longer exist. If the file is generated, fix the generator rather than the output. Build the website, fetch /llms.txt, and list each link with its status code.
Common mistakes
- Linking to pages that were moved or deleted. Update the file whenever pages move, or generate it from the live page list.
- Serving the file through the HTML layout. The response must be the Markdown itself.
- Relative links without a base. The proposal resolves relative links against a
Base URL:line, or against the file’s own address. Talewright resolves them against the file’s address only, and a tool reading the file out of context may resolve neither. Absolute links work everywhere.
What the check ignores
The file does not count toward the AI discoverability score. The check reads /llms.txt at the root only, not files under subpaths.
Related
- Guide: llms.txt: what it is and whether you need it
- llms.txt missing
ai/llms-txt-missing - Broken internal links
links/broken-internal - Redirect to a broken page
redirects/broken
Sources
- The /llms.txt file checked 2026-11-30
- Optimizing your website for generative AI features on Google Search checked 2026-11-26
Updated 2026-11-30. Rule version 1.