SEO

What Is llms.txt and How Do You Write One?

What is llms.txt? A plain-text file that gives AI models a short guide to your website. See how it differs from robots.txt and copy my own file's structure.

Published On:

What Is llms.txt and How Do You Write One?
Table of contents

The answer to what is llms.txt is a plain-text file at your website's root that gives an AI assistant, asked about your company, a short guide to your pages. Google's John Mueller called the file's effect purely speculative in June 2026, which makes llms.txt a cheap, unproven bet for a marketer.[1]

This guide covers what llms.txt is and is used for, how llms.txt differs from robots.txt, what the file should contain, how to create one using my own site's file as the example, whether llms.txt works, and the mistakes to avoid.

llms.txt at a glance

llms.txt is a text file that describes your website to AI models, and the 5 answers below cover the questions people ask most about the file.

  • What is llms.txt in one line: llms.txt is a Markdown file at yoursite.com/llms.txt that holds your site's name, a one-sentence summary and lists of links to the pages an AI model should read first.
  • llms.txt vs robots.txt: robots.txt tells crawlers which URLs they may fetch, while llms.txt suggests which pages are worth reading and blocks nothing.
  • Is llms.txt required: No. llms.txt is a proposal published at llmstxt.org, not a rule from Google, OpenAI or Anthropic, and no search engine needs the file.
  • Does llms.txt work: Google's John Mueller wrote in June 2025 that no AI system used llms.txt, and in June 2026 he called the file's effect purely speculative.[2]
  • My take: As an AI Marketing Specialist with 2+ years of multi-channel marketing experience, I keep an llms.txt on princedewani.online because the file takes one short writing session and doubles as a short description of the site for any reader.

What is llms.txt?

An llms.txt file is a plain-text file at the root of a website that tells AI models and AI agents what the site is about and which pages to read first. The file is written in Markdown (a simple text format where # marks a heading and - marks a list item), so a language model can read the whole file without parsing HTML.

The llms.txt standard is a proposal published at llmstxt.org to standardise on one /llms.txt file that gives AI agents the information they need to use a website.[3] The llms.txt standard is not a rule from Google, OpenAI, Anthropic or any standards body, and no search engine enforces the file.

A search for llms txt, without the dot, means the same file. The file name is always llms.txt, in lowercase, with a dot between llms and txt, because a web server serves the file at yoursite.com/llms.txt.

What is llms.txt used for?

llms.txt is used for 3 jobs: a reading guide for AI coding assistants on documentation sites, one current company summary for AI answer engines, and a map of products and policies for AI shopping agents on online stores.

  • Documentation sites use llms.txt so an AI coding assistant can find the right reference page for a library or API (application programming interface, the way one program talks to another).
  • Company websites use llms.txt as one short, current description of what the company does.
  • Online stores use llms.txt to point AI shopping agents at product, collection and policy pages.

How is llms.txt different from robots.txt?

llms.txt and robots.txt differ in purpose: a robots.txt file tells search engine crawlers which URLs the crawler can access on your site.[4] An llms.txt file tells AI models what the site is about and which pages are worth reading, and llms.txt cannot block anything.

Compared onllms.txtrobots.txt
PurposeA short guide to the site for AI models: name, summary and links to the key pagesAccess rules for crawlers: which URLs a bot may or may not fetch
Who reads itAI assistants and agents that choose to look for the file; no AI company has confirmed its models read itSearch engine crawlers such as Googlebot, and AI crawlers that honour robots rules, such as Google-Extended
FormatMarkdown: an H1, a blockquote summary and H2 sections with link listsPlain-text directives: User-agent, Allow, Disallow and Sitemap lines
Blocking powerNone. llms.txt is a recommendation, so it cannot stop any crawler or modelYes, for crawlers that obey it: the Google-Extended token controls Google's use of your content for AI training
RequiredNo. A proposal that no search engine or AI company enforcesNo, but Google reads robots.txt whenever the file is present

robots.txt is not a mechanism for keeping a web page out of Google, and llms.txt is not one either. A page you want kept out of search results needs a noindex tag (a line in the page's HTML that asks search engines not to list it).

The llmstxt.org proposal says llms.txt can complement robots.txt by providing context for allowed content, so the 2 files work side by side rather than replacing each other.[3]

What should llms.txt contain?

The llms.txt format has 4 parts in a fixed order: an H1 with the site's name, a blockquote summary, H2 sections holding lists of links with notes, and an Optional section.[3] The Optional section holds the pages an AI model can skip when it has little room for context.

  1. H1 title (required) is line 1 of the file, written as "# Your site name", and the H1 is the only part the proposal requires.
  2. Blockquote summary is one line that starts with ">" and says in 1 or 2 sentences what the site or product is and who it serves.
  3. H2 link sections are headings such as "## Pages" or "## Docs", each followed by links in the form "- [Page title](URL): one line on what the page holds".
  4. Optional section is an H2 named "Optional" whose links hold secondary information an AI model can skip when it has little room for context.
Diagram of the 4 parts of an llms.txt file in order: an H1 site name, a blockquote summary, H2 sections with link lists, and an Optional section

llms-full.txt is a companion file that goes with llms.txt on documentation sites: one auto-generated Markdown file that compiles all of the documentation text, so an AI model can read every page in one request.[6]

Free AI Product Marketing Playbook to advance your career

How do you create an llms.txt file?

To create an llms.txt file by hand in any text editor, such as Notepad, TextEdit or VS Code, follow these 7 steps:

  1. Create a new text file named "llms.txt", all in lowercase.
  2. Type "# " followed by your site or company name on line 1.
  3. Type "> " on line 3, followed by one sentence that says what the site is and who it is for.
  4. Add an H2 heading for each group of pages, such as "## Pages", "## Products" or "## Docs".
  5. Under each heading, list the pages an AI model should read first as "- [Page title](full URL): one line on what the page holds".
  6. Add a last heading named "## Optional" and list the pages an AI model can skip.
  7. Upload the file to your site's root folder so it loads at yoursite.com/llms.txt, then open that address in a browser to check it.

llms.txt examples: the file on princedewani.online

The llms.txt on princedewani.online opens with the H1 "Prince Dewani: AI Marketing Specialist", then a blockquote summary, then 6 H2 sections: Guidance for AI Assistants & Coding Agents, Pages, Blog posts, Free Tools, What people say and Contact. A shortened excerpt of that live file, in Markdown, shows the 4-part llms.txt format in use:

Verified
# Prince Dewani: AI Marketing Specialist

> Personal website of Prince Dewani, an AI Marketing Specialist ...

## Pages

- [Prince Dewani, AI Marketing Specialist](https://princedewani.online/): what Prince does, his results, the tools he uses, testimonials from colleagues, and session booking.

## Free Tools

- [ROI Calculator](https://princedewani.online/tools/roi-calculator/): work out return on investment, net return, and annualised return, with the arithmetic shown so you can check it.

The Blog posts section of that file is not typed by hand: the site's build step reads the blog registry and writes one link and one description per published post. Generating the list from the registry means the llms.txt file never lists a page that does not exist.

2 other llms.txt examples are worth opening: any documentation site hosted on Mintlify, and any Shopify store, which serves /llms.txt at its primary domain by mirroring the store's /agents.md file.[7]

How do you add llms.txt in WordPress or Shopify?

To get an llms.txt file in WordPress, turn on the switch in the free Yoast SEO plugin, which writes the file for you. The Yoast file offers LLMs (large language models, the AI models behind ChatGPT, Claude and Gemini) a preview of your most important, up-to-date content.[8]

To turn on llms.txt in Yoast SEO on WordPress, follow these 6 steps:

  1. In your WordPress dashboard, go to "Yoast SEO".
  2. Go to "Settings".
  3. Go to "Site Features".
  4. Under "AI tools", go to "LLMS.txt".
  5. Toggle the switch to on.
  6. Click "Save changes".

The llms.txt Shopify setup needs no app: Shopify manages /llms.txt by default by mirroring the content of /agents.md, and a theme template named llms.txt.liquid is only needed when the 2 files must differ.[7]

Does llms.txt work, and is it required?

No, llms.txt is not required, and no search engine or AI company has confirmed that its systems read the llms.txt file. Google's John Mueller wrote in June 2025 that no AI system currently uses llms.txt.[2]

In June 2026, Google's John Mueller said nobody knows whether llms.txt matters and called the file purely speculative for now.[1]

Google's control for AI is in robots.txt, not llms.txt: Google-Extended is a standalone product token that web publishers use to manage Google's use of their content for AI training.[5] The Google-Extended token is not used as a ranking signal and does not affect a site's inclusion in Google Search.

Documentation and commerce platforms adopted the llms.txt standard despite Google's position: Mintlify automatically generates and hosts plain-text docs, including llms.txt and llms-full.txt, for every documentation site it hosts, and Shopify serves /llms.txt for every store.

My view: llms.txt is a low-cost extra on top of your AI SEO work, such as the AI SEO tips for the November 2026 core update. The work that moves AI visibility is clear, answer-first pages, and my guide to the best AI SEO tools covers the tools for that work.

My guide to answer engine optimization explains the wider work of getting a page cited in AI answers.

Which llms.txt mistakes should you avoid?

The 5 most common llms.txt mistakes are treating the file as a blocklist, pasting the whole sitemap, listing links without notes, letting links go stale, and expecting rankings to move.

  • Treating llms.txt as a blocklist: llms.txt cannot block an AI crawler, so a Disallow rule for Google-Extended or any other bot belongs in robots.txt.
  • Pasting the whole sitemap: sitemap.xml lists every indexable page on a site, while llms.txt should list only the pages an AI model should read first, each with a one-line note.
  • Links without notes: a bare URL tells a model nothing about the page, and the "- [title](URL): note" form gives the model the page's job in one line.
  • Stale links: a page you delete stays in a hand-written llms.txt until you remove it, so generating the file from your CMS (content management system, the tool that stores your pages) or a page registry is safer.
  • Expecting rankings to move: Google's John Mueller has said no AI system uses the file, so treat llms.txt as a courtesy to AI assistants with no effect on rankings.

Where should you start with llms.txt?

Start by writing a short llms.txt for your own site today: your H1, one summary sentence, and links with notes to the 5 pages you most want an AI assistant to quote. Once the file is live, measure whether AI answers mention your brand with the tools in my guide to the best AI visibility tools.

The short answer to what is llms.txt worth in 2026 is one writing session: the file is cheap and harmless, may help AI assistants describe your site, and will not move your Google rankings.

llms.txt FAQs

What is llms.txt used for?

llms.txt is used to give AI models and AI agents a short, current description of a website and a list of its most useful pages, in one Markdown file at the site's root. Documentation sites use llms.txt to point AI coding assistants to the right reference page. Company sites use llms.txt as one trusted summary of what they do, and online stores use llms.txt to point shopping agents at product and policy pages.

Is llms.txt required for SEO?

No, llms.txt is not required for SEO. Google has not said that it uses llms.txt for anything, and John Mueller of Google wrote in June 2025 that no AI system used the file. Your rankings depend on crawlable pages, clear content and links. Add llms.txt as a low-cost courtesy to AI assistants and expect no ranking change from the file.

Do I need llms.txt if I already have robots.txt and a sitemap?

No, you do not need llms.txt if you already have robots.txt and a sitemap, because no search engine or AI company requires the file. The robots file controls which URLs crawlers may fetch. The sitemap lists every indexable page on your site. An llms.txt file adds one thing those 2 files lack: a plain description of your site and a short list of the pages an AI model should read first.

Does llms.txt work right now?

No, no AI company has confirmed that its models read llms.txt. John Mueller of Google wrote in June 2025 that no AI system used the file, and in June 2026 he called its effect purely speculative for now. An llms.txt file still works as a short description of your site that any assistant can fetch when it looks for one, so treat llms.txt as a cheap bet with no proven payoff.

How do you generate an llms.txt file for free?

You can generate an llms.txt file for free in 3 ways. Write the llms.txt file by hand in any text editor, following the 4-part format, and upload it to your site's root. On WordPress, turn on the LLMS.txt switch under Site Features in the free Yoast SEO plugin, which writes the file for you. On Shopify, every store already serves an llms.txt file at its primary domain, so the llms.txt Shopify setup needs no app.

What is the difference between llms.txt and llms-full.txt?

The llms.txt file is the short index of a site: the site's name, a one-line summary and links to key pages with one-line notes. The llms-full.txt file is the companion that compiles the full text of every documentation page into a single Markdown file. An AI model can then read a whole site in one request. Documentation platforms such as Mintlify generate both files automatically for the docs sites they host.

Where does llms.txt go, on the site root or in a folder?

An llms.txt file goes at the site root, so the file opens at yoursite.com/llms.txt. The llmstxt.org specification also allows a file at any subpath, such as /docs/llms.txt, which covers the URLs under that path. When more than one file applies, the specification tells agents to use the most specific one. Start with one file at the root, and add a second only for a separate documentation section.

What should you do with an llms.txt file after you publish it?

After you publish an llms.txt file, ask an AI assistant that can open links to read the file and describe your company. Rewrite any line the assistant gets wrong, and check every link when a key page is added, renamed or removed. Give the file one owner and a review date, so the list of pages stays current.

Is llms.txt a feed?

No, llms.txt is not a feed. A feed, such as RSS (Really Simple Syndication), lists new items so that a reader app can check for updates. The llmstxt.org specification describes a Markdown file that can hold a title, a summary and lists of links, so an llms.txt feed is not part of the format. Rebuild the file when pages change, and an assistant that fetches the file gets the current version.

View all