llms.txt Validator
Check your /llms.txt file against the official spec. Verify heading structure, markdown links, blockquote summary, and formatting. Enter a site URL or paste content directly.
What is llms.txt?
llms.txt is a proposed standard for making your website understandable to AI systems. Sometimes called an "AI sitemap" or "robots.txt for AI," it's a structured Markdown file placed at the root of your domain (/llms.txt) that provides an overview of your site's content, documentation, and APIs for tools like ChatGPT, Claude, and Perplexity.
AI Discovery
Helps LLMs like ChatGPT and Claude understand your site without crawling every page.
Structured Context
Organized Markdown with headings and links gives AI systems the right context fast.
Simple Format
Just Markdown. No XML, no JSON. Easy to write, easy to maintain, easy to validate.
What Makes a Valid llms.txt?
The Format section of the llmstxt.org proposal lists these parts, in this order.
- 1
Location
Serve the file at /llms.txt, or at a subpath such as /docs/llms.txt. A file covers the URLs under its path.
- 2
H1 title
An H1 with the name of the project or site. This is the only required section.
- 3
Blockquote summary
A blockquote with a short summary of the project and the key information needed to read the rest of the file.
- 4
Details
Zero or more Markdown sections, such as paragraphs or lists, with more detail. These contain no headings.
- 5
File lists
Zero or more sections under H2 headings. Each holds a Markdown list of URLs where more detail is available.
- 6
List items
Each item has a required Markdown link [name](url), then optionally a colon and notes about the file.
- 7
Optional section
By convention, an H2 named "Optional" holds secondary links an agent can skip when it needs a shorter context.
What This llms.txt Validator Checks
The validator fetches /llms.txt from your server, with a 10 second timeout. It reports a missing file, an HTML page in place of Markdown, and files over 5 MiB. It then parses the Markdown and runs the checks below. Each example shows the input and the exact message you get.
Missing H1
errorllmstxt.org ruleAn H1 with the project or site name is the only required section.
> A summary with no title ## Docs - [Intro](https://example.com/intro)
Missing required H1 heading (project/site name)
More than one H1
errorllmstxt.org ruleThe file has one H1. Every other section sits below it.
# Example # Example Docs - [Intro](https://example.com/intro)
Found 2 H1 headings, only one is allowed
H3 or deeper heading
errorllmstxt.org ruleDetails sections contain no headings, and file lists are delimited by H2 headings only.
# Example ## Docs ### Setup - [Install](https://example.com/install)
Only H1 and H2 headings are allowed. Found H3: "Setup"
Link with an empty URL
errorllmstxt.org ruleEach file list item contains a markdown hyperlink [name](url).
# Example ## Docs - [Intro]()
Link "Intro" in section "Docs" has an empty URL
Content before the H1
warningllmstxt.org ruleThe H1 comes first. Only an optional byte-order mark may precede it.
Welcome! # Example ## Docs - [Intro](https://example.com/intro)
Content found before the H1 heading
No blockquote summary
warningllmstxt.org ruleA blockquote after the H1 gives a short summary of the project.
# Example ## Docs - [Intro](https://example.com/intro)
No blockquote description after H1. Recommended for providing context to LLMs.
No H2 file lists
warningllmstxt.org ruleLinks to further detail go in file lists under H2 headings.
# Example > Example docs. Read the docs at https://example.com/docs.
No H2 sections with file lists found
List item without a link
warningllmstxt.org ruleEach item in a file list starts with a markdown hyperlink, then optional notes after a colon.
# Example ## Docs - Getting started
List item without a markdown link in section "Docs": "Getting started"
Relative URL
warningmdream adviceAn agent can read the file away from your site, so absolute URLs resolve everywhere. The spec example uses absolute URLs.
# Example ## Docs - [Intro](/docs/intro)
Link "Intro" in section "Docs" uses a relative URL: /docs/intro
Optional section
infollmstxt.org ruleAn H2 named "Optional" marks links an agent can skip when it needs a shorter context.
# Example ## Optional - [Blog](https://example.com/blog)
"Optional" section detected. LLMs may skip these URLs for shorter context.
The validator also adds recommendations from our analysis of real llms.txt files, such as link descriptions, file size, and an llms-full.txt companion. Recommendations never make a file invalid. Only errors do.
llms.txt vs robots.txt
A common question: how does llms.txt relate to robots.txt? They serve opposite purposes and work together.
robots.txt Exclusion
Tells crawlers which pages to avoid. Controls access for search engines and AI bots. Blocks paths, enforces crawl-delay.
llms.txt Inclusion
Tells AI systems which pages to prioritize. Provides structure, context, and descriptions. Guides LLMs to your best content.
Use both together: robots.txt to control who can access what, llms.txt to help AI systems understand the content you do want to share. Neither replaces the other.
Example llms.txt
A minimal, spec-compliant llms.txt file. Copy this as a starting point and customize for your site.
# My Project > A brief description of what this project does and who it's for. ## Docs - [Getting Started](https://example.com/docs/getting-started): Quick setup guide - [API Reference](https://example.com/docs/api): Full API documentation - [Configuration](https://example.com/docs/config): Configuration options ## Examples - [Basic Usage](https://example.com/examples/basic): Minimal working example - [Advanced](https://example.com/examples/advanced): Complex use cases ## Optional - [Blog](https://example.com/blog): Latest updates and tutorials - [Changelog](https://example.com/changelog): Version history
Frequently Asked Questions
llms.txt is a proposed standard that provides a structured Markdown file at /llms.txt on your website. Sometimes called an "AI sitemap" or "robots.txt for AI," it helps AI systems like ChatGPT, Claude, and Perplexity understand your site's content, documentation, and APIs without crawling every page.
Enter your domain above (e.g., example.com) and click Validate. This checker fetches your /llms.txt server-side (avoiding CORS issues that browser-based validators hit), parses the Markdown structure, and validates it against the official specification including heading hierarchy, link formatting, and required sections.
llms.txt is a concise overview with links to detailed resources. llms-full.txt is an optional companion file that contains the full expanded content inline, so AI systems can consume everything in a single request without following links. This is especially useful for RAG pipelines and "chat with your docs" applications.
robots.txt controls crawler access by telling bots which pages to exclude. llms.txt is the opposite: it tells AI systems which pages to include and how they relate to each other. They complement each other. Use robots.txt for exclusion, llms.txt for structured inclusion.
llms.txt is designed for AI systems and LLM-powered tools, not traditional search engine crawlers. Search engines use robots.txt and XML sitemaps. However, AI search products like Perplexity, ChatGPT Browse, and Google AI Overviews can benefit from a well-structured llms.txt.
llms.txt is a community proposal by Jeremy Howard, not a W3C or IETF standard. It has gained adoption across many sites and AI tools. The specification is published at llmstxt.org and continues to evolve.
For WordPress, place the file in your site root or use a plugin. For Next.js, add it to your public/ directory or create a route handler at /llms.txt. For Nuxt, use the @mdream/nuxt module for automatic generation, or place it in public/llms.txt for a static file.
The ideal range is 20 to 50 links for a standard llms.txt. Focus on your most important documentation, guides, and API references. AI systems have context limits, so a curated file with good descriptions outperforms a massive list of every page on your site.
No. They serve different audiences. sitemap.xml tells search engine crawlers which URLs to index. llms.txt tells AI systems which content matters and how it is structured. Think of llms.txt as an "AI sitemap" that complements your existing sitemap.xml and robots.txt.
Browser-based validators often fail because servers block cross-origin requests. This validator fetches your llms.txt server-side, bypassing CORS entirely. If you still see errors, the server may be blocking non-browser user agents or the file may not exist at the expected path.
Yes. llms.txt provides a structured index ideal for populating vector databases. Use the concise llms.txt as a retrieval map, or use llms-full.txt (which embeds all content inline) for direct ingestion into RAG systems. The section structure maps naturally to document chunks for embedding.