An llms.txt file is a markdown document placed at your domain root that tells AI systems which pages matter most. Implementing one correctly takes about an hour, but most teams get it wrong by either including too much or structuring it poorly.

This guide walks through the full implementation process: auditing your content, writing the file, choosing what to include for your specific site type, validating the output, and measuring whether it makes any difference. You'll find ready-to-use templates for SaaS companies, e-commerce stores, publishers, and agencies.

TL;DR

llms.txt is a curated markdown index at your domain root that guides AI systems to your most important content. Implementation is straightforward, but the value comes from what you choose to include, not the file itself.

  • Audit your site for the 10-30 pages that best represent your brand, product, and expertise. Everything else stays out.
  • Use the markdown schema strictly: H1 for brand name, blockquote for description, H2 sections for content groups, and a ## Optional section for secondary resources.
  • Link to clean markdown (.md) versions of pages whenever possible. AI systems parse markdown far more reliably than cluttered HTML.
  • Validate your file with the llmstxt.org directory checker or by feeding it directly to ChatGPT or Claude and asking what they understand about your brand.
  • llms.txt has not shown measurable AI visibility uplift yet, but it costs almost nothing to implement and positions your site for future crawler evolution.

An llms.txt file is a standardized markdown document hosted at `yourdomain.com/llms.txt`. It gives AI systems a curated map of your most important content: documentation, pricing, policies, product pages, and anything else you want large language models to prioritize when generating answers about your brand.

Think of it as the third layer in your site's machine-readable stack:

  • robots.txt tells crawlers what they can and cannot access
  • sitemap.xml lists URLs for search engine indexing
  • llms.txt tells AI systems which content is most important and where to find clean versions of it

The concept was introduced by Jeremy Howard (creator of fast.ai) and has gained traction among developer-focused companies, SaaS platforms, and documentation-heavy sites. As of mid-2026, the llmstxt.org directory lists hundreds of companies that have published llms.txt files, from startups to enterprises.

If you want a deeper dive into what llms.txt is and whether it currently impacts AI visibility, read our explainer on llms.txt and AI search visibility. This guide focuses purely on the technical implementation.

💡
Set expectations early: llms.txt is not a visibility silver bullet

Based on Superlines' analysis of multiple accounts with llms.txt files implemented for over eight months, there has been no measurable uplift in AI search visibility. Most AI crawlers access the file only marginally. Implement it as a low-cost, future-oriented enhancement, not as a core growth lever.

Does Google Treat llms.txt Differently?

No. Google addressed this directly in its May 2026 AI search optimization guidance: "You don't need to create new machine readable files, AI text files, markup, or Markdown to appear in generative AI search." Google may discover and crawl many file types beyond HTML, but that does not mean llms.txt receives special treatment.

This is worth understanding before you invest time. The file will not hurt your site, and it may become more relevant as AI retrieval systems evolve. But right now, the primary value is organizational: it forces you to identify and curate your most important content, which is a useful exercise regardless of whether crawlers read the file.

How to Implement llms.txt in 5 Steps

Here is the complete implementation process. Most teams can finish this in under two hours.

Step 1: Audit Your High-Value Content

Before writing a single line of markdown, identify the 10-30 pages that best represent your brand. Ask yourself: "If an AI system could only read 20 pages from my site, which ones would I want it to see?"

Pages to prioritize:

  • Core product or service pages
  • Pricing and plan details
  • API documentation and integration guides
  • Key policies (privacy, terms, returns, SLAs)
  • Onboarding or getting-started guides
  • Your most authoritative blog posts or research
  • Case studies with specific data points

Pages to exclude:

  • Navigation-heavy landing pages with little substance
  • Deprecated documentation or legacy product pages
  • Marketing pages with mostly visual content and minimal text
  • Internal tools or admin pages
  • Duplicate content (pick the canonical version)

AI Overviews now appear in 25.11% of Google searches, which means a growing share of your audience encounters AI-generated answers before they ever reach your site. The pages you include in llms.txt should be the ones you want AI systems to reference when generating those answers.

Step 2: Create Clean Markdown Versions

llms.txt works best when it links to content that AI systems can parse without fighting through navigation bars, cookie banners, JavaScript widgets, and layout code. The ideal target is a clean markdown (.md) file for each important page.

Options for generating markdown versions:

  1. Manual conversion: Write .md files for your top 10-15 pages. This gives you the most control over what AI systems see.
  2. Automated mirroring: Tools like Mintlify, Docusaurus, or custom scripts can generate markdown from your existing HTML docs.
  3. CMS-native markdown: If your CMS stores content in markdown (Ghost, Hugo, Astro, many headless CMS platforms), you may already have .md versions available.
  4. llms-full.txt alternative: Instead of individual .md files, some companies create a single `llms-full.txt` file that concatenates all important content into one document. This is simpler but less granular.

Markdown formatting best practices:

  • Use clear heading hierarchy (H1 for page title, H2/H3 for sections)
  • Include code blocks for technical content
  • Keep paragraphs short (3-4 sentences max)
  • Remove all navigation, footer, and sidebar content
  • Include structured data like pricing tables as markdown tables

Step 3: Write Your llms.txt File

The file follows a specific markdown schema. Here is the structure:

# Your Brand Name

> One to two sentence description of what your company does and who it serves.

Key terms: [comma-separated list of important brand terms, product names, or concepts]

## Docs
- [Page Title](https://yourdomain.com/docs/page.md): Brief description of what this page covers
- [Another Page](https://yourdomain.com/docs/another.md): Brief description

## Pricing
- [Pricing Overview](https://yourdomain.com/pricing.md): Current plans, tiers, and limits

## Policies
- [Privacy Policy](https://yourdomain.com/privacy.md): Data handling and user rights
- [Terms of Service](https://yourdomain.com/terms.md): Usage terms and conditions

## Support
- [Getting Started](https://yourdomain.com/docs/quickstart.md): Setup and onboarding guide
- [FAQ](https://yourdomain.com/faq.md): Common questions and answers

## Optional
- [Company History](https://yourdomain.com/about.md): Background context, not essential
- [Blog Archive](https://yourdomain.com/blog.md): Index of published articles
  

Schema rules to follow:

  • H1 header: Your brand or company name (only one H1)
  • Blockquote: A concise summary of your company's purpose
  • Key terms line: Important brand vocabulary that helps AI systems understand your domain
  • H2 sections: Group content by category (Docs, Pricing, Policies, Support, etc.)
  • Link format: `Title: Description` for each resource
  • ## Optional section: Reserved for secondary content that can be skipped when context length is limited

Step 4: Deploy and Validate

Place the file at your domain root: `https://yourdomain.com/llms.txt`

Deployment checklist:

  • The file must be publicly accessible (no authentication required)
  • Serve it with a `text/plain` or `text/markdown` content type
  • Do not block it in robots.txt
  • Ensure it loads quickly (no server-side rendering delays)
  • If you use a CDN, make sure the file is cached and served from the edge

Validation methods:

  1. Manual LLM test: Copy your llms.txt content into ChatGPT or Claude and ask: "Based on this file, what does this company do? What are its main products? What is its pricing?" If the AI gives accurate answers, your file is well-structured.
  2. llmstxt.org directory: Submit your file to the llmstxt.org directory for listing and basic validation.
  3. Link checking: Verify that every URL in the file returns a 200 status code and points to actual content (not redirects or error pages).
  4. Markdown linting: Run the file through a markdown linter to catch formatting issues that could confuse parsers.

Step 5: Set Up a Maintenance Schedule

An outdated llms.txt file is worse than no file at all. If your pricing changes, your API docs get restructured, or you launch new products, the file needs to reflect those changes.

Recommended maintenance cadence:

  • Monthly: Quick review to check for broken links and outdated descriptions
  • Quarterly: Full audit to add new content, remove deprecated pages, and update the key terms line
  • On major launches: Update immediately when you ship new products, change pricing, or restructure documentation

llms.txt vs llms-full.txt: Which Should You Use?

The llms.txt specification includes two file types:

Featurellms.txtllms-full.txt
**Purpose**Curated index with linksComplete content in one file
**Size**Small (1-5 KB typically)Large (can be 100+ KB)
**Content**Links to .md files with descriptionsFull text of all important pages concatenated
**Best for**Sites with many pages, documentation-heavy productsSmaller sites, single-product companies
**Maintenance**Update links when pages changeRegenerate entire file when any content changes
**AI parsing**Requires following links to get full contentAll content available in one request

Our recommendation: Start with llms.txt (the index version). It is easier to maintain and gives you more control over what gets included. Only create llms-full.txt if you have a small site (under 20 important pages) or if you want to provide a single-file context dump for AI coding assistants.

llms.txt Templates for Different Site Types

SaaS Company Template

# Acme Analytics

> Acme Analytics is a real-time product analytics platform that helps SaaS teams track user behavior, measure feature adoption, and reduce churn.

Key terms: event tracking, funnel analysis, cohort reports, feature flags, A/B testing, user segmentation, Acme SDK.

## Product Documentation
- [Getting Started](https://acme.com/docs/quickstart.md): Install the SDK and send your first event in under 10 minutes
- [Event Tracking](https://acme.com/docs/events.md): How to define, send, and query custom events
- [Funnel Analysis](https://acme.com/docs/funnels.md): Build conversion funnels and identify drop-off points
- [API Reference](https://acme.com/docs/api.md): REST API endpoints, authentication, rate limits, and response formats

## Pricing
- [Plans and Pricing](https://acme.com/pricing.md): Free tier (10K events/mo), Growth ($49/mo), Scale ($199/mo), Enterprise (custom)

## Integrations
- [Segment Integration](https://acme.com/docs/segment.md): Connect Acme to your Segment workspace
- [Webhook Setup](https://acme.com/docs/webhooks.md): Send event data to external services in real time

## Policies
- [Privacy Policy](https://acme.com/privacy.md): GDPR and CCPA compliance, data retention, and user rights
- [Terms of Service](https://acme.com/terms.md): Usage terms, SLA guarantees, and acceptable use

## Optional
- [Changelog](https://acme.com/changelog.md): Recent product updates and feature releases
- [Case Studies](https://acme.com/customers.md): How teams use Acme to improve retention
  

E-Commerce Store Template

# GreenThread Apparel

> GreenThread is a sustainable clothing brand offering organic cotton basics, recycled activewear, and eco-friendly accessories for men and women.

Key terms: organic cotton, recycled polyester, sustainable fashion, carbon-neutral shipping, size-inclusive, GreenThread Rewards.

## Product Categories
- [Women's Basics](https://greenthread.com/collections/womens-basics.md): T-shirts, tanks, and everyday essentials in organic cotton
- [Men's Activewear](https://greenthread.com/collections/mens-active.md): Performance wear made from recycled materials
- [Accessories](https://greenthread.com/collections/accessories.md): Bags, hats, and socks from sustainable sources

## Shopping Information
- [Sizing Guide](https://greenthread.com/sizing.md): Measurements for all categories, region-specific charts
- [Shipping and Delivery](https://greenthread.com/shipping.md): Free shipping over $75, carbon-neutral delivery options
- [Returns and Exchanges](https://greenthread.com/returns.md): 60-day return window, free return shipping

## Sustainability
- [Our Materials](https://greenthread.com/materials.md): Sourcing standards, certifications, and supplier transparency
- [Impact Report 2025](https://greenthread.com/impact-2025.md): Carbon footprint, water usage, and waste reduction data

## Policies
- [Privacy Policy](https://greenthread.com/privacy.md): How we handle customer data
- [Terms of Service](https://greenthread.com/terms.md): Purchase terms and conditions

## Optional
- [Brand Story](https://greenthread.com/about.md): Founded in 2019, mission and values
- [Blog](https://greenthread.com/blog.md): Sustainable fashion tips and industry news
  

Publisher or Content Site Template

# TechPulse

> TechPulse is an independent technology publication covering AI, cloud infrastructure, developer tools, and enterprise software with original reporting and analysis.

Key terms: AI infrastructure, cloud computing, developer tools, enterprise SaaS, startup funding, product reviews, TechPulse Research.

## Editorial Coverage
- [AI and Machine Learning](https://techpulse.com/topics/ai.md): Coverage of AI models, infrastructure, and enterprise adoption
- [Cloud Infrastructure](https://techpulse.com/topics/cloud.md): AWS, Azure, GCP analysis and migration guides
- [Developer Tools](https://techpulse.com/topics/devtools.md): Reviews and comparisons of development platforms

## Research
- [2026 AI Infrastructure Report](https://techpulse.com/research/ai-infra-2026.md): Market sizing, vendor analysis, and adoption benchmarks
- [Cloud Cost Optimization Guide](https://techpulse.com/research/cloud-costs.md): Strategies for reducing cloud spend without sacrificing performance

## About
- [Editorial Standards](https://techpulse.com/standards.md): How we research, fact-check, and disclose conflicts
- [Contact and Tips](https://techpulse.com/contact.md): How to reach the editorial team

## Optional
- [Newsletter Archive](https://techpulse.com/newsletter.md): Weekly digest of top stories
- [Podcast](https://techpulse.com/podcast.md): Interview series with technology leaders
  

Agency Template

# Meridian Digital

> Meridian Digital is a performance marketing agency specializing in SEO, GEO, paid media, and content strategy for B2B SaaS companies.

Key terms: SEO, GEO, generative engine optimization, paid media, content strategy, B2B SaaS marketing, AI search visibility, Meridian Method.

## Services
- [SEO Services](https://meridian.agency/services/seo.md): Technical SEO, content optimization, and link building for SaaS
- [GEO Services](https://meridian.agency/services/geo.md): AI search visibility tracking, citation optimization, and LLM content strategy
- [Paid Media](https://meridian.agency/services/paid.md): Google Ads, LinkedIn Ads, and programmatic campaigns

## Case Studies
- [How We Grew Acme's Organic Traffic 340%](https://meridian.agency/cases/acme.md): 18-month SEO engagement with measurable results
- [AI Search Visibility for FinTech Co](https://meridian.agency/cases/fintech.md): GEO strategy that increased ChatGPT citations by 5x

## Resources
- [The Meridian Method](https://meridian.agency/method.md): Our proprietary framework for integrated SEO + GEO strategy
- [GEO Readiness Assessment](https://meridian.agency/geo-assessment.md): Free self-assessment tool for evaluating AI search readiness

## Policies
- [Privacy Policy](https://meridian.agency/privacy.md): Client data handling and confidentiality
- [Terms of Engagement](https://meridian.agency/terms.md): Contract terms, deliverables, and SLAs

## Optional
- [Team](https://meridian.agency/team.md): Leadership bios and expertise areas
- [Blog](https://meridian.agency/blog.md): Marketing insights and industry analysis
  

How to Handle llms.txt on Different Platforms

The deployment method varies depending on your tech stack. Here are the most common approaches.

Static Sites (Next.js, Astro, Hugo, Gatsby)

Place the file in your `public/` or `static/` directory. It will be served automatically at the domain root.

  • Next.js: Add `llms.txt` to the `public/` folder
  • Astro: Add to `public/` folder
  • Hugo: Add to `static/` folder
  • Gatsby: Add to `static/` folder

WordPress

Two options:

  1. Plugin approach: Use a plugin like "LLMs.txt for WordPress" that auto-generates the file from your content
  2. Manual approach: Upload `llms.txt` to your WordPress root directory via FTP/SFTP (same level as `wp-config.php`)

If your WordPress site uses heavy page builders (Elementor, Divi), the markdown versions of your pages become especially important. Page builder HTML is notoriously difficult for AI systems to parse.

Shopify

Shopify does not allow files at the domain root by default. Workarounds:

  1. Custom proxy: Set up a Cloudflare Worker or similar proxy to serve the file at `/llms.txt`
  2. Subdomain: Host the file at `docs.yourstore.com/llms.txt` (less ideal but functional)
  3. Page-based: Create a Shopify page at `/pages/llms-txt` and link to it from your sitemap (non-standard but discoverable)

Custom Applications

If you control your server, add a route that serves the file with the correct content type:

// Express.js example
app.get('/llms.txt', (req, res) => {
  res.type('text/plain');
  res.sendFile(path.join(__dirname, 'llms.txt'));
});
  

How to Measure Whether llms.txt Is Working

This is the hardest part, and honesty matters here. As of August 2026, there is no definitive way to prove that llms.txt directly caused an improvement in AI search visibility. But there are signals you can track.

What to monitor:

  1. AI crawler access logs: Check your server logs for requests to `/llms.txt`. Look for user agents like `GPTBot`, `ClaudeBot`, `PerplexityBot`, `Googlebot`, and `Bingbot`. If crawlers are not requesting the file, it is not being read.
  2. AI search visibility metrics: Track your brand's visibility, citation rate, and share of voice across AI platforms over time. If you implement llms.txt alongside other GEO best practices, isolating its specific impact will be difficult, but directional trends still matter.
  3. Content accuracy in AI answers: Periodically ask ChatGPT, Gemini, Perplexity, and Claude questions about your product. Are the answers accurate? Do they reference current pricing? Do they describe your product correctly? If accuracy improves after implementing llms.txt, that is a positive signal (though not proof of causation).
  4. Citation URL patterns: If AI systems start citing the specific URLs you included in llms.txt more frequently, that suggests the file may be influencing retrieval. Tools like AI search visibility dashboards can track which of your URLs get cited most often.
31.3%
of US internet users now use generative AI search
According to eMarketer's 2026 GEO/AEO analysis, nearly a third of US internet users interact with AI search tools, making structured content guidance increasingly relevant.

Common llms.txt Mistakes (and How to Avoid Them)

1. Including every page on your site

The most common mistake. llms.txt is a curated index, not a sitemap. If you include 500 URLs, you have defeated the purpose. AI systems will either ignore the file or treat everything as equally important, which is the same as treating nothing as important.

Fix: Cap your file at 10-30 links. If a page is not something you would want an AI to cite when answering questions about your brand, leave it out.

2. Linking to cluttered HTML instead of clean markdown

If your llms.txt links point to pages full of navigation bars, cookie consent popups, JavaScript widgets, and sidebar ads, AI systems will struggle to extract the useful content.

Fix: Create dedicated .md versions of your key pages, or at minimum, ensure your HTML pages use semantic markup that AI systems can parse cleanly.

3. Setting it and forgetting it

Your pricing changed six months ago. Your API docs were restructured. You launched two new products. But your llms.txt still points to the old pages.

Fix: Add llms.txt to your deployment checklist. Whenever you update pricing, restructure docs, or launch products, update the file.

4. Using the wrong content type

Some servers serve .txt files with incorrect MIME types, which can cause parsing issues.

Fix: Ensure your server returns `Content-Type: text/plain` or `Content-Type: text/markdown` for the file.

5. Blocking the file in robots.txt

If your robots.txt disallows access to `/llms.txt`, crawlers that respect robots.txt will never see it.

Fix: Check your robots.txt to make sure there is no `Disallow: /llms.txt` rule. You can also add an explicit `Allow: /llms.txt` for clarity.

How llms.txt Fits Into Your Broader GEO Strategy

llms.txt is one small piece of a larger generative engine optimization strategy. It sits in the technical layer alongside structured data, semantic HTML, and crawl optimization.

Here is where it fits in the GEO stack:

  • Content layer: High-quality, authoritative content that answers real user questions (this is where most of your effort should go)
  • Technical layer: Semantic HTML, structured data (Schema.org), llms.txt, clean URL architecture, fast page loads
  • Distribution layer: Third-party citations, reviews on G2/Capterra, Reddit and YouTube presence, backlinks from authoritative sources
  • Measurement layer: Tracking visibility, citations, and share of voice across AI platforms

We can see from Superlines data, that citation patterns vary significantly across ChatGPT, Gemini, Perplexity, and Claude. Each platform has different retrieval mechanisms, which means no single technical optimization (including llms.txt) will work uniformly across all of them.

The companies seeing the best results in AI Search are the ones investing across all four layers, not just the technical one.

💡
llms.txt is a complement, not a substitute

If your content is thin, your site is slow, or your brand has no third-party citations, llms.txt will not fix those problems. Start with the content and distribution layers. Add llms.txt once your fundamentals are solid.

Implementation Checklist

Use this checklist to verify your llms.txt implementation is complete:

  • [ ] Audited site for 10-30 highest-value pages
  • [ ] Created clean markdown (.md) versions of key pages (or confirmed CMS outputs clean HTML)
  • [ ] Written llms.txt with correct schema (H1, blockquote, H2 sections, ## Optional)
  • [ ] Included key terms line with important brand vocabulary
  • [ ] Each link has a brief description explaining what the page covers
  • [ ] File deployed at `yourdomain.com/llms.txt`
  • [ ] File returns 200 status code with correct content type
  • [ ] File is not blocked by robots.txt
  • [ ] Tested by pasting into ChatGPT/Claude and verifying accurate comprehension
  • [ ] Submitted to llmstxt.org directory
  • [ ] Set calendar reminder for monthly link check and quarterly full audit
  • [ ] (Optional) Created llms-full.txt for single-file context dump

Start Building Your AI Content Foundation

llms.txt is a small but meaningful step toward making your site AI-readable. It will not transform your visibility overnight, and the data so far suggests its direct impact is minimal. But it costs almost nothing to implement, it forces a useful content audit, and it positions your site for whatever comes next as AI retrieval systems evolve.

The bigger opportunity is in the content itself. The brands winning in AI search are the ones producing authoritative, well-structured content that AI systems want to cite, not just the ones with the right technical files in place. If you want to understand where your brand currently stands across ChatGPT, Gemini, Perplexity, and other AI platforms, Superlines tracks your visibility, citations, and share of voice in real time, so you can see exactly which content is working and where the gaps are. Start a free trial to see your AI visibility baseline before and after implementing llms.txt.

Frequently Asked Questions

How long does it take to implement llms.txt?
Most teams can implement llms.txt in under two hours. The bulk of the time goes into auditing which pages to include and creating clean markdown versions. Writing and deploying the file itself takes about 15 minutes.
Does llms.txt improve AI search visibility?
Based on current data, llms.txt has not shown measurable improvements in AI search visibility. Superlines has tracked multiple accounts with the file implemented for over eight months and observed no significant uplift. It is best treated as a low-cost, future-oriented enhancement rather than a proven growth lever.
What is the difference between llms.txt and llms-full.txt?
llms.txt is a curated index that links to individual markdown files for each important page. llms-full.txt concatenates all important content into a single file. llms.txt is better for larger sites with many pages, while llms-full.txt works well for smaller sites or when you want to provide a single-file context dump for AI coding assistants.
How many pages should I include in llms.txt?
Aim for 10 to 30 pages. The file should be a curated selection of your most important content, not a comprehensive list of every URL on your site. Including too many pages defeats the purpose of curation and makes it harder for AI systems to identify what matters most.
Can I use llms.txt on Shopify?
Shopify does not natively support files at the domain root. Workarounds include setting up a Cloudflare Worker or similar proxy to serve the file at the correct path, hosting it on a subdomain, or creating a Shopify page as a non-standard alternative. The proxy approach is the most reliable option.

Tags