llms.txt Checker & Validator

Validate both file correctness (Markdown syntax, H1, section hierarchy, link formatting) and deployment correctness (live endpoint availability, HTTP status, redirects, caching headers, and v2 discovery signals) in one unified audit.

llms.txt Checker & Validator

Test availability, HTTP response, metadata, Markdown syntax and structure

Free
1
Input
2
Analyze
3
Review Report
4
Fix & Export

Paste raw Markdown

Paste the contents of your llms.txt file to validate structure, links, and formatting.

What Is the llms.txt Checker & Validator?

The llms.txt Checker & Validator is the flagship diagnostic tool for llms.txt files, evaluating both file correctness (Markdown syntax, heading hierarchy, and link structure) and deployment correctness (live endpoint availability, HTTP status, redirect chains, file weight, and server freshness headers) in a single unified report.

Instead of running fragmented checks across separate pages, this tool inspects both your file's internal composition and its public accessibility on the web.

The Two Audit Layers: File Validation vs. Deployment Inspection

A complete audit requires examining two distinct layers of your llms.txt implementation:

1 File Content Validation

  • Top-level H1 project title presence and syntax
  • Blockquote summary format and positioning
  • Optional H2 section organization and naming convention
  • Markdown link syntax and description completeness
  • Duplicate URL detection across sections
  • Conventional ## Optional secondary section recognition

2 Deployment & Server Inspection

  • Public HTTP status code (200, 301, 403, 404, 5xx)
  • Soft-200 HTML fallback detection (non-text responses)
  • HTTPS encryption and redirect hop tracking
  • Exact UTF-8 byte size and line/character counts
  • Last-Modified & ETag cache validators (RFC 9110)
  • Machine discovery signals (rel="describedby")

Result Interpretation: Requirements vs. Recommendations vs. Diagnostics

To avoid confusion, the validator strictly separates specification requirements from site management recommendations and raw HTTP diagnostics:

  • Specification Requirements (Errors): Direct violations of the current llmstxt.org proposal, such as a missing H1 title, multiple H1 titles, or unparseable Markdown links.
  • LLMs.txt Lab Recommendations (Warnings & Suggestions): Best practices identified by LLMs.txt Lab for efficient retrieval, including descriptive link annotations, avoiding duplicate URLs, lowercase section warnings, and file-weight guidance.
  • HTTP & Deployment Diagnostics (Information): Factual server response characteristics reported under standard RFC 9110 HTTP semantics (e.g. response code, TLS status, caching headers, or "Not provided by server" when headers are absent).

Understanding HTTP Response Codes & Soft-200 Fallbacks

A healthy deployment returns HTTP 200 (OK). Content-Type is reported as an HTTP deployment diagnostic: while the current llms.txt proposal does not define a mandatory MIME type for the resource, serving the intended text or Markdown response with an appropriate text-oriented Content-Type (such as text/plain or text/markdown) helps clients distinguish the resource from an HTML application shell or binary response. Crucial scenarios monitored by the validator include:

  • HTTP 404 (Not Found): The file is missing from the public root or path-scoped directory. See our guide on Where to Put an llms.txt File for platform-specific folders.
  • Soft-200 HTML Fallbacks: Many CMS platforms and single-page applications return an HTML 404 page with an HTTP 200 status code. The validator analyzes the response body and flags HTML pages so they are not mistaken for valid context documents.
  • HTTP 401 / 403 (Forbidden): The server refused access due to firewall rules, basic auth, or bot protection, blocking AI assistants from reading the file.
  • HTTP 301 / 308 (Redirects): Redirects can be valid if they terminate at the correct file, but circular redirects or home page redirects are flagged immediately.

Server Freshness: Last-Modified Headers & ETags

Last-Modified and ETag are standard HTTP cache validators (RFC 9110) that help clients determine whether a resource has changed without downloading the entire body. Whether an external crawler or LLM agent utilizes these headers depends entirely on that individual client's HTTP implementation. If your web server omits these headers, the validator reports them as "Not provided by server" without fabricating synthetic timestamps.

File Size, Byte Weight, and LLMs.txt Lab Guidelines

The official specification does not establish a strict numeric file size limit. The core intent is to keep the main file concise as an immediate navigational overview, while pointing to deeper individual pages for detailed context. For practical site management, LLMs.txt Lab provides these reference tiers:

  • LLMs.txt Lab Guideline — Compact (≤ 50 KB): Ideal for immediate context loading and fast retrieval.
  • LLMs.txt Lab Guideline — Moderate (50 KB – 200 KB): Comprehensive documentation index. Ensure linked resources carry in-depth code samples and details.
  • LLMs.txt Lab Guideline — Large (> 200 KB): Substantial context payload. Consider dividing secondary sections into path-scoped files (e.g. /docs/llms.txt).

Validator vs. Link Checker: What is the Difference?

The Validator inspects the syntax, structure, and live endpoint deployment of the llms.txt file itself. The llms.txt Link Checker, by contrast, is an independent tool that performs live HTTP requests against every individual URL referenced inside the file to detect broken links and dead external targets. Keeping these tasks separate ensures rapid validation without waiting for dozens of third-party network requests.

Methodology & Evidence Boundaries

Validation in this tool reflects the technical proposal published at llmstxt.org and standard web protocol definitions. Read our complete Validator Methodology for detailed documentation on parsing rules, SSRF security defenses, and diagnostic classification. Publishing a syntactically valid llms.txt file provides an organized context resource for compatible tooling, but does not guarantee inclusion, search ranking improvements, or AI model citations.

Free WordPress plugin

Publish your llms.txt automatically

Generate and maintain a clean /llms.txt endpoint from your WordPress posts, pages, categories and public custom post types.

Related Components

Questions you might have

What does this validator check?
It performs a two-layer audit: validating file syntax (H1 project title, summaries, section headings, and Markdown links) and inspecting live deployment (HTTP status, soft-200 HTML fallbacks, redirect chains, file size, and cache headers).
Is an H1 heading required?
Yes. A single top-level H1 heading containing the project or site name is the primary required structural element under the current proposal.
Where should llms.txt be deployed?
Deploy it at the public site root (https://example.com/llms.txt). For specialized documentation sections, path-scoped files like /docs/llms.txt are also supported.
Does HTTP 200 always mean the file exists?
No. Many websites return their HTML homepage with HTTP 200 for missing paths. The validator inspects the response body and flags HTML responses so they are not mistaken for valid Markdown context.
Are Last-Modified and ETag headers required?
No. The specification does not require them. They are standard HTTP cache validators (RFC 9110). If your server does not provide them, the tool simply notes "Not provided by server".
Is there an official file size limit?
No. The specification defines no numeric cap. The tiers displayed in this tool (Compact, Moderate, Large) are LLMs.txt Lab guidelines to help webmasters plan context budgets.
How does the Validator differ from the Link Checker?
The Validator tests the structure and deployment of the llms.txt file itself. The Link Checker performs live network tests on all external URLs referenced inside the file.
Does a valid llms.txt file guarantee AI citations or Google rankings?
No. Validating and publishing an llms.txt file creates a well-structured context map for compatible agents, but does not guarantee crawling, search ranking changes, or citations in AI responses.
Is llms.txt a replacement for robots.txt or sitemaps?
No. robots.txt governs crawler permissions, XML sitemaps index pages for search engines, and llms.txt provides curated content summaries for language models.