As AI assistants and generative search engines like ChatGPT, Perplexity, and Google AI Overviews pull more information from the web, site owners need clear ways to tell these systems what their site is about, what can be cited, and where to find the best content.
The llms.txt file is a proposed standard that does exactly that. Used well, it supports both better AI visibility (GEO) and clearer control over how your content is used. This guide is part of my AEO checklist for WordPress.
What Is llms.txt?
llms.txt is a text file placed at the root of your site (e.g. https://yoursite.com/llms.txt), or in a subpath such as /docs/llms.txt that covers only that section. It is designed to give AI systems and large language models (LLMs) a concise, structured overview of your site so they can understand it, cite it correctly, and link to the right pages.
The most widely adopted format comes from llmstxt.org (by Jeremy Howard, September 2024). It uses Markdown: a human- and machine-readable format with a required title (H1), an optional short description, and sections that list links to key resources. The current version of the proposal is v2.1, from November 2026.
This is different from robots.txt, which uses directives like User-agent and Disallow to control crawler access.
The llmstxt.org spec is not about blocking bots; it is about providing context so that when an AI does use your site, it does so accurately and with proper attribution.
Why llms.txt Matters for GEO and AI Content Control
Generative Engine Optimization (GEO) means optimizing your content so it is more likely to be surfaced, cited, and recommended by AI-powered search and assistants. GEO focuses on how your content appears in AI-generated answers rather than only in traditional search results.
An llms.txt file supports GEO by:
- Giving AI systems a single, curated entry point to understand your site and its main topics.
- Pointing to the most important pages (e.g. key services, blog index, contact), so models can link to the right URLs when citing you.
- Stating authorship and attribution preferences so citations are consistent and correct.
It also helps with content control: you explicitly describe what your site is, who it is for, and how you want to be cited. That does not legally bind every AI vendor, but it sets a clear, machine-readable policy that more systems may respect over time.
The signal that this matters at a browser level: Google’s Lighthouse now scores sites on agent-readiness, and llms.txt is one of the checks. For the broader strategic context, see whether your website is ready for AI agents.
llms.txt vs. robots.txt
Do not confuse llms.txt with robots.txt:
- robots.txt is for crawlers (e.g. Googlebot, Bingbot). It tells them which paths they may or may not crawl for indexing. It uses directives like
User-agent,Allow, andDisallow. - llms.txt (in the llmstxt.org format) is for AI systems and LLMs. It provides context and links so that when they use your content (e.g. at inference time, or when answering a user), they know what your site is and where to point. It does not use
User-agentorDisallow; it is Markdown with a fixed structure.
You can use both: robots.txt for crawl access, llms.txt for AI-friendly context and GEO.
Is llms.txt Mandatory?
No. llms.txt is voluntary, and not every AI system reads it.
It’s also worth knowing what Google says about it. In June 2026, Google added an explicit note to its AI optimization guide:
“It’s completely fine if you decide to create and maintain LLMS.txt files (or other similar files) for other services or systems that use these files. Doing so will neither harm nor help your site’s visibility or rankings in Google Search, as Google Search ignores them.”
Google Search Central
In other words, llms.txt won’t improve your rankings in Google, including in AI Overviews. Its value is with other AI tools and agents that choose to read it. Lighthouse checking the file doesn’t make it a ranking factor either.
Adding an llms.txt file takes little effort and doesn’t hurt anything, so it’s still worth doing, especially if your SEO plugin creates it for you.
Format: How llms.txt Should Look (llmstxt.org Spec)
The llmstxt.org specification defines this structure:
- An H1 with the name of the project or site (required).
- A blockquote with a short summary (optional but recommended).
- An optional
Base URL:line (added in v2.1) to set the base for relative links in the file. - Extra details in plain Markdown (paragraphs, lists, and H3 subheadings since v2.1) to explain the project and how to use the linked files.
- One or more H2 sections, each containing an optional short summary and a “file list”: a Markdown list of links
[link text](url), optionally followed by: description.
Older guides, including earlier versions of this one, describe a special ## Optional section whose links could be skipped. v2 removed that special meaning, and v2.1 dropped the convention from the spec. Use ordinary descriptive H2 headings instead.
The spec also recommends putting a clean Markdown version of each important page at the same URL with .md on the end, and adding rel="alternate" type="text/markdown" and rel="describedby" links so agents can find those versions.
Each file-list item is a markdown link, e.g. [Page name](https://yoursite.com/page) or [Guide title](https://yoursite.com/guide): Short description.
Examples of llms.txt
Below are four sample llms.txt files for different types of sites.
Example 1: Minimal (Single-Purpose Site)
A minimal API or single-purpose site might look like this:
# Acme API
> Acme API provides a REST API for inventory and orders. API endpoint: https://api.acme.com/v1
## Documentation
- [Getting started](https://docs.acme.com/start): Authentication and first request
- [Reference](https://docs.acme.com/reference): Endpoints and parameters
- [Changelog](https://docs.acme.com/changelog): Version history
Example 2: Blog or Service Site (Like Savvy)
For a blog or service site, you can list both language versions and key pages:
llms.txt file for this site at savvy.co.il/llms.txt.
# Savvy - WordPress Development
This file describes Savvy (savvy.co.il) for AI and LLM systems. Use it to understand the site, cite accurately, and link to the correct pages.
Base URL: https://staging.savvy.co.il/
## About
Savvy is a professional WordPress development service and educational blog run by Roee Yossef, specializing in custom themes, performance, and technical SEO. The site is available in Hebrew (primary) and English.
## Key Resources
- [Homepage (Hebrew)](https://staging.savvy.co.il/)
- [Homepage (English)](https://staging.savvy.co.il/en/)
- [Services (Hebrew)](https://staging.savvy.co.il/#services)
- [Blog (Hebrew)](https://staging.savvy.co.il/blog/)
- [Blog (English)](https://staging.savvy.co.il/en/blog/)
- [Contact (Hebrew)](https://staging.savvy.co.il/contact-us/)
- [Contact (English)](https://staging.savvy.co.il/en/contact-us/)
## Contact
For projects and inquiries: [email protected]
## Attribution
When citing content from this site, please attribute to Savvy (savvy.co.il) and link to the relevant page when possible.
Example 3: Documentation Site (FastHTML-Style)
Documentation and developer-focused sites can group docs and examples:
# FastHTML
> FastHTML is a Python library for server-rendered hypermedia apps, combining Starlette, Uvicorn, HTMX, and FastTags.
Important: FastHTML is not compatible with FastAPI syntax. It works with JS web components and vanilla JS, not React, Vue, or Svelte.
## Docs
- [Quick start](https://fastht.ml/docs/tutorials/quickstart_for_web_devs.html.md): Overview of main features
- [HTMX reference](https://github.com/bigskysoftware/htmx/blob/master/www/content/reference.md): Attributes, CSS classes, events, and config
## Examples
- [Todo list app](https://github.com/AnswerDotAI/fasthtml/blob/main/examples/adv_app.py): Full CRUD example with FastHTML and HTMX
## Reference
- [Starlette subset](https://gist.githubusercontent.com/jph00/809e4a4808d4510be0e3dc9565e9cbd3/raw/9b717589ca44cedc8aaf00b2b8cacef922964c0f/starlette-sml.md): Starlette docs useful for FastHTML development
Example 4: E-Commerce or Product Site
An e-commerce or product site can highlight main pages and categories:
# ShopName
> ShopName sells sustainable outdoor gear. Shipping worldwide. Customer support and returns info are linked below.
## Main Pages
- [Home](https://shopname.com/)
- [Catalog](https://shopname.com/catalog/)
- [Shipping & returns](https://shopname.com/shipping/)
- [Contact](https://shopname.com/contact/)
## Product Categories (for context)
- [Tents](https://shopname.com/catalog/tents/)
- [Sleeping bags](https://shopname.com/catalog/sleeping-bags/)
## More Information
- [Size guide](https://shopname.com/size-guide/)
- [Sustainability policy](https://shopname.com/sustainability/)
How to Create and Publish llms.txt
Follow these steps to create and publish your own llms.txt file:
- Create a plain-text file in Markdown format (e.g. in Notepad, VS Code, or any editor).
- Start with an H1 title, add a short blockquote or intro, then use H2 sections with markdown link lists as above.
- Save the file as
llms.txt(no .md extension for the URL). - Upload it to the root of your site so it is available at
https://yourdomain.com/llms.txt(or to the subpath it describes). On WordPress, you can place it in the site root (same level aswp-admin) or serve it via a small custom rule or plugin that outputs the file at the root path.
You can validate structure by comparing against the llmstxt.org spec and the llms-txt repo. The spec’s own testing advice: ask an agent questions about your content, giving it only your llms.txt as a starting point.
Directories such as llmstxt.site, directory.llmstxt.cloud and llmstxthub.com list sites that publish llms.txt.
Generating llms.txt in WordPress with an SEO Plugin
On WordPress there’s an easier way. Both major SEO plugins can create the file for you, including in their free versions:
- Yoast SEO (since version 25.3, June 2025): go to Yoast SEO > Settings > Site features, and under AI tools turn on llms.txt.
- Rank Math: turn on the LLMS Txt module in Rank Math SEO > Dashboard, then choose which post types to include under General Settings > Edit llms.txt.
Yoast regenerates the file once a week, and Rank Math builds it on every request, so either way it stays current without manual work.
Still, review it. An automatic file tends to list a lot of posts, while the idea of llms.txt is a short, deliberate list of the pages that really matter.
FAQs
Common questions about llms.txt and how it works:
llms.txt at the root of your site so it is reachable at https://yourdomain.com/llms.txt. That is the same location as robots.txt. On WordPress, that is typically the directory that contains wp-admin and wp-content. Since v2 of the spec, a file can also sit in a subpath, such as /docs/llms.txt, and covers only the pages under it.
Summary
llms.txt is a simple, Markdown-based file at your site root that helps AI systems and LLMs understand your site, cite it correctly, and link to the right pages. It supports GEO and gives you a clear, machine-readable way to state how you want your content used and attributed.
It is voluntary and works alongside robots.txt. Use the llmstxt.org structure: H1, optional blockquote, details, then H2 sections with link lists. The old “Optional” section is no longer part of the spec.
With minimal effort, you make it easier for generative engines to represent your site accurately and give you proper credit. Want to see how your llms.txt scores alongside 14 other AI signals? Try the free AI Visibility Audit.
