For years there have been two important files in the root directory of websites: robots.txt, which tells search engine bots which pages they may crawl, and sitemap.xml, which provides a list of the pages on the site. Recently a third candidate has joined the pair: llms.txt. I get a lot of questions about this file from clients and colleagues; some say “you must add it”, others say “it is useless”. In this article I want to look at the topic without exaggerating or dismissing it.
What Is llms.txt?
llms.txt is a text file written in Markdown format, proposed to help large language models (LLMs) understand the content of a website more easily. It is placed in the root directory of the site (for example yourdomain.com/llms.txt) and contains what the site is about, what its most important pages are, and short descriptions of those pages.
The proposal was put forward in 2024. The basic idea is this: web pages are full of menus, ads, scripts and design elements, and it is hard and costly for an AI model to extract the actual information from that clutter. llms.txt acts as a “guide” that presents the essence of the site in a clean, structured way.
The Difference Between llms.txt, robots.txt and sitemap.xml
These three files are often confused. Let’s clarify the difference between them:
| File | Purpose | Who it is for | Format |
|---|---|---|---|
| robots.txt | Specifies which sections may or may not be crawled | All bots | Plain text, rules |
| sitemap.xml | Lists the crawlable URLs on the site | Search engines | XML |
| llms.txt | Describes the essence of the site and its important content | Language models and AI tools | Markdown |
One critical point: llms.txt is not an access control file. If you want to block or allow AI bots to crawl your site, you need to do it through robots.txt. llms.txt is only a signpost that says “if you come here, it is worth looking at this content”.
Does llms.txt Really Work?
To be honest, the answer to this question is not clear yet. llms.txt is not an official web standard; it is a proposal that is in the process of being adopted by the community. There is no open and definite commitment on whether the big AI companies systematically read this file and use it in their answers. Statements made by Google also indicate that this file plays no role in search rankings.
So why is it being talked about? Because in some use cases it provides real benefit:
- Developer documentation: Software companies use llms.txt to present their documentation in a way that AI coding assistants can read easily. In this area it has become quite widespread.
- Manually giving context to AI tools: A user or developer can hand a site’s llms.txt file directly to an AI tool and quickly build context about that site.
- Preparing for the future: If the standard becomes widespread, sites that adopted it early will already be ready.
My assessment is this: llms.txt is not a magic file that promises a big boost in visibility. But it is easy to prepare, very cheap, and a useful practice that makes you summarize clearly what your site is about. That is why I tell my clients, “it is not your priority, but there is no harm in adding it.”
The Structure of an llms.txt File
The recommended format is quite simple. An llms.txt file usually consists of the following sections:
- Title: The name of the site or project, with a single # (the only mandatory section).
- Summary: A short description of what the site is about, starting with the > sign.
- Additional details: Optional explanatory paragraphs in free format.
- Link sections: Lists grouped under ## headings, each containing a link and a short description.
- Optional section: Secondary content under the “Optional” heading that can be skipped if context is limited.
A sample llms.txt for a web design specialist could look like this:
# Burak Dizdar | WordPress Web Designer
> WordPress web design and development specialist based in İzmir. Offers corporate websites, website redesign, WooCommerce e-commerce sites and speed/SEO optimization services.
## Services
- [Web Design](https://burakdizdar.com.tr/web-tasarim/: Brand-specific web design process
- [WordPress Website](https://burakdizdar.com.tr/sifirdan-wordpress-web-sitesi/: WordPress setup from scratch
- [Website Redesign](https://burakdizdar.com.tr/web-site-yenileme/: Moving old sites to a modern infrastructure
- [E-Commerce Website](https://burakdizdar.com.tr/e-ticaret-sitesi-woocommerce/: E-commerce setup with WooCommerce
## About and Contact
- [About Me](https://burakdizdar.com.tr/hakkimda/: Experience and working approach
- [Contact](https://burakdizdar.com.tr/iletisim/: Contact details and address
How to Add llms.txt to a WordPress Site
There are a few ways to add llms.txt in WordPress.
Method 1: With an SEO Plugin
Some popular SEO plugins have started to offer a feature that automatically generates an llms.txt file from your site’s content. If you use All in One SEO, check whether this feature exists in the plugin settings and which content it includes. Be sure to open and review the automatically generated file; it may include unnecessary pages or leave important ones out.
Method 2: Uploading the File Manually
You can prepare the file yourself and upload it to your site’s root directory (the folder where the wp-config.php file is located) using FTP or the file manager in your hosting panel. This method gives you full control. The downside is that you have to update the file manually whenever you make changes to your site.
Method 3: Generating It Dynamically with Custom Code
As a more advanced solution, you can write a small piece of code that uses WordPress’s rewrite rules to catch requests to /llms.txt and generate the content dynamically. This method keeps the file updated automatically as service pages or featured posts change.
Things to Watch Out for When Preparing llms.txt
- Keep it short and to the point: Do not list all your blog posts. Choose your most important service pages, your basic information and your featured content.
- Write clear descriptions: Add a short, informative sentence next to each link saying what the page is about.
- Keep it up to date: Do not link to removed pages or changed URLs.
- Give consistent information: The business name, service descriptions and contact details should match the rest of your site and your Google Business Profile exactly.
- Do not include confidential information: This file is public; do not add admin panel addresses or private pages.
llms.txt on Multilingual Sites
If you run a multilingual site with Polylang or WPML, you have two options for llms.txt. The first is to list the important pages of both languages in separate sections of a single file. The second is to keep a file in the root directory for the main language and serve a separate file under a language folder for the other language. Since the proposal does not yet define an official rule for multilingual use, I prefer the two-sections-in-one-file approach for practicality. Stating the language explicitly at the start of each section and showing the different language versions of the same page side by side makes the context clearer for the tools that read the file.
How Do You Check That the File Works?
After uploading the file, open yourdomain.com/llms.txt in your browser. The file should display as plain text; if a download window opens or you get a 404 error, there is a problem with the server configuration. Make sure the file is saved with UTF-8 encoding so that special characters are not corrupted. If you use a caching plugin, remember to clear the cache whenever you update the file. Finally, you can test in practice whether the file is understandable by giving an AI assistant the file’s address and asking it to summarize your site.
What Matters More Than llms.txt
Adding llms.txt is easy, but there are other factors that are far more decisive for AI visibility. When prioritizing, I recommend this order: first make sure AI bots are not blocked by robots.txt or security settings, then complete your structured data (schema), organize your content in a question-and-answer format, and optimize your site’s speed. llms.txt is a small complementary step on top of this basic work.
My Practical Advice to Clients
After hearing about llms.txt, one of my clients said, “let’s add it right away, so we get ahead of our competitors before they do.” When we looked at his site, we saw that robots.txt had been modified by a security plugin and that most AI bots were already blocked. In other words, even if llms.txt had been added, a significant share of the bots that would read it would never have reached the site at all. This example shows how easy it is to skip the basic steps while focusing on a new and popular practice. Strengthen the foundation first, then move on to complementary steps like llms.txt.
Frequently Asked Questions
Does adding llms.txt affect my SEO?
There is no evidence that it has a direct effect on search rankings. But it can make your site easier for AI tools to understand without doing any harm.
How often should I update the llms.txt file?
Update the file when you add a new service, when the address of an important page changes or when you remove a service. Apart from that, a general check every three to six months will be enough.
What is llms-full.txt?
Some sites also publish an llms-full.txt file that provides the full text of the important content in a single file. This is especially useful for documentation sites. It is generally not necessary for a corporate business site.
Does llms.txt block AI bots?
No. llms.txt is not an access control file. To block or allow bots, you need to use robots.txt.
Conclusion
llms.txt is an interesting, low-cost proposal for how websites can present themselves in the age of AI. I recommend adding it without expecting miraculous results, after you have completed your site’s basic SEO and AIO work. If you would like to approach the AI visibility of your WordPress site holistically, you can reach me through my contact page.