View All
seo

What Is llms.txt and Should Your Website Have One?

Suliman Hakimi6 min read

llms.txt is a proposed plain-text file, placed at the root of a website (for example yoursite.com/llms.txt), that gives large language models a short, Markdown-formatted summary of the site and links to its most useful pages. It was proposed in 2024 to help AI tools find clean, relevant content without parsing complex HTML. It is not an official web standard, and major search engines have not said they use it for rankings, so for most small businesses it is a low-cost, low-priority addition rather than an SEO necessity.

Key Takeaways

  • llms.txt is a voluntary convention, not an established standard like robots.txt or sitemaps, and nothing requires AI companies to read it.
  • Google has publicly said Google Search does not use llms.txt, so it will not directly help your rankings or AI Overviews.
  • It can be useful for documentation-heavy sites, developer tools and AI coding assistants that fetch it on request.
  • It does not control crawling or block AI training; robots.txt is still the tool for that.
  • If you add one, keep it short, accurate and in sync with your real pages.

What Is llms.txt?

llms.txt is a Markdown file that summarizes what a website is about and points AI systems to its most important content. The proposal was published in September 2024 by Jeremy Howard of Answer.AI. The reasoning is simple: language models have limited context windows, and web pages are full of navigation, scripts and ads. A short, curated file saves an AI tool from crawling and cleaning dozens of pages to understand a site.

The proposed structure is:

  • A title line with the name of the site or project.
  • A short summary in a blockquote describing what the site offers.
  • Optional paragraphs with extra context, such as who the site serves and key facts.
  • Sections with lists of links to important pages, each with a one-line description.
  • An optional section for secondary links that can be skipped when context is limited.

Some sites also publish an llms-full.txt file that contains the full text of their key documentation in one file.

How Is llms.txt Different From robots.txt and sitemap.xml?

llms.txt is a guide to your content, while robots.txt is a set of crawling rules and sitemap.xml is a complete list of URLs for search engines. They do different jobs:

  • robots.txt tells crawlers which paths they may or may not access. It is respected by major search engines and many AI crawlers, and it is where you allow or block bots such as GPTBot or Google-Extended.
  • sitemap.xml lists the URLs you want indexed, with optional update dates, and is read by Google, Bing and others.
  • llms.txt offers a curated, readable summary for language models. It grants no permissions and blocks nothing.

If your goal is to control AI access to your content, llms.txt is the wrong tool. Review your robots.txt instead, and see our generative engine optimization guide for how crawler choices affect AI visibility.

Do Google, ChatGPT and Other AI Tools Actually Use llms.txt?

Support is limited and unclear. Google representatives have said publicly that Google Search does not use llms.txt, and the major AI search products have not documented it as a ranking or citation signal. Many site owners who check their server logs report few requests for the file from the main AI crawlers.

Where it does get used is in more direct situations: some AI coding assistants and developer tools read llms.txt when a user points them to a site's documentation, and some documentation platforms generate the file automatically. That makes it most valuable for software products, APIs and technical documentation, and less important for a local shop or service business.

Because these policies change, check the current documentation from the AI providers you care about rather than relying on claims in SEO forums.

Should Your Website Have an llms.txt File?

For most small business websites, llms.txt is optional: it costs little to add, but it should not take priority over proven SEO work. Use this decision guide:

  • Add it if you run a software product, API, SaaS tool or extensive documentation that developers might load into AI assistants.
  • Consider it if your site is already technically healthy and you want a simple, curated summary of your services available for any tool that looks for one.
  • Skip it for now if your site still has indexing problems, slow mobile pages, missing service pages or no Google Business Profile. Those issues matter far more for visibility in Google, AI Overviews and ChatGPT.

For businesses in Kabul or the diaspora, the bigger wins are usually clear service pages in Dari, Pashto and English, accurate structured data and a fast site. Our guide on getting featured in Google AI Overviews covers those priorities.

How Do You Create an llms.txt File?

You create an llms.txt file by writing a short Markdown summary of your site and uploading it to the root of your domain. Follow these steps:

  1. List your most important pages, such as services, pricing, about, contact, portfolio and key guides. Keep it to the pages you would show a new customer first.
  2. Write a one or two sentence summary of your business: what you do, where, for whom and in which languages.
  3. Add a title line and the summary at the top of the file, using Markdown.
  4. Group links into sections, for example Services, Portfolio and Guides, with a short description after each link.
  5. Save the file as llms.txt in plain UTF-8 text so Dari and Pashto characters display correctly if you include them.
  6. Upload it to your site root. On a Next.js website, placing the file in the public folder serves it at yoursite.com/llms.txt; a route handler can also generate it dynamically.
  7. Test it by opening the URL in a browser, and set a reminder to update it whenever you add or remove major pages.

Keep the content factual and consistent with your website. An llms.txt that lists outdated prices or services that no longer exist creates the same confusion as an outdated directory listing.

What Should You Avoid With llms.txt?

Avoid treating llms.txt as a shortcut to AI visibility. Common mistakes include stuffing it with keywords, listing every URL on the site (that is what the sitemap is for), adding claims that do not appear on the actual pages, and assuming it will block AI training. Hidden or contradictory information can reduce trust rather than build it.

Work With Sheen

Sheen's SEO service focuses on the changes that actually move visibility in Google and AI search, and we can add a clean llms.txt as part of a web design or technical SEO project. Contact us at info@sheen.af or +93 784 966 018.


Frequently Asked Questions

Will adding llms.txt improve my Google rankings?

No. Google has stated that Google Search does not use llms.txt, and it is not a ranking factor for regular results or AI Overviews. Rankings depend on indexing, content quality, relevance, links and page experience. An llms.txt file may help some AI tools that read it directly, but it should never replace core SEO work.

Can llms.txt stop AI companies from using my content?

No. llms.txt does not grant or deny permission; it only offers a summary and links. To limit AI crawlers, use robots.txt rules for specific user agents, such as GPTBot or Google-Extended, and check each provider's documentation for current names. Remember that blocking search-related crawlers can also stop your site from being cited in AI answers.

Where do I put the llms.txt file?

Place it at the root of your domain so it loads at yoursite.com/llms.txt, the same location as robots.txt. On most hosting you upload it to the main public folder. On a Next.js site, put it in the public directory or create a route that returns it as plain text. Make sure the URL returns a normal 200 response.

Should I write llms.txt in Dari and Pashto as well as English?

The proposal does not define separate language versions, so most sites write one file, usually in English. If your audience mainly speaks Dari or Pashto, you can add short descriptions in those languages and link to the localized pages. Save the file as UTF-8 so the script displays correctly, and keep it consistent with your actual pages.


Keep reading

Read More