Published · 8 min read
How to create an llms.txt file for your docs
Learn how to create llms.txt for your documentation: what goes in it, how to write or generate one, and how to keep it accurate after each release.
Published · 10 min read
Learn what an llms-full.txt file is, how it differs from llms.txt, and get a fast step by step method to create and host one at your domain root today.
llms-full.txt is a plain Markdown file at your domain root that bundles the full text of your key pages in one place, unlike llms.txt, which is only an index of links. To create one, pick your best pages, strip boilerplate, convert to Markdown, and host it at /llms-full.txt.
This guide is for the engineer, technical writer, or documentation owner who wants a working file by the end of the day. It walks through choosing pages, cleaning them, generating the file, and hosting it. It also sets honest expectations: adoption is growing, but bots rarely fetch these files so far. The figures below come from published studies and vendor reports, not from our own testing.
An llms-full.txt file is a single Markdown document that contains the complete text of the pages you want an AI agent to read, so the agent can load your content in one request instead of crawling page by page.
The two files do different jobs. llms.txt is an index: a short Markdown list of titles, links, and one-line descriptions that points a model toward your important pages. llms-full.txt is the content itself: the same pages, flattened into one document with headings and source URLs. If llms.txt is a table of contents, llms-full.txt is the book.
| File | What it holds | Typical use |
|---|---|---|
| llms.txt | Links and short descriptions | Helps an agent find the right page |
| llms-full.txt | Full page text in Markdown | Lets an agent read everything in one fetch |
The name to use is llms-full.txt, with a hyphen, placed next to llms.txt at the root of your domain. A wrong name means a crawler requesting the usual path gets a 404 and never sees your content.
You do not need an llms-full.txt file for AI visibility. An llms-full.txt file is not a requirement for AI search ranking, and the available data does not show that publishing one improves your visibility.
The adoption numbers differ by study, because each one sampled different domains. Ahrefs reported that 28% of the domains it sampled had published an llms.txt file. SE Ranking, looking at nearly 300,000 domains, found only 10.13% had implemented it. Read these as two samples with two methods, not one definitive figure. Both agree on the direction: a meaningful minority of sites have the file, and most do not.
The fetch data is more sobering. In the same Ahrefs research, 97% of existing llms.txt files were not fetched by any bots or humans during a one-month monitoring period. Limy, a vendor, reported that out of more than 500 million AI bot visits over 90 days, only 408 specifically requested the llms.txt file. Those studies measured the index file, not llms-full.txt, so treat them as a signal about the whole convention rather than a direct measurement of the full-text version. A file that bots rarely request is a weak bet as a visibility tactic.
The practical benefit is about token use and effort for agents that do read it. A coding assistant or a retrieval pipeline you control can load one document instead of crawling dozens of pages, parsing HTML, and discarding navigation. That saves requests and removes noise from the context. It helps only when the reader knows to ask for the file.
So the case for building it is modest. Build the file if you want a clean, portable copy of your key content for the agents and tools you point at it, and if the cost is an afternoon. Do not build it expecting a ranking lift. Machine-readable documentation is a broader goal; the AI-native documentation pillar guide covers that wider picture.
The pages that belong in your llms-full.txt file are the high-value pages and documentation sections that would help an AI answer customer questions. The failure mode is including everything: a file stuffed with every URL is long, repetitive, and harder for any model to use well.
Ask one question of each candidate page: if a customer asked an assistant about this topic, would this page contain the answer? If yes, it belongs. If the page only exists to route people elsewhere, it does not.
Good candidates for your llms-full.txt file:
Pages to leave out:
Write the list down before you touch any tooling: page title, URL, and owner. Record the date you chose them, too. This list becomes your acceptance check later, and it tells you which pages to re-verify when the product changes. Use pages you own or trust. If a page pulls in content from another source, confirm you have the right to republish it in a bundled file.
Filter out the navigation menus, legal boilerplate, cookie banners, and repeated footers before you convert anything. If you skip this, every page drags the same 40 lines of site chrome into the file, and a model spends its context reading your menu instead of your docs.
Work in this order:
<main> or <article> element), not the full HTML.A conversion can run clean and still be wrong. Open three or four converted pages and compare them against the live versions. Look for missing tables, collapsed code blocks, and text that sat behind tabs or accordions in the browser.
Use a simple structure for the file:
# Your Product
> One-sentence description of what the product does and who it is for.
## Getting started
Source: https://example.com/docs/getting-started
(page content in Markdown)
## Pricing
Source: https://example.com/pricing
(page content in Markdown)
Replace the placeholder name, description, and URLs with your own. Keep the order intentional: put the pages that answer the most questions first, since a reader that truncates the file will cut from the end.
A converted file only proves the text arrived. It does not prove the text is still true.
You can generate the file two ways: with an online tool, or as a step in your site build. The right choice depends on how often your content changes.
An online llms txt file generator or llms-full.txt converter suits a small, mostly static site. You give it a URL or a sitemap, it crawls the pages, and it returns a Markdown file you download and upload. Setup cost is close to zero. The failure mode is staleness: the file is a snapshot, so it drifts the day you edit a page, and nothing reminds you to regenerate it. Most tools of this type are free for small sites. Check what a given tool does when a site exceeds its page limit, because some truncate silently or fail without a clear message.
A build-step script suits any site that ships often. If your site runs on a static-site framework such as Hugo or Astro, you can emit llms-full.txt during the build:
Because the file rebuilds on every deploy, it cannot fall behind the pages it was built from. That is the main reason to prefer a pipeline for documentation that changes weekly.
| Route | Best for | Main risk |
|---|---|---|
| Online generator or converter | Small, rarely edited sites | Snapshot goes stale |
| Build-step script | Frequently updated docs | Needs developer time to set up |
Whichever route you pick, run the generation against a copy first and diff the output against your Step 1 list. A missing page is easier to catch before the file is live.
Save the final document as plain text and host it at the root of your primary domain, at /llms-full.txt. A path inside a subfolder or on a different subdomain is the usual way this fails, because tools that look for the file check only the root.
Then verify it from the outside:
curl -I.Content-Type header is text/plain or text/markdown, not text/html. A server that wraps the file in your site template will serve HTML and defeat the purpose.Your website llms txt setup works best as a pair. Keep llms.txt as the short index and link to llms-full.txt from it, so an agent that finds the index can follow one link to the full text.
As for using the file in practice: you can paste or attach it when you ask a coding assistant to work with your product, feed it into a retrieval pipeline you control, or point an internal tool at the URL. These uses are reliable because you decide what the reader looks at.
Be careful with claims about other tools. As of this writing, we have not seen published confirmation that OpenAI's products, or most AI search crawlers, request the file on their own. If you want to know how an openai llms txt setup is read, assume support is unconfirmed. Check each vendor's current documentation instead of relying on a blog post, including this one.
For a very large site, split the content by product area instead of publishing one oversized file. Each section file stays small enough for an agent to read in full, and you link to those section-level files from the llms.txt index. Put the most useful pages first in each file, since a reader that hits its limit cuts from the end.
Stale content is the bigger risk. A bundled file is a copy, and a copy that falls behind your product gives agents confident, wrong answers. Thally is the product knowledge layer for software teams: when a PR merges, it finds the docs, website, help center and changelog pages a merged change made wrong and opens evidence-backed PRs your team reviews and approves. Whatever you use, name an owner for the file and regenerate it on every deploy. A tool like Thally can help keep the source pages accurate, so the file you bundle from them stays accurate too.
You do not need an llms-full.txt file to be visible to AI search, and the available data shows bots rarely fetch these files. It is still a cheap, useful way to hand clean, complete content to the agents and tools you point at it, as long as the file stays current.
Start by writing down the ten or so pages that answer your customers' questions most often. Generate the file from that list, check that /llms-full.txt returns a 200 as plain text, and set it to rebuild whenever those pages change.
Published under the Thally editorial policy. Technical conformance is defined in the agent-readiness methodology.
Create a managed site, or use the open-source engine to run Thally yourself.