Guide

The Complete llms.txt Guide

llms.txt is a proposed standard that gives AI models a curated, markdown-formatted summary of your website's most important content. Think of it as a README for AI.

What is llms.txt?

When an AI model like ChatGPT or Claude needs to understand your website, it faces a challenge: your HTML pages are full of navigation, ads, scripts, and formatting that make it hard to extract the meaningful content.

llms.txt solves this by providing a clean, structured markdown file at your domain root (e.g., yoursite.com/llms.txt) that tells AI models exactly what your site is about and where to find the important pages.

llms.txt vs. robots.txt

Aspect robots.txt llms.txt
Purpose Access control (allow/block) Content curation (what matters)
Format Custom directive syntax Standard Markdown
Audience Web crawlers LLM/AI models
Action Tells bots where they can't go Tells AI what's important

Required Structure

1. H1 Heading (Required)

Start with a single H1 heading — your project or site name.

# Your Site Name

2. Summary Blockquote (Recommended)

A blockquote with a concise summary of your site and key context for interpretation.

> A platform that helps small businesses manage their online presence and grow through AI-powered tools.

3. Additional Context (Optional)

Plain paragraphs or lists providing further context. No headings in this section.

We serve over 10,000 businesses across 50 countries. Our documentation is organized by product area.

4. H2 Sections with Links (Recommended)

Organize your key pages into categorized sections using H2 headings with markdown links.

## Core Documentation - [Getting Started](https://yoursite.com/docs/start): A guide for new users. - [API Reference](https://yoursite.com/docs/api): Complete technical specifications.

Ready-to-Use Templates

llms.txt Template

# Your Site Name > A concise summary of what your site does and why it matters. This should be 1-3 sentences that give an AI model enough context to understand your purpose. Additional context about your site, target audience, or how to interpret the documentation below. ## Core Pages - [Home](https://yoursite.com): Main landing page with overview of services. - [About](https://yoursite.com/about): Company background, mission, and team. - [Products](https://yoursite.com/products): Full catalog of products and services. ## Documentation - [Getting Started](https://yoursite.com/docs/start): How to begin using our platform. - [API Reference](https://yoursite.com/docs/api): Technical API documentation. ## Optional - [Blog](https://yoursite.com/blog): Latest articles and industry insights. - [FAQ](https://yoursite.com/faq): Frequently asked questions.

llms-full.txt Template Optional

The llms-full.txt file compiles ALL your site's text content into a single markdown document. This is especially valuable for documentation-heavy or content-rich sites, allowing AI tools to load your entire context from one URL.

# Your Site Name — Full Documentation > Complete documentation for Your Site Name, compiled into a single markdown file for AI consumption. ## About Us Your Site Name is a platform that helps businesses do X. Founded in 2020, we serve over 10,000 customers worldwide. ### Our Mission We believe in making X accessible to everyone... ## Products & Services ### Product A Product A is our flagship offering. It provides... **Key Features:** - Feature 1: Description - Feature 2: Description - Feature 3: Description **Pricing:** Starting at $X/month ### Product B Product B extends Product A with... ## Frequently Asked Questions ### How do I get started? Sign up at oursite.com/signup and follow the onboarding wizard... ### What payment methods do you accept? We accept Visa, Mastercard, and PayPal...

Best Practices

Serve as text/plain MIME type

Ensure your server returns the correct content type.

Use HTTPS as canonical

Make the HTTPS version the authoritative copy.

Keep it concise

llms.txt should be a curated summary, not a full dump.

Update regularly

Refresh as you add or remove important pages.

Include link descriptions

Add context after each URL to explain what it contains.

Prioritize high-value pages

List your most important content first.