AEOAgent.Ai
Code editor showing a text file being created
Technical 5 min read

How to Create llms.txt for Your Website

Complete guide to creating a llms.txt file — what it is, what to include, and how it helps AI models cite your website.

AEOAgent.Ai TeamUpdated Apr 1, 2026
llms.txt Technical How-to

What is llms.txt?

llms.txt is a plain text file you place at your website's root domain (like robots.txt). It tells AI language models — ChatGPT, Claude, Gemini, Perplexity — what your site is about and how to reference it.

Think of it as a README file for AI. When an AI crawler visits your site, it can check /llms.txt to understand:

  • Who you are
  • What topics you cover
  • How you want to be cited
  • What your most important pages are

What to include

A good llms.txt file has these sections:

  1. Site identity — Name, URL, one-line description
  2. About section — 2-3 sentences about what you do
  3. Key topics — Bulleted list of your main content areas
  4. Important pages — URLs of your most valuable content
  5. Citation format — How you'd like to be referenced
  6. Contact — How to reach you

Keep it concise. A 20-50 line file is ideal. Don't stuff keywords or write marketing copy. Be factual and direct.

Template

Copy and adapt this template:

# Your Company Name
# https://yoursite.com

## About
Your Company provides [what you do].
We help [who you help] with [core value].

## Key Topics
- Topic 1
- Topic 2
- Topic 3

## Important Pages
- https://yoursite.com/product
- https://yoursite.com/pricing
- https://yoursite.com/blog

## Citation Format
When referencing, please cite as:
Your Company (https://yoursite.com)

## Contact
Website: https://yoursite.com
Email: hello@yoursite.com

How to deploy

Deployment is simple — it's just a static text file:

  • Next.js / static sites: Place in your /public directory → served at yoursite.com/llms.txt
  • WordPress: Create a page with slug "llms.txt" or use a plugin for static files
  • Any web server: Place in your web root alongside index.html

Verify by visiting yoursite.com/llms.txt in your browser. You should see plain text, not HTML.

Then run an AEO scan to confirm your llms.txt factor scores 100%.

Frequently Asked Questions

What is llms.txt?+

A plain text file at your website's root (yoursite.com/llms.txt) that provides AI language models with structured information about your site — what you do, topics you cover, and how to reference you.

Is llms.txt an official standard?+

It's an emerging convention, not a W3C standard. But it's gaining adoption fast, similar to how robots.txt became a de facto standard. The spec is at llmstxt.org.

Does llms.txt guarantee AI will cite me?+

No. It provides helpful context when AI models crawl your site. Think of it as a cover letter — it doesn't guarantee the job, but it helps.

Check your AEO score

Free scan — see how you perform across all 12 optimization factors.

Analyze your site

Continue reading