Paste or fetch · Line-level diagnostics
llms.txt validator and checker
Paste an llms.txt file or enter its URL to check its structure. Pasted content is analysed in your browser.
Last updated:
Validator
Enter a domain (we fetch its /llms.txt) or a full file URL. The fetch runs
through our edge function, so CORS restrictions on the target site do not apply.
Example report
A report opens with a verdict, PASS or FAIL, and the count of errors, warnings and notes. Three figures follow: the title read from the H1, the number of sections and links, and the size of the file. Each diagnostic then gives a severity, a line number and a rule code.
errors: 0 · warnings: 0 · notes: 0
No diagnostic: the parser raised no error, warning or note on this file.
Example with errors (fictional file)
The second report runs the same parser on a made-up file for example.com, written to contain errors that the rules below detect: no blockquote summary under the H1, a list item that is not a Markdown link, and a line of free text inside a section. Line numbers in the report match the numbered lines of the file.
1 # Example Store 2 3 Example Store sells garden tools online. 4 5 ## Docs 6 7 - [Shipping](https://example.com/shipping.md): Delivery times and costs 8 - Returns policy: https://example.com/returns.md 9 Contact support at https://example.com/contact 10 11 ## Optional 12 13 - [Changelog](https://example.com/changelog.md)
errors: 1 · warnings: 2 · notes: 0
Consider adding a blockquote summary right after the H1 (`> One-sentence overview.`).
List item is not a valid link. Expected `- [name](url)` optionally followed by `: notes`.
Unexpected content inside section "Docs". Each line should be a list item: `- [name](url)`.
What the validator checks
The validator implements the rules from llmstxt.org:
- H1 required. Exactly one level-1 heading after an optional UTF-8 BOM.
- Blockquote summary. Recommended right after the H1.
- H2 file-list sections. Each section is a Markdown list of
- [name](url)items, with optional: notes. - Absolute URLs. Relative URLs are flagged as warnings.
- No content outside sections. After the first H2, only file lists are expected.
- No preamble headings. The free-form context before the first H2 cannot add H3-H6 headings.
- Size guard. Files larger than 50 KB get an info-level note suggesting
llms-full.txt.
Each diagnostic includes a rule code (e.g. H1_REQUIRED, URL_RELATIVE)
so you can grep for it in CI logs.
Questions about checking a file
How do I check an llms.txt file?
Enter the domain or the file URL in the field at the top of this page and select Fetch, or paste the content of the file and select Validate. The report lists every error, warning and note with its line number and rule code.
Is my llms.txt valid?
The verdict is PASS when the parser finds no error. Errors are a missing, empty or duplicated
H1, an empty blockquote summary, a malformed list item, and a link whose URL is invalid or uses
an unsafe scheme. Warnings, such as a missing summary, a relative URL or an empty section, are
listed but do not change the verdict. llms.txt is a proposal, so valid here means consistent
with the format described on llmstxt.org and detailed in the
format reference.
Does a PASS mean AI systems read my file?
No. The validator checks the syntax of the text. It does not test where the file is served, and a valid file is not evidence that a provider retrieves or uses it. To check the HTTP response of a published file, use the public verifier.
Use it from CI
The same parser that powers this page can be wired into your build: the rule codes below are stable, so a script can grep them in CI logs. A minimal Node check:
import { readFileSync } from 'node:fs';
import { parseLlmsTxt, summarize } from './validator/validate'; // same parser as this validator
const input = readFileSync('public/llms.txt', 'utf8');
const parsed = parseLlmsTxt(input);
const sum = summarize(parsed);
if (!sum.passes) {
for (const d of parsed.diagnostics) {
console.error(`${d.severity.toUpperCase()} [${d.rule}] line ${d.line}: ${d.message}`);
}
process.exit(1);
}
console.log(`OK, ${parsed.sections.length} sections, ${parsed.sizeBytes} bytes`); Next steps
A file that validates can still be the wrong file. The ten best-practice rules cover what no validator can check: whether the pages you listed are the ones a model actually needs, which are rarely the most-visited ones. Starting from nothing? The generator builds a valid file from your sitemap, and how to create llms.txt covers deployment stack by stack. For the syntax itself see the format reference, or read real files published by Anthropic, Cloudflare and Stripe.
Diagnostic codes
H1_REQUIRED: Error: the first non-empty line must be an H1 (# Project).
SUMMARY_MISSING: Warning: a blockquote summary is recommended, but optional. Its absence alone does not make the file invalid.