Introduction
If you've ever used an LLM like ChatGPT to generate code and ended up with a broken snippet, an outdated method, or a made-up function, you're not alone. Large Language Models (LLMs) are powerful, but they're only as good as the information they're trained on or fed.
They rely heavily on web-based content, but most sites are built for humans, not machines. The result? LLMs often struggle to extract accurate, structured information from messy HTML. That's exactly why LLMs.txt was introduced.
In this article, you'll learn what LLMs.txt is, why it is important, and how LLMs actually use it. You'll also see how to generate and upload one to your site. Let's dive in!
Key Takeaways
- LLMs.txt is a plain-text file, hosted at your site's root, that gives AI models like ChatGPT, Claude, and Gemini a curated index of your most important pages, instead of forcing them to crawl and filter messy HTML.
- It is not the same as robots.txt: robots.txt controls crawler access, while LLMs.txt hands over a structured, machine-readable summary of your content.
- LLMs.txt and LLMs-full.txt serve different purposes: LLMs.txt is a lightweight index of key pages, while LLMs-full.txt bundles the full content of those pages into one file for deeper context.
- You can generate an LLMs.txt file in minutes with tools like Firecrawl, SiteSpeakAI, or WordLift, then upload it to the root of your domain.
- LLMs.txt doesn't directly affect Google rankings; its value lies in Generative Engine Optimization (GEO), helping AI assistants understand, cite, and accurately represent your site.
What is LLMs.txt?
LLMs.txt is a text file, especially created for LLMs to understand the information presented on the web pages. It functions as a curated index for large language models like ChatGPT, Claude, and Gemini, providing them with the website's critical contextual details and links to machine-optimized content. The format follows the llms.txt specification at llmstxt.org, the original proposed standard this convention is based on.
It enhances the LLMs' interaction with the website, allowing them to analyze structured data without going through unnecessary data like JavaScript syntax and HTML fragments. Additionally, LLMs.txt is categorized into two file paths: LLMs.txt and LLMs-full.txt. Let us understand how they are different.
You will also see it written as llm.txt, llm.text, or just llm text. All of those are misspellings. The correct filename is llms.txt, plural and lowercase, and the name is not cosmetic: like robots.txt, the file only works when it sits at a fixed, predictable path, so an llms.txt file for a website has to be named exactly that or nothing will find it. If you have already published an llm.txt, rename it and 301 the old path across.
LLMs.txt vs LLMs-full.txt
While LLMs.txt provides a quick, simplified structure to the LLMs, LLMs-full.txt provides comprehensive details of the website content in one place. Here's an example:
Suppose you have given a prompt to ChatGPT:
"How do I set up authentication for my SaaS Product?"
If the website has llms.txt, it will act like an index showing ChatGPT the path of the key docs, such as /getting-started, /auth-guide, and /api-reference. This will help the model quickly locate the right pages and give a more accurate, context-aware answer.
Now, if you want ChatGPT to go deeper and understand not just where the docs are but what's inside them, you can provide LLMs-full.txt. It contains all your docs combined into one clean file, so when you paste that link into ChatGPT, it gets the full picture: endpoints, workflows, parameters, and edge cases. One link, full context.
Together, these two files make ChatGPT smarter with minimal effort on your end.
Why is LLMs.txt Important?
Traditional websites are primarily designed for humans to read. As a result, the large language models find it difficult to read them, as most websites contain CSS, JavaScript, HTML, and navigation elements. These elements are complex in nature for LLMs to extract relevant information.
When these large language models process websites, they face a couple of challenges, including context window limitations, inefficient crawling, and HTML complexity. The context window is basically the text limit of the large language model that it can consider at a time. Since the websites contain unnecessary elements, the LLMs have to crawl and filter out the web pages. However, this filtration might not exclude all the irrelevant information, resulting in an inaccuracy and exceeding the context window limit.
If the website consists of an LLMs.txt file, it will enhance the accuracy and readability of the large language models. The file guides the large language models with the right path to relevant information, allowing them to extract accurate information without any misinterpretation.
Now, here comes the question - search engines crawl websites through robots.txt, and LLMs also crawl web pages to extract information. Why can't they utilize robots.txt for the same purpose?
Getting this right also matters for generative engine optimization tools, since LLMs.txt is one of several signals AI systems use when deciding what to cite.
How Do LLMs Utilize LLMs.txt?
When the developer gives a prompt to an LLM, its orchestration frameworks parse the existing website's LLMs.txt to find the relevant sources. This process occurs in three stages:
Stage 1: The model examines the LLMs.txt file to determine whether the website offers the required information and extracts the specific URLs where the information lies. This helps the LLM fetch data from the right path without crawling unnecessary HTML.
Stage 2: Once the large language model has identified the URLs, it visits those web pages using the linked markdown files. For example, it will utilize authentication.md instead of authentication.html.
This means that if the LLM reads authentication.html, it will read the entire webpage, including navigation bars, pop-ups, side menus, styling code, scripts, headers, and footers. On the other hand, the markdown file will filter out noise and help the LLMs extract valuable information.
Stage 3: After extracting the required information, the large language model checks if it can add that much information to its context window. If the information exceeds the window limit, and the LLMs.txt file consists of some content highlighted as "Optional," the LLM discards it.
This is how the LLMs.txt file makes it easy for the AI model to extract the correct information that the developer has asked it to provide. Instead of going through the HTML files and filtering out unnecessary information, LLMs can fetch the required data from LLMs.txt.
A quick note on adoption (updated 2026): the mechanism above is how llms.txt is designed to work. How often it actually works is a separate question, and the evidence is now much clearer than it was. Ahrefs analysed server logs across 137,210 domains in June 2026 and found that 28% publish an llms.txt file, but 97% of those files received zero requests in a month, from any bot or human at all. Of the requests that did land, named AI bots made up 19.5%, and the biggest group inside that was not AI search but AI agents: GPTBot first, Anthropic's Claude-Code second, ahead of every retrieval bot. AI retrieval bots specifically, the ones fetching pages to answer live queries in ChatGPT or Perplexity, accounted for 1.1%. Slackbot's link-preview crawler fetched llms.txt files more often than PerplexityBot did.
Google has been explicit. Its AI features and your website guide states that you do not need to create machine-readable files, AI text files or Markdown to appear in Google Search including its generative AI surfaces, because Search does not use them, and that maintaining one will neither harm nor help your rankings. The Chrome team went the other way in the same month and shipped an llms.txt audit inside Lighthouse under agentic browsing. John Mueller squared the two by calling llms.txt a temporary crutch for AI coding tools parsing developer documentation rather than a search feature.
So treat llms.txt as infrastructure for coding agents and agentic browsing, which is where the measured demand actually is, not as a route into AI Overviews. That distinction matters most if you sell to developers, because their assistants are the ones reading it. Infrasity's own llms.txt and llms-full.txt files are live examples worth opening if you want to see the pattern in production.
LLMs.txt Example and Format
The format is short enough to hold in your head. An llms.txt file is plain Markdown, and only the first line is genuinely required. The specification lays out these sections, in this order:
- An H1 with the name of the project or site. This is the only required section.
- A blockquote summarising what the site is, containing anything a model needs in order to make sense of the rest.
- Any amount of ordinary Markdown, paragraphs or lists, giving more detail. No headings allowed in this part.
- Zero or more H2 sections, each containing a list of links in the form
[name](url): optional notes. - An optional H2 literally called Optional. This one has special meaning: anything listed under it can be dropped when a model is working with a shorter context.
Here is a complete llms.txt example:
# Acme Docs
> Acme is an API for sending transactional email. These docs cover
> authentication, sending, webhooks and rate limits.
Every page below is available as Markdown at the URL shown, and as HTML at
the same path without the .md extension.
## Docs
- [Quickstart](https://docs.acme.com/quickstart.md): Send your first email in five minutes
- [Authentication](https://docs.acme.com/auth.md): API keys, scopes and rotation
- [API reference](https://docs.acme.com/api.md): Every endpoint, parameter and error code
## Optional
- [Changelog](https://docs.acme.com/changelog.md): Release notes going back to 2024
- [Migration guide](https://docs.acme.com/migrate.md): Moving from v1 to v2That is the entire format. No YAML frontmatter, no XML, no schema to validate against, and no directives of any kind. If you would rather read a real file than a mock one, the specification's own llms.txt is ten lines long, and FastHTML's is the reference implementation Jeremy Howard shipped alongside the original 2024 proposal.
The one formatting decision worth thinking about is what goes under Optional. That section is the file's only lever for handling context limits, so put your secondary material there, changelogs, migration notes, archived docs, and keep the core reference above it.
Which Websites Use LLMs.txt?
Adoption is wider than most people assume. Ahrefs checked 137,210 domains in June 2026 and found 28% of them publishing an llms.txt, though they flag that their customer base skews technical and SEO-aware, so treat that as a ceiling rather than a web-wide rate.
The pattern is that documentation sites led and everyone else followed. Every one of these returns a live file today:
- Anthropic: docs.anthropic.com/llms.txt
- Stripe: docs.stripe.com/llms.txt
- Cloudflare: developers.cloudflare.com/llms.txt
- Vercel: vercel.com/docs/llms.txt
- Perplexity: docs.perplexity.ai/llms.txt
- Zapier: docs.zapier.com/llms.txt
- Svelte: svelte.dev/llms.txt
Cloudflare's is the one to open if you run a large documentation site. The root file does not try to index everything at once; it is a list of per-product llms.txt files, so an agent can pull just the Workers index without dragging the entire catalogue into its context window. That nesting pattern is not in the spec, but it is the most practical adaptation of it anyone has shipped.
Much of the current growth is no longer a webmaster decision at all. Wix generates the file automatically, and Framer, Lovable and a growing set of AEO tools now scan for it, which means llms.txt is becoming a platform default the same way sitemaps did.
How to Create an LLMs.txt File: Generate It or Write It by Hand
There are two ways to make an llms.txt file, and neither takes long. You can write it by hand, which takes about ten minutes for a small site and gives you control over what gets listed, or you can generate it with a tool like Firecrawl, SiteSpeakAI or WordLift and then edit down what comes back. If you want to see the shape of the file before you decide, the example in the section above is the whole format.
While the process is similar on each site, here's a step-by-step process for generating the LLMs.txt file:
- Visit Firecrawl.dev and create an account.
- You will see an API key on the right. Copy it as it will be required during the generation process.

- Visit the LLMs.txt generator and enter the website's URL.

- Now, enter the Firecrawl API key that you copied and click on "Generate." It will take a few minutes to create an LLMs.txt file for your website. Additionally, you can opt to generate an LLMs-full.txt file based on your preferences.

- Copy the generated LLMs.txt file to upload it to GitHub.

Where to Place and Upload the LLMs.txt File
The file goes at the root of your domain, so it resolves at yoursite.com/llms.txt. Not in a subfolder, not in /docs, not attached to a CMS page. That is the same convention robots.txt and sitemap.xml use, and it is the only path anything will look for. A large documentation site can optionally add a second file on a subpath, the way Cloudflare gives each product its own llms.txt, but the root file is the one that matters.
There is also no submission step, which trips a lot of people up. Unlike a sitemap, there is no Search Console equivalent and no endpoint to submit an llms.txt to. You publish it at the root and that is the job done. Community directories such as directory.llmstxt.cloud will list your file if you add it, which is useful for discovery, but no AI system depends on it. What does help is linking the file from your own HTML or docs, because Ahrefs found that AI bots never once requested an llms.txt from a domain that did not have one. They do not go looking. They fetch it when something points them at it.
How you upload depends on where the site lives. On a static site or framework build, drop llms.txt into the public directory (/public on Next.js, Nuxt and Vite, /static on Hugo and SvelteKit) and it will be served from the root on deploy. On WordPress, plugins including Yoast now generate and serve one for you. On Webflow, Wix and Framer, the file is either a built-in setting or a hosted-file upload. And if you deploy from a GitHub repository, here is that flow:
Now that you have generated the LLMs.txt or LLMs-full.txt file, let's understand how you can upload it to GitHub:
- Navigate to your website's GitHub repository.
- Locate the root directory and create the
llms.txtfile in the root of the repository. - Paste the LLMs.txt or LLMs-full.txt content in your new file.

- Commit changes to your repository and check if it's live after triggering it.
Conclusion
Large language models are utilized for various purposes, where they extract information from multiple relevant sources. However, those websites are mainly designed for human readers using HTML and other elements. The LLMs find it difficult to process complex HTML and crawl websites. As a result, they deliver inaccurate responses.
Adding an LLMs.txt file to your website can simplify the process and help large language models read the content better. This file has two variants – LLMs.txt and LLMs-full.txt – that help LLM models navigate easily and extract relevant information from web pages. To generate this file, you can utilize LLMs.txt generators like Firecrawl and upload it into your GitHub repository.
If you'd rather not manage this yourself, Infrasity's AI GEO optimization services can set up and maintain your LLMs.txt alongside a broader generative engine optimization strategy.
FAQs
1. What is the Difference Between LLMs.txt and Robots.txt?
While the LLMs.txt file is designed for large language models to read and extract relevant data from websites, the Robots.txt file is created for search engine crawlers to tell them which URLs of the website they can crawl or not.
2. What is the Context Window of ChatGPT?
It depends on the model and the plan, and the number has moved a long way. OpenAI's model documentation lists a 1,050,000-token context window for GPT-5.6 Sol, its current frontier model, while inside the ChatGPT product the usable window is smaller and varies by tier. The wider point still holds: whatever the ceiling, it fills up faster when a model has to read navigation, scripts and markup alongside your actual content, which is the problem llms.txt is trying to reduce.
3. Why Should I Use LLMs.txt on My Website?
If you want more control over how AI systems interact with your site, whether to include, exclude, or prioritise certain content, llms.txt offers a simple, transparent way to signal your preferences.
4. What Kind of Files Does LLMs.txt Point to?
It typically links to clean, structured Markdown (.md) files hosted at predictable URLs. These files contain focused content and exclude navigation menus, ads, or other distractions, making them ideal for LLMs to parse.
5. Can I Block All LLMs From Using My Content?
Not with llms.txt, no. This is the most common misunderstanding about the file, so it is worth being precise: llms.txt has no User-agent or Disallow syntax. Those are robots.txt directives, and pasting them into llms.txt does nothing at all. The llms.txt specification defines a Markdown document made of a title, a summary blockquote and lists of links. It points AI systems toward content rather than away from it. As Ahrefs put it in their June 2026 study of the standard, despite the filename it controls nothing and blocks nothing.
Crawler consent still lives in robots.txt, where you name the user agents directly: GPTBot, OAI-SearchBot and ChatGPT-User for OpenAI, ClaudeBot and Claude-Web for Anthropic, PerplexityBot and Perplexity-User for Perplexity, CCBot for Common Crawl, and the Google-Extended token to opt out of Gemini training. Our own robots.txt names 16 of these explicitly, while our llms.txt stays purely descriptive. That split is the correct one. And bear in mind robots.txt is a request rather than an enforcement mechanism, so anything you genuinely need kept out of a model belongs behind authentication, not behind a text file.
6. Do I Need Both LLMs.txt and LLMs-full.txt?
LLMs.txt should be a short, curated index of your key pages, while LLMs-full.txt is an optional, more exhaustive version with fuller page content. Most sites benefit from having both, with LLMs.txt as the lightweight entry point and LLMs-full.txt for deeper context.
7. Does LLMs.txt Directly Improve Google Rankings?
No, LLMs.txt isn't a traditional SEO ranking factor. Its value is in helping AI assistants and LLM-based search tools understand and accurately cite your site, which is a separate GEO (Generative Engine Optimization) goal from classic search ranking.
8. Where Should LLMs.txt Be Hosted?
LLMs.txt should be hosted at the root of your domain (for example, yoursite.com/llms.txt), the same convention used for robots.txt and sitemap.xml, so crawlers and AI tools can find it predictably.
9. How Often Should I Update My LLMs.txt File?
Update it whenever your key pages, product positioning, or most important content changes meaningfully. Treat it like a living summary of your site rather than a one-time setup task.
10. How Do I See the LLMs.txt File of a Website?
Add /llms.txt to the end of the domain and open it in a browser. Because the file lives at a fixed root path, stripe.com/llms.txt or docs.anthropic.com/llms.txt is all it takes. A 404 means the site has not published one, which is still true of roughly seven in ten domains. From the terminal, curl -s https://example.com/llms.txt does the same thing and tells you the status code, which is handy for checking a list of competitors in one go. Note that documentation often lives on a subdomain, so if example.com/llms.txt returns nothing, try docs.example.com/llms.txt before concluding there isn't one.
11. Is LLMs.txt a Feed, and How Does It Relate to Sitemaps or Product Feeds?
It is not a feed in the RSS sense. There is no subscription, no polling and no update notification: llms.txt is a static Markdown file that sits at a fixed path until you change it, and nothing is alerted when you do. It is closer in spirit to a sitemap, but the two are not interchangeable either. A sitemap is machine-readable XML listing every indexable URL for crawlers; llms.txt is a short curated index of only your most important pages, written for models to read as prose. Keep both. As for product feeds, llms.txt can link to any URL you like, including a feed or catalogue page, but it is a list of links with descriptions rather than a structured data format, so it is not a replacement for a merchant feed or for schema markup.
12. Will LLMs.txt Get My Site Indexed or Cited by AI?
Not on its own, and it is worth being honest about that. Google's own guidance says Search ignores llms.txt entirely, including its generative AI features, and no major AI provider has committed to using it as a citation signal. Ahrefs' 2026 log study found AI retrieval bots, the ones that fetch pages to answer live queries, accounted for just 1.1% of requests to llms.txt files, and that no AI bot ever requested the file from a site that did not already have one.
Where the file does earn its keep is with AI agents and coding assistants, which were the largest AI readership in that same data. If your users point Claude Code, Cursor or a similar tool at your documentation, an llms.txt gives it a clean route to your API reference instead of a guess. To make that happen, link the file from your HTML and mention it in your docs, because agents fetch it when something directs them to it rather than speculatively. Getting cited in AI answers is a separate job, and it comes from the content itself.









