llms.txt is a Markdown file at the root of a website that gives AI agents and large language models a short, curated map of your most important pages. It is useful for AI agents and coding tools, but Google says it neither helps nor harms visibility in Google Search, AI Overviews or AI Mode, so treat it as a cheap extra, not a ranking tactic.
In 2025 the file was sold as the “robots.txt for AI”. In 2026 the picture is much clearer: Google published official guidance on it, Chrome Lighthouse started auditing it, the proposal itself moved to version 2 and Rank Math ships a built-in generator. This guide explains what the file actually does, what it does not do, and seven checks to run before you add one to a WordPress site.
What is llms.txt?
llms.txt is a proposal published by Jeremy Howard of Answer.AI on 3 September 2024 at llmstxt.org. The idea is simple: a model or agent that lands on your site has limited context, and HTML pages full of menus, ads and scripts are hard to digest. A plain Markdown file at /llms.txt tells it, in a few hundred lines at most, what the site is and where the important content lives.
The format is intentionally minimal. According to the specification, the file contains, in this order:
- An H1 with the name of the site or project (the only required part).
- A blockquote with a short summary of what the site is about.
- Optional notes in normal paragraphs or lists.
- H2 sections with Markdown link lists:
[Page title](URL): short description. - An “Optional” section for secondary links an agent can skip when context is tight.
The specification was updated to version 2 on 10 August 2026. The main change is discovery: instead of guessing the path, an agent can find the file through a Link header or HTML link element with rel="describedby", and a page can point to a Markdown copy of itself with rel="alternate" and type="text/markdown". The proposal also notes that llms.txt is used most heavily for software documentation, where coding agents follow it to find API references.
llms.txt vs robots.txt vs sitemap.xml
The name invites a comparison with robots.txt, and that comparison causes most of the confusion. The file controls nothing. It cannot block a crawler, opt you out of training or remove you from AI answers.
| File | Job | Who reads it | Can it block bots? |
|---|---|---|---|
| robots.txt | Grants or withholds crawl access, bot by bot | Search engines and most AI crawlers | Yes, for crawlers that respect it |
| sitemap.xml | Lists every indexable URL for discovery | Google, Bing and other search engines | No |
| llms.txt | Curated Markdown summary and key links | AI agents and tools that choose to fetch it | No |
If you want to decide which AI bots may crawl or train on your content, that work still happens in robots.txt and in Search Console. We covered the tokens and rules in AI crawlers and robots.txt. For discovery of every page, your XML sitemap remains the right tool.

What Google says about llms.txt in 2026
On 15 May 2026 Google published its first dedicated guide, Optimizing your website for generative AI features on Google Search. It lists llms.txt among the things site owners can ignore for Google Search, next to content chunking and AI-specific rewriting. The core message of the guide is that AI Overviews and AI Mode are built on the same Search index and ranking systems, so optimizing for them is still SEO.
On 15 June 2026 Google added a short clarification to the same guide. In short, it is fine to create and maintain llms.txt files for other services that use them, but doing so will not harm nor help your visibility or rankings in Google Search, because Google Search ignores them. Search Engine Land reported the update the next day.
So if your goal is to be cited in AI Overviews, this file will not move the needle. What does help is covered in our guide to AI Overviews SEO, and you can measure the result in the Generative AI performance report in Search Console.
Where llms.txt still helps: AI agents and Lighthouse
A different part of Google treats the file differently. Chrome Lighthouse has an llms.txt audit in its Agentic browsing category. The documentation explains that without the file, agents may spend more time crawling a site to understand its structure. The audit logic matters for site owners:
- If
/llms.txtreturns 404, the audit is marked Not Applicable, because the file is optional. - If the request ends in a server error, Lighthouse flags the page.
In other words, a missing file costs you nothing in Lighthouse, but a broken one does. The other real audience is AI tooling. OpenAI, Anthropic and Google Gemini all publish llms.txt files for their own developer documentation, and coding assistants are built to follow them. Whether general AI search crawlers fetch llms.txt from ordinary blogs is not confirmed by any major provider, so do not count on it.
Our experience with llms.txt on a WordPress blog
We checked our own setup while writing this article. Rank Math’s LLMS Txt module was already switched on, configured for posts, pages, web stories and categories with the default limit of 100 items. Yet https://waveniche.com/llms.txt still returned the theme’s 404 page. The module was active, but WordPress did not have a rewrite rule for the file, which usually means permalinks were not saved after the module was enabled.
This is the most common pattern we see on WordPress sites: the owner believes the file is live because a toggle is green, but nobody has opened the URL. Lighthouse is forgiving here because a 404 counts as Not Applicable, so the problem stays invisible. The second pattern is the opposite: a plugin dumps every post into the file, including thin and outdated pages, which defeats the whole point of a curated summary.
How to add llms.txt in WordPress: 7 checks
- Decide if you need it. Documentation, SaaS, tools and API sites benefit most. For a small content site it is optional, low effort and low impact.
- Use one generator only. If you run Rank Math, enable the LLMS Txt module under Rank Math SEO, Dashboard, then configure it under General Settings, Edit llms.txt, as described in the Rank Math knowledge base. Do not add a second llms.txt plugin on top.
- Curate the content. Choose post types and taxonomies on purpose and lower the item limit. Your best guides, service pages and category hubs matter; tag archives and thin posts do not.
- Write a real summary. Use the Additional content field for a one or two sentence description of who the site is for, plus links to contact and about pages.
- Save permalinks and open the URL. After enabling the module, go to Settings, Permalinks, click Save, then load
/llms.txtin a browser. You should get HTTP 200 with plain text, not an HTML 404 page. - Exclude what should stay private. Rank Math leaves noindex content out of the file. Remember that the file is public, so never list drafts, staging links or customer areas.
- Review it every quarter. Check that the URLs still resolve, that cache plugins serve the current version and that the summary matches what the site sells today.
An llms.txt example for a niche blog
This short example follows the structure of the specification. Replace the names and URLs with your own:
# Example Niche Blog
> Practical guides on SEO, AI search and monetization for small niche websites.
Articles are written and updated by the site team. Contact us before republishing.
## Guides
- [AI crawlers and robots.txt](https://example.com/ai-crawlers-robots-txt/): which AI bots to allow or block
- [AI Overviews SEO](https://example.com/ai-overviews-seo/): how Google picks cited sources
## Company
- [About](https://example.com/about/): who writes the site
- [Contact](https://example.com/contact/): questions and partnerships
## Optional
- [Archive](https://example.com/blog/): all older postsKeep it short. If you also want to offer the full text of your guides, the convention is a separate llms-full.txt file, but on a blog that file grows quickly and is rarely worth maintaining.
Checklist: llms.txt decision table
| Your goal | Does llms.txt help? | What to do instead or as well |
|---|---|---|
| Rank higher in Google | No | Helpful content, technical SEO, internal links |
| Get cited in AI Overviews or AI Mode | No | Indexable pages with clear answers and snippets allowed |
| Block AI training | No | robots.txt training tokens |
| Help coding agents use your docs or API | Yes | llms.txt plus Markdown versions of key pages |
| Pass Lighthouse agentic browsing checks | Only if it loads without errors | Return 200 or a clean 404, never a 5xx |
| Give AI assistants a summary of your site | Possibly, adoption is uneven | Clear About page and consistent entity data |
Common llms.txt problems
| Problem | Cause | Fix |
|---|---|---|
| /llms.txt shows the theme 404 page | Module enabled but rewrite rules not refreshed | Save permalinks, purge the cache, test the URL again |
| File lists hundreds of weak URLs | All post types and taxonomies selected with a high limit | Select only key content and lower the limit |
| Two different llms.txt versions | Rank Math module and a separate plugin both active | Keep one generator and remove the other |
| Validators complain about the structure | Missing H1 or blockquote summary at the top | Check the file against the example on llmstxt.org |
| Lighthouse flags the audit | Server error or security rule blocking the file | Check server logs and firewall rules for /llms.txt |
Summary
llms.txt is a tidy, human-readable map for AI agents, and version 2 of the proposal makes it easier to discover. It is not a control file, it does not block or invite crawlers, and Google has said in writing that Google Search ignores it. For most niche sites the right approach is simple: if your SEO plugin can generate an llms.txt file in a few clicks, curate it, make sure it actually loads and move on. Spend the real effort on content and technical SEO, because that is what AI Overviews and classic search both reward.
Not sure whether your llms.txt, robots.txt and sitemap work together? Contact us with your URL. For hands-on WordPress development and technical SEO, you can also work with INFOBGNET, the team that builds and maintains this site.
Frequently asked questions
Does llms.txt help with Google rankings?
No. Google’s AI optimization guide says llms.txt files will not harm or help visibility or rankings in Google Search, including AI Overviews and AI Mode, because Google Search ignores them.
Is llms.txt the same as robots.txt?
No. robots.txt tells crawlers what they may access. llms.txt is a Markdown summary with links to key pages. It cannot block bots or opt you out of AI training.
How do I create an llms.txt file in WordPress?
In Rank Math, enable the LLMS Txt module in the Dashboard, choose post types and taxonomies under General Settings, Edit llms.txt, then save permalinks and open /llms.txt to confirm it returns plain text.
Do AI crawlers read llms.txt?
Coding agents and some AI tools follow llms.txt files, especially on documentation sites. No major AI search provider has confirmed that its crawlers use llms.txt from ordinary websites.
Is it bad to have no llms.txt file?
No. The file is optional. Lighthouse marks a missing llms.txt as Not Applicable, and Google Search does not use it, so a 404 is fine. A server error on the file is the case to fix.

