llms.txt: what it is, who uses it, and a template you can ship
/llms.txt is a plain-text Markdown file at the root of your domain that hands large language models a clean map of your site: what your company does, your canonical pricing and documentation URLs and where the ground-truth facts live. Proposed by Jeremy Howard at Answer.AI in September 2024, it takes 20 minutes to ship and removes HTML boilerplate when AI tools read your site.
What llms.txt actually does (and what it does not)
Web pages are built for browsers: navigation menus, cookie banners, scripts and layout wrappers often account for 70% of the raw token count. When an LLM or coding assistant fetches a page to answer a question, that noise wastes context window and dilutes product facts.
The llms.txt specification solves this with two conventions at your root domain:
/llms.txt: a short Markdown index (usually 2 KB to 15 KB) with an H1 title, a blockquote summary and categorized links with one-sentence explanations./llms-full.txt: an optional companion file that concatenates the clean Markdown of your key documentation or product pages into a single file for one-shot context loading.
/llms.txt is not a shortcut into ChatGPT or Perplexity consumer search results. Live answer engines still discover brands through web search indexes (see our ChatGPT checklist) and GEO signals. Where llms.txt helps today is in coding tools (Cursor, Claude Code, Windsurf), API documentation and giving any agent that fetches your root domain an unambiguous entity summary.llms.txt vs robots.txt vs sitemap.xml
| File | Primary purpose | Format | Who reads it |
|---|---|---|---|
/robots.txt | Allow or block crawlers from fetching paths | RFC 9309 directives | Googlebot, Bingbot, OAI‑SearchBot, GPTBot, PerplexityBot, ClaudeBot |
/sitemap.xml | List every canonical URL and last-modified date | XML Sitemap protocol | Search engine indexers (Google, Bing, Brave) |
/llms.txt | Summarize the entity and curate high-signal pages in Markdown | CommonMark Markdown | LLM agents, IDE assistants, RAG pipelines, Mintlify/GitBook readers |
The exact llms.txt specification
According to the llmstxt.org specification, a valid file follows a strict, predictable Markdown structure so parsers can read it deterministically:
- H1 header (required): the name of your company, product or project (
# RankedUp). - Blockquote summary: a 1–3 sentence description immediately below the H1 stating what you are, who you serve and your core category.
- Body notes (optional): key facts such as pricing model, headquarters, supported platforms or compliance certifications.
- H2 sections with link lists: grouped Markdown links in the format
- [Page title](https://example.com/url/): concise note on what this page contains. ## Optionalsection: secondary links that an AI can skip when working with a tight token budget.
Copy-paste llms.txt template for B2B & SaaS
Save the template below as public/llms.txt (in Astro, Next.js or Vite) so it serves at https://yourdomain.com/llms.txt with Content-Type: text/plain; charset=utf-8:
# [Brand Name]
> [Brand Name] is a [category, e.g. B2B invoicing platform] for
> [target customer, e.g. EU freelancers and agencies]. It automates
> [core capability 1] and [core capability 2], starting at [$X/month].
Key facts:
- Category: [Primary software or service category]
- Pricing: [Free tier / entry plan price, checked YYYY-MM]
- Integrations: [Top 3–5 integrations]
## Product & Pricing
- [Overview](https://example.com/):
Core features, supported workflows and architecture.
- [Pricing](https://example.com/pricing/):
Plan limits, seat pricing and enterprise SLA details.
- [Security & Compliance](https://example.com/security/):
SOC 2 Type II, GDPR data residency and sub-processors.
## Comparisons & Benchmarks
- [Brand vs Competitor A](https://example.com/vs-competitor-a/):
Side-by-side feature and cost-per-seat breakdown.
- [Customer Case Studies](https://example.com/customers/):
Verified deployment metrics and ROI examples.
## Optional
- [About & Press Kit](https://example.com/about/):
Founding team, company history and legal entity details.
- [Changelog](https://example.com/changelog/):
Monthly product releases. 5 rules that make your llms.txt useful
- Put real numbers in the header block. Don’t write “flexible plans for every team”. Write “Lite $29/mo for 15 prompts; Standard $189/mo for 100 prompts.”
- Keep the main file under 50 links. If you dump 2,000 blog URLs into
/llms.txt, you recreate the exact noise problem the spec was meant to solve. - Serve clean
.mdequivalents when possible. Many documentation platforms (Mintlify, Cloudflare, Stripe, Supabase) let you append.mdto any doc URL to fetch raw Markdown. - Pair it with crawler access in
robots.txt. Anllms.txtfile cannot help if your firewall orrobots.txtblocksOAI‑SearchBot,PerplexityBotorClaudeBot. - Update it when pricing changes. Treat
/llms.txtlike your pricing page and Schema.org JSON-LD: keep all three synchronized so engines never see conflicting prices.
Frequently asked questions
What is llms.txt?
llms.txt is a proposed Markdown file placed at the root of a website (/llms.txt) that gives large language models and AI coding assistants a concise, structured index of your most important documentation, product facts and canonical URLs. It was proposed by Jeremy Howard (Answer.AI) in September 2024.
Does llms.txt replace robots.txt or sitemap.xml?
No. robots.txt controls which crawlers are allowed to fetch your pages (such as OAI-SearchBot, GPTBot, PerplexityBot and ClaudeBot). sitemap.xml lists every indexable URL for search engines. llms.txt is a curated, human-and-LLM-readable summary of your core pages so an AI agent or retrieval system can understand your product or docs within a single context window.
What is the difference between llms.txt and llms-full.txt?
llms.txt is a compact index linking to your key pages with one-line descriptions (typically under 10 KB). llms-full.txt concatenates the full Markdown text of your documentation into a single file so developers or AI tools can load the entire reference into a model prompt at once.
Do ChatGPT and Perplexity automatically crawl llms.txt?
Retrieval-based answer engines still rely primarily on web search indexes, robots.txt permissions and HTML pages. However, developer tools (Cursor, Windsurf, Claude Code), documentation readers and custom RAG pipelines actively consume /llms.txt and /llms-full.txt, and keeping a clean /llms.txt file costs less than 30 minutes to maintain.
Next: how Perplexity picks citations, compare 8 AI visibility trackers, or check your AI visibility score in 3 minutes.