What an llms.txt file is for
llms.txt is a markdown file at the root of a website that tells AI tools what the site is and where its most useful pages are. Where robots.txt says what crawlers may fetch, llms.txt says what is worth reading. The idea is that a language model or an AI agent can read one short file and get an accurate picture of your product, instead of guessing from a homepage full of navigation, cookie banners and scripts.
Because the format is small, mistakes are easy to make and easy to miss. A file that starts with a paragraph instead of a title, uses relative links, or is quietly replaced by your 404 page still “exists”, but a tool that reads it gets less out of it. That is what this validator catches.
The llms.txt format, section by section
The proposal defines a short, fixed order. Only the first part is required.
1. An H1 title (required)
The first line is a level one heading with the name of your site, company or project: # Acme Analytics. It should be the only H1 in the file.
2. A blockquote summary (optional, recommended)
Right after the title, a blockquote with a short summary: > Acme is product analytics for B2B SaaS teams. This is the line most likely to be quoted back when an AI tool describes you, so write it the way you would want to be introduced: category, audience and what makes you different.
3. Free text (optional)
Paragraphs or lists with key facts: who the product is for, pricing model, where you operate, what you do not do. The proposal says this part should not contain headings.
4. H2 sections with link lists (optional)
Each H2 starts a section, and each section is a markdown list of links in this shape:
## Docs - [Getting started](https://acme.com/docs/start): install and first report - [API reference](https://acme.com/docs/api): endpoints and auth
The text after the colon is optional, but a few words about what the page contains helps a model decide whether to open it.
5. An “Optional” section (optional)
A section named ## Optional has a special meaning: its links can be skipped when a tool is short on context. Put secondary material there (changelog, older posts, legal pages) and keep it last.
What each check means
- Plain markdown, not HTML. The most common real-world failure. If your server returns an HTML page at
/llms.txt, usually a styled 404, there is no file for a tool to read. - Reasonable size. The file is meant to be a short index that fits easily in a model's context. We warn above 100 KB. That threshold is our own rule of thumb, not part of the proposal.
- Starts with an H1 title. Required by the proposal. A fail here usually means the file starts with a comment, a blank template line or a paragraph.
- Only one H1. Several H1s make it unclear which one is the title. Use H2s for sections.
- Blockquote summary. Optional, but we flag it when missing because it is the single most useful line.
- No headings before the first H2. The intro is meant to be plain text and lists.
- H2 sections with links. We count sections and warn on any section with no links.
- Link list format. List items inside sections should be
- [name](url)with optional notes. Plain bullet points are flagged. - Valid link URLs. Invalid URLs (for example
javascript:links or broken http URLs) fail. Relative URLs such as/pricingget a warning: the file is often read out of context, so fullhttps://URLs are safer. - No duplicate links. Each page only needs to appear once.
- “Optional” section last. Not strictly required, but it matches the intent of the section.
A valid example
# Acme Analytics > Acme is product analytics for B2B SaaS teams under 50 people. Acme tracks feature adoption and churn signals without engineering work. Plans are billed monthly. We serve customers in the US and EU. ## Product - [Features](https://acme.com/features): what Acme tracks and how - [Pricing](https://acme.com/pricing): plans and limits ## Docs - [Getting started](https://acme.com/docs/start): setup in 10 steps - [Integrations](https://acme.com/docs/integrations): supported tools ## Optional - [Changelog](https://acme.com/changelog)
How to fix common problems
The file returns HTML or 404
Put llms.txt in the folder your host serves from the root. In Next.js and many static site generators that is the public folder. On WordPress, upload it to the site root or use a plugin that serves it. On hosted builders that do not allow root files, some offer a custom route or redirect setting; check your platform's documentation. After deploying, open https://yourdomain.com/llms.txt in a browser: you should see plain text, not a styled page.
No H1, or the H1 is not first
Delete anything above the title, including comments and blank front matter, and make sure the title line starts with a single # followed by a space.
Relative or broken links
Replace /pricing with https://yourdomain.com/pricing. Check for stray spaces or parentheses inside URLs, which break markdown link syntax.
Sections without links
Either add links or merge the section into another. A heading with only prose under it is fine for humans, but the proposal expects sections to be link lists.
If the file needs more than a few fixes, it is often faster to rebuild it. The llms.txt generator produces a file in the right shape from your site name, summary and key pages, and can prefill them from your homepage.
How the validator reads your file
When you enter a domain, we request https://your-domain/llms.txt once from our server. We follow up to three redirects (for example from the bare domain to www), stop after a few seconds, and read up to 512 KB. If the server answers with a 404 or another client error, we report that no file was found. Nothing is stored.
The path is case sensitive on most servers: /LLMS.txt or /llms.TXT are different files. If your file lives somewhere else, such as /docs/llms.txt, paste its contents instead. The paste mode runs the same checks entirely in your browser, which is also handy for testing a draft before you publish it.
A file that passes every check is well formed. It does not mean the content is good. Read the summary line out loud: would a stranger know what you do, who it is for and why they would pick you? If not, rewrite it before you worry about anything else.
llms.txt, robots.txt and sitemap.xml
Three root files, three different jobs. They work together and none replaces another.
- robots.txt says which crawlers may fetch which paths. It is about access. If it blocks an AI bot, your llms.txt will not be read by that bot either. Check it with the AI crawler checker.
- sitemap.xml lists every URL you want indexed, for search engines. It is complete but has no context: a URL and maybe a date.
- llms.txt is curated and descriptive. It lists only the pages that matter, with a sentence about each, and a summary of who you are. It is written for a reader with limited attention.
What to include, by type of business
Software and SaaS
Features, pricing, integrations, getting-started docs, API reference, security or compliance page, and honest comparison pages. In the intro text, state who the product is for, the pricing model and what it does not do. That last part helps an AI tool avoid recommending you for the wrong job.
Local and service businesses
Services, service areas, pricing or how quotes work, booking or contact page, licenses or credentials, and opening hours. Put the city and region in the summary, because location is part of most local buyer questions.
Ecommerce
Main category pages, sizing or fit guides, shipping and returns, warranty, and your best buying guides. Skip individual product URLs unless you have only a few products; the file is an index, not a catalog.
Agencies and consultants
Services, industries served, case studies, process, pricing or engagement models, and team page. Name the specific problems you solve so the summary matches the way buyers describe their needs.
Keeping the file accurate
A stale llms.txt is worse than none, because it tells AI tools old facts with confidence. A short routine:
- Update it whenever pricing, plans, positioning or key URLs change.
- Re-run this validator after each edit, and after site migrations or redesigns that may change routing.
- Check that every linked page still loads and still says what the note claims.
- Keep the file in version control next to your site code, so changes are reviewed like any other content.
What llms.txt will and will not do
Be realistic about the payoff. llms.txt is cheap to make and low risk, and it gives any AI tool that reads it your own description of your product. But adoption by the large AI engines is uneven, and none of them has said it ranks or cites sites because of the file. Treat it as one item on a list, not the whole list.
The other things worth checking while you are here:
- Make sure AI bots can reach your pages at all with the AI crawler checker.
- Mark up your FAQ content with the FAQ schema generator.
- Build a list of buyer questions to test with the AI prompt generator.
To see whether ChatGPT and Perplexity name your brand today, run the free AI visibility check. TrendlyAI's paid plans track ChatGPT, Perplexity, Claude and Google AI Overviews every week, find the prompts where a competitor is named and you are not, and draft the fixes, including llms.txt, FAQ pages with schema and comparison pages.
Frequently asked questions
What does the llms.txt validator check?
That the file is plain markdown rather than an HTML page, that it starts with an H1 title, whether it has a blockquote summary, whether H2 sections contain markdown link lists, whether every link has a valid absolute URL, duplicate links, where the "Optional" section sits, and whether the file size is reasonable.
What is the difference between a fail and a warning?
A fail means the file breaks the proposal in a way a tool reading it would trip on: no H1 title, an HTML page instead of markdown, or an invalid URL. A warning is a suggestion: the file is valid, but a missing summary, relative links or empty sections make it less useful.
Is llms.txt an official standard?
No. It is a proposal published at llmstxt.org. There is no standards body behind it and no AI engine has committed to using it for ranking or citations. This validator checks against the format the proposal describes.
Where should llms.txt live?
At the root of your domain, so it is served at https://yourdomain.com/llms.txt as plain text, next to robots.txt.
My llms.txt returns my 404 page. Why?
Many site builders and frameworks answer unknown URLs with an HTML page. If the validator says the file looks like HTML, the file is not being served from the root. Upload it to your public or static folder, or add a route that returns it as text/plain.
Do I need llms-full.txt too?
The proposal mentions optional expanded files, and some sites publish an llms-full.txt with the full text of their docs. It is not required. Start with a clean llms.txt that links to your key pages.
See what AI engines say about your brand
Run the free check: 5 buyer prompts on ChatGPT and Perplexity, your AI visibility score in about 30 seconds, no signup. TrendlyAI then tracks ChatGPT, Perplexity, Claude and Google AI Overviews every week, finds the prompts where a competitor is named and you are not, and drafts the fix.
Run the free checkPlans from $19/mo. See pricing: 7 days free, no card.
More free tools
- Free AI visibility checkSee whether ChatGPT and Perplexity name your brand for 5 buyer prompts. About 30 seconds, no signup.
- AI crawler checkerRead your robots.txt and see which AI bots (GPTBot, ClaudeBot, PerplexityBot and more) are allowed or blocked.
- llms.txt generatorBuild an llms.txt file in the llmstxt.org format from your site name, summary and key pages.
- FAQ schema generatorTurn question and answer pairs into valid FAQPage JSON-LD you can paste into any page.
- AI share of voice calculatorEnter how often AI answers mention you and your competitors. Get share of voice and mention rate.
- AI prompt generatorGet 20 to 30 realistic buyer prompts for your category, grouped by intent, ready to test in AI engines.