Free llms.txt Validator & Syntax Checker

Fetch any live /llms.txt URL or paste Markdown offline to verify llmstxt.org compliance, link formatting, and HTML fallback traps.

Try live:

What the llms.txt Specification Requires

Proposed by Answer.AI on llmstxt.org, /llms.txt gives AI assistants and coding agents a clean, token-efficient Markdown map of your most authoritative pages. Instead of parsing noisy navigation menus and tracking scripts, an agent reads one structured index.

Validation Check Score Weight Passing Criteria
Plain Markdown Response Gate Served without HTML wrapper or SPA index.html fallback
Single H1 Brand Heading 25 pts First heading uses # Site or Product Name
Blockquote Summary 20 pts Concise > One-sentence summary immediately below H1
H2 Topic Sections 20 pts At least one ## Section grouping core documentation or products
Absolute HTTPS Links 25 pts Standard [Label](https://domain.com/path) entries with zero broken syntax
File Size Hygiene 10 pts Readable index between 20 bytes and 50 KB

Minimal Valid llms.txt Template

Use this exact layout as a clean baseline before deploying to your root directory:

# Acme Analytics

> Privacy-first web analytics for SaaS teams with transparent monthly pricing starting at $19/mo.

## Core Pages
- [Product Overview](https://acme.example/): Feature architecture and live demo
- [Pricing](https://acme.example/pricing): Free tier, $19/mo Pro, and $69/mo Agency plans
- [API Reference](https://acme.example/docs/api): REST endpoints and authentication

## Optional
- [Full Documentation](https://acme.example/llms-full.txt): Complete Markdown reference

Five Common llms.txt Mistakes Caught by This Tool

  • Soft-200 HTML fallbacks: Frameworks like Next.js, Vite, or Cloudflare Pages sometimes rewrite unknown root files to index.html, tricking naive status checks into reporting 200 OK.
  • Relative URL paths: Writing (/pricing) instead of (https://yourdomain.com/pricing) breaks downstream agents that ingest the Markdown text outside a browser context.
  • Missing summary blockquote: Omitting the > line forces models to infer what your brand sells from URL slugs alone.
  • Stuffing 1,000 blog URLs: Dumping an entire sitemap into /llms.txt bloats token usage; list your 10–40 highest-value commercial, documentation, and pricing URLs instead.
  • Stale facts: Listing outdated prices or deprecated features creates conflicting entity signals against your live HTML pages.

Comparing /llms.txt, /llms-full.txt, and /sitemap.xml

File Path Primary Consumer Ideal Content Scope
/llms.txt AI assistants and IDE agents Curated 10–40 top URLs with plain-text descriptions
/llms-full.txt Deep RAG ingestion pipelines Full Markdown text of docs, pricing, and policies
/sitemap.xml Googlebot, Bingbot, and search indexers Exhaustive XML inventory of all indexable URLs and lastmod dates

Server Header and Caching Checklist

  • Return HTTP 200 OK directly without redirecting /llms.txt through login walls or trailing-slash rules.
  • Set Content-Type: text/plain; charset=utf-8 or text/markdown; charset=utf-8 so crawlers never mistake it for HTML.
  • Keep Cache-Control: public, max-age=3600 so documentation edits propagate rapidly to AI retrieval pipelines.

Validate, Fix, and Cross-Check Crawlability

Open the llms.txt Generator if you need to create a valid file from your existing sitemap automatically. After deploying /llms.txt, confirm search crawlers can reach it with the AI Crawler Access Checker and keep your site aligned with Google SEO fundamentals.

Frequently Asked Questions

What makes an llms.txt file valid under llmstxt.org?

A valid file returns plain text or Markdown at /llms.txt, starts with a single # Brand H1 heading, includes a > blockquote summary, organizes pages under ## H2 sections, and uses absolute https:// Markdown links.

Can I validate draft llms.txt Markdown before publishing it?

Yes. Switch to the Paste llms.txt Markdown tab to run the full syntax and link audit locally inside your browser with zero network calls.

What is an HTML fallback trap on /llms.txt?

Many single-page apps and misconfigured CDNs return HTTP 200 with the site's HTML homepage instead of a 404 or plain text when /llms.txt is missing. Our validator detects HTML tags and scores fallback pages as 0.

When should I split content into /llms-full.txt?

Keep /llms.txt concise (under 50 KB) as a clean navigation index with short descriptions. Put exhaustive API specs, pricing matrices, or full Markdown docs in /llms-full.txt and link to it from /llms.txt.

Which HTTP Content-Type header should /llms.txt return?

Serve /llms.txt with Content-Type: text/plain; charset=utf-8 or text/markdown; charset=utf-8 and ensure caching rules do not inject HTML analytics wrappers.