Get Expert Audit→
Technical SEO / AI Search Optimization

How to Create an llms.txt File: The Complete 2026 Guide + Real Examples

Written by Zulfiqar Ali • Last updated November 25, 2026
Home › Blog › How to Create an llms.txt File: The Complete…
10 min listen • 8 min read

Laptop screen displaying a structured Markdown llms.txt file connected to AI search engine icons including ChatGPT, Claude, Perplexity, and Gemini

To create an llms.txt file, place a plain UTF-8 Markdown file at your website’s root URL (://yourdomain.com) containing an H1 site title, a concise blockquote summary, and categorized H2 lists of your most important Markdown-friendly URLs so AI models like ChatGPT, Claude, and Perplexity can ingest your core content without HTML bloat.

In our recent 2026 AI Search Visibility Study of 200 global websites, we discovered that 27.0% (54 out of 200) of major platforms—including Shopify, Stripe, HubSpot, Cloudflare, Vercel, and Asana—have already deployed a live /llms.txt file. Meanwhile, over 70% of websites still force Large Language Models (LLMs) to parse heavy navigation menus, cookie banners, and JavaScript bundles just to understand what their business does.

If you want your website to be accurately cited in ChatGPT Search, Google AI Overviews, Perplexity, and Claude, deploying /llms.txt is one of the fastest technical wins you can ship in under 10 minutes.

What Is an llms.txt File and Why Does It Matter in 2026?

An llms.txt file is a standardized Markdown directory hosted at the root of a domain that gives Large Language Models (LLMs) a clean, token-efficient map of a website’s highest-value pages, documentation, and product information.

Proposed as an open standard for AI inference, llms.txt solves a fundamental limitation of modern web architecture: context window noise. When a user asks ChatGPT or Perplexity a question about your product or industry, retrieval-augmented generation (RAG) crawlers like OAI-SearchBot and PerplexityBot fetch live pages under strict latency and token limits.

Traditional HTML pages often contain 80% boilerplate code (headers, sidebars, tracking scripts) and only 20% actual information. By providing a clean /llms.txt file, you hand AI engines a structured, noise-free table of contents.

robots.txt vs. sitemap.xml vs. llms.txt

File Primary Audience Format Core Purpose
robots.txt Search & AI Crawlers Plain Text Directives Controls permission (which bots can or cannot crawl specific paths).
sitemap.xml Traditional Search Engines XML Lists all indexable URLs and last-modified timestamps for Google/Bing.
llms.txt LLMs & AI Answer Engines Structured Markdown Curates high-signal context and summaries for real-time AI inference.

Pro Tip: You do not replace robots.txt or sitemap.xml with llms.txt. All three work together: robots.txt grants access to OAI-SearchBot, sitemap.xml drives Google indexing, and llms.txt guides AI synthesis.

Official llms.txt Specification & Required Structure

A spec-compliant llms.txt file must follow a strict Markdown hierarchy: a single H1 title, an optional blockquote summary, descriptive paragraphs, and H2 sections containing bulleted [Title](URL): Description links.

According to our audit of 54 live enterprise implementations in the LLMrush 200-Domain AI Directory, files that strictly adhere to the specification score significantly higher in automated AI parser checks.

Copy-Paste llms.txt Template

# Your Brand or Website Name

> A one-to-two sentence summary explaining what your company does, who it serves, and your core expertise.

Additional context about your primary products, documentation, or research standards can go here in plain Markdown paragraphs.

## Core Product & Tool Pages

- [AI Visibility Checker](https://llmrush.org): Free tool to audit OAI-SearchBot, GPTBot, /llms.txt, and schema readiness.
- [LLMs.txt Generator](https://llmrush.org): Automatically generate a spec-compliant /llms.txt file for any domain.
- [GPTBot Access Checker](https://llmrush.org): Verify whether robots.txt allows or blocks OpenAI crawlers.

## Research & Documentation

- [2026 AI Search Visibility Study](https://llmrush.org): Benchmark analysis of 200 global websites across SaaS, Finance, News, and E-commerce.
- [Public Domain Scorecard Directory](https://llmrush.org): Searchable AI readiness scores for 200+ major websites.

## Optional

- [About Us](https://llmrush.org): Company background, methodology, and editorial standards.
- [Contact](https://llmrush.org): Support and media inquiries.

4 Formatting Rules You Must Follow

  1. Exactly One H1 (#): Your brand or project name must be the very first line.
  2. Concise Blockquote (>): Summarize your core value proposition immediately below the H1 so an LLM understands your entity in the first 50 tokens.
  3. Categorized H2 Sections (##): Group links logically (e.g., ## Documentation, ## Core Tools, ## Pricing). Avoid dumping 500 uncategorized blog URLs.
  4. The ## Optional Section: Per the official spec, secondary links (like Privacy Policy, Terms, or legacy archives) belong under ## Optional so AI agents know they can skip them when context windows are tight.

Real-World llms.txt Examples From Top Global Brands

Among the 200 global websites we audited, only four domains achieved a perfect 100/100 AI Readiness Score—Asana, Netlify, Jasper, and Amplitude—by pairing clean /llms.txt files with open OAI-SearchBot access and rich JSON-LD schema.

Here is how top-performing brands structure their files in production:

  • Cloudflare (://cloudflare.com): Uses crisp H2 groupings separating developer documentation, product overviews, and API references, making it effortless for coding assistants like Claude and Cursor to cite accurate worker configurations.
  • Stripe (://stripe.com): Organizes payment APIs, webhooks, and SDK guides into clean Markdown links with one-line functional descriptions so AI agents never hallucinate deprecated endpoints.
  • Shopify (://shopify.com): Highlights merchant guides, Hydrogen storefront docs, and platform capabilities while keeping marketing fluff out of the file.
  • Asana (://asana.com): Scored 100/100 in our audit by combining a clean root /llms.txt directory with zero crawler blocks and full Organization + SoftwareApplication structured data.

You can inspect the exact scores and live crawler configurations for all 200 brands in our Public AI Visibility Directory.

Step-by-Step: How to Create and Deploy llms.txt on Your Platform

You can generate a custom /llms.txt file in under 30 seconds using our Free LLMs.txt Generator, then deploy it to your root directory depending on your tech stack.

Method 1: WordPress (No Coding Required)

  1. Generate Your File: Open the LLMrush LLMs.txt Generator, enter your website URL, and customize your top pages and descriptions.
  2. Deploy via Plugin or Root Upload:
  • Option A (Plugin): Use a lightweight /llms.txt plugin (such as RankMath’s built-in LLMs.txt module or our official BotVantage – AI Crawler Monitor & LLMs.txt Generator plugin to serve /llms.txt dynamically without touching server files.
  • Option B (Manual Upload): Save your generated text as llms.txt (UTF-8 plain text) and upload it directly into your public_html root folder via Hostinger File Manager, cPanel, or SFTP.
  1. Verify Live URL: Visit https://yourdomain.com in an incognito browser window to confirm it loads as text/plain with a 200 OK status.

Method 2: Next.js (App Router or Pages Router)

In Next.js, any static file placed inside the public/ directory is automatically served at the root URL:

  1. Create a new file at public/llms.txt.
  2. Paste your validated Markdown content and save.
  3. Deploy your build—Next.js will serve it immediately at https://://yourdomain.com.

(For large documentation sites with hundreds of dynamic pages, you can also create an App Router route handler at app/llms.txt/route.ts that queries your CMS and returns a new Response(markdown, { headers: { 'Content-Type': 'text/plain; charset=utf-8' } }).)

Method 3: Static Sites (Astro, Hugo, Netlify, Vercel, Cloudflare Pages)

  1. Place llms.txt in your project’s static root folder (public/llms.txt for Astro/Vite, or static/llms.txt for Hugo).
  2. Ensure your _redirects or vercel.json rules do not rewrite .txt requests to a 404 or HTML fallback page.

5 Common llms.txt Mistakes That Break AI Parsing

The most frequent mistake site owners make is serving HTML instead of plain text or accidentally blocking AI search bots in robots.txt while hosting an /llms.txt file.

Before sharing your file, run it through our Free LLMs.txt Validator and AI Visibility Checker to avoid these five pitfalls:

  1. Returning an HTML 200 Page (Soft 404): Some WordPress caching plugins or SPA routers wrap /llms.txt in HTML tags (<!DOCTYPE html>). Always verify the response header is text/plain or text/markdown.
  2. Blocking OAI-SearchBot in robots.txt: Hosting /llms.txt is useless if your robots.txt blocks OAI-SearchBot, ClaudeBot, or PerplexityBot. Remember: you can block GPTBot (model training) while allowing OAI-SearchBot (live ChatGPT Search citations).

Frequently Asked Questions (FAQ)

Does Google require an llms.txt file for SEO rankings?

No, Google has stated that traditional Google Search rankings rely on standard crawling, sitemap.xml, and page quality signals rather than llms.txt. However, llms.txt is built specifically for Large Language Models, AI coding assistants, and retrieval-augmented answer engines like ChatGPT Search, Perplexity, and Claude.

Where should the llms.txt file be located?

The llms.txt file must be placed in the root directory of your domain so it is accessible at yourdomain.com. Placing it inside a subfolder (such as /blog/llms.txt) violates the specification and prevents automated AI crawlers from discovering it.

What is the difference between llms.txt and llms-full.txt?

llms.txt is a concise, structured index of links and short descriptions pointing to your key pages. llms-full.txt is an optional companion file that concatenates the complete plain-text Markdown content of your entire documentation or knowledge base into a single file for deep ingestion.

How can I test if my llms.txt file is working properly?

You can paste your URL into the free LLMrush LLMs.txt Validator to verify Markdown syntax, H1/H2 structure, HTTP status codes, and link validity, or run a complete domain scan with the LLMrush AI Visibility Checker.

LLMrush AI Search Insights

Stay Ahead of AI Search

Subscribe today to be updated about our progress in articles sent directly to your inbox.

No spam. Just useful AI search insights. Unsubscribe anytime.

Join the Conversation

Share your thoughts, questions, or feedback about this article.

Leave a Comment

Your email address will not be published.

Avatar photo
Written by

Zulfiqar Ali

Zulfiqar Ali is the Founder & CEO of LLMrush. With 8+ years in revenue-driven SEO. He has helped businesses acquire millions of users through organic growth. At LLMrush, he focuses on AI search visibility, GEO and technical SEO, helping businesses strengthen their presence across search engines and AI-powered platforms.

Follow on LinkedIn