Two familiar files have lived in your site's root directory for years:
robots.txt, which tells search engine bots "go here, don't go there", and
sitemap.xml, which says "here are all my pages". The AI era has added a new
member to the family: llms.txt — a small text file that describes your
site to AI models in your own words.
In this post we'll cover what the standard is, what the file looks like and how to add it to your site — no hype, just the practical parts.
What exactly is llms.txt?
llms.txt is a summary file written in Markdown that sits in your site's
root directory (at yoursite.com/llms.txt). It contains your site's name, a
one-or-two-sentence description, and short annotated links to your most
important pages.
The problem it solves: when an AI model tries to understand your site, it
faces HTML pages stuffed with menus, cookie banners, carousels and piles of
scripts. Digging the answer to "what is this site for?" out of that noise is
both wasteful and error-prone. llms.txt flips the job around: instead of
letting the model guess, you write the answer yourself. Where robots.txt
tells bots where they may go, llms.txt tells them what they should care
about.
Where did the standard come from?
The proposal came in autumn 2024 from a familiar name in the software world: Jeremy Howard, co-founder of Answer.AI. The motivation was practical: a language model's "context window" — the amount of text it can read in one go — is limited, and reading a whole site as raw HTML fills that window with junk. Offering the model a tidy, well-organised Markdown front door is more efficient for everyone.
Within months, thousands of sites — documentation tools first — began publishing the file. Today some documentation platforms generate llms.txt automatically, and SEO tools have added its presence to their "AI readiness" checks.
The structure of the file
The standard is deliberately simple. There are four building blocks:
- H1 heading: The name of your site or project. This is the only required field.
- Blockquote summary: A line starting with
>that describes the site in one or two sentences. - Sections: Link lists grouped under
##headings, each link followed by a short description. - The Optional section: A special section named exactly
Optional; secondary links that can be skipped when space is tight go here.
An example llms.txt
For a fictional dental clinic, the file could look like this:
# Example Dental Clinic
> We are a dental clinic offering oral and dental care with online
> booking. This site covers our treatments, our clinicians and our
> current pricing.
## Services
- [Dental implants](https://exampleclinic.com/implants): The process,
healing stages and frequently asked questions
- [Orthodontics](https://exampleclinic.com/orthodontics): Braces vs.
clear aligners compared
- [Price list](https://exampleclinic.com/prices): Current treatment fees
## About
- [Our clinicians](https://exampleclinic.com/team): Specialties and experience
- [Contact](https://exampleclinic.com/contact): Address, phone and booking
## Optional
- [Blog](https://exampleclinic.com/blog): Patient guides on oral health
That's all. No flowery language, no keyword stuffing; a model reading this file understands the clinic as it is.
llms.txt vs. llms-full.txt
The standard also has a big sibling: llms-full.txt. While the first offers
only a summary and a link list, the second gathers the full text of your
important content into a single Markdown file. That makes a lot of sense for
documentation sites (the model reads the whole manual in one request); for a
typical business site or online store, llms.txt alone is usually enough.
Start small; grow it if the need appears.
How do you add it to your site?
The good news: it's a five-minute job.
- Write the file. Create a file in the structure above using any plain text editor. Save it as UTF-8 so any special characters — accents, non-Latin letters, symbols — survive intact.
- Upload it to the root. The file must open at
yoursite.com/llms.txt; a subfolder won't do. Uploading it to your site's root folder via your hosting panel or FTP is enough. On WordPress, several SEO plugins can generate llms.txt for you if you prefer. - Check it. Type the address into your browser; if it opens as plain text, you're done. A 404 means the file landed in the wrong folder.
- Keep it current. Update the file when you add a major section or when URLs change. A few minutes of maintenance a year is enough.
Common mistakes
The file is simple, yet the same mistakes keep showing up in the wild. Know them in advance and you'll never hit one:
- Copying your sitemap. llms.txt is a curated selection, not a link dump. Instead of listing five hundred product pages, present your 10–20 most important pages with a one-sentence description each; the job is "show what matters", not "list everything".
- Links without descriptions. A bare list of URLs tells a model almost nothing. That short description on each line is the file's real value.
- Writing in ad-speak. "The industry-leading brand, unmatched quality..." carries no information to a model. Say what you do in plain sentences; the reader of this file isn't a person — it's a machine trying to summarise you.
- Writing it and forgetting it. An llms.txt pointing at renamed or removed pages leaves a worse impression than having none at all.
- Contradicting robots.txt. If the pages you showcase in llms.txt are blocked to AI bots in robots.txt, you're giving with one hand and taking back with the other; review the two files together.
Let's be honest: does llms.txt open every door?
No — and you should add it knowing that. The big AI companies haven't formally committed to reading llms.txt; the standard is still young and its impact is debated. But the equation is simple: it takes minutes to prepare, the risk is zero, and the chance of describing your site to machines correctly is real. robots.txt was once a voluntary file too; today it's a cornerstone of the web. Those who move early will be the ones ready when the standard settles.
In short: llms.txt is currently the cheapest way to tell AI "understand me
correctly". Write it, put it in your root directory, update it now and then —
time will take care of the rest.
You can find out whether your site has an llms.txt — and check your overall AI readiness — right now with DoktorSEO's free site check-up.