The llms.txt Format Explained, Line by Line (With an Example)
This is a reference guide to the llms.txt format as it stands in version 2 of the proposal, revised in August 2026. It goes through the file one line at a time, so you know what each part does, what changed from the 2024 version and where people usually go wrong. It is written for small business owners and one-person sites who want to write or check the file themselves, with no coding.
If you want a filled-in file to copy, use our llms.txt example for a small business. If you already have a file and want to test it, use the llms.txt checker guide.
If you are still deciding whether to have one at all, start with What Is llms.txt, and Should Your Small Site Add One?, the starting page for our llms.txt guides, and then come back here.
What does an llms.txt file look like?
An llms.txt file is a plain text file written in Markdown that usually sits at the root of your site, for example example.com/llms.txt, and gives AI tools a short, tidy map of your most useful pages.
Markdown is the simple formatting you may have seen in notes apps. A hash sign makes a heading, a dash makes a list item, and square brackets plus round brackets make a link. You can write it in Notepad or TextEdit. You do not need anything else.
Here is a complete example for a made-up plumber in Leeds. The rest of this article goes through it in order.
# Example Plumbing
> Gas Safe registered plumber covering Leeds and nearby towns. Boiler repairs, servicing and bathroom fitting for homes.
We work Monday to Saturday. Emergency call-outs are for existing customers only.
## Services
- [Boiler repairs](https://example.com/boiler-repairs/): Fault finding and repairs for home boilers
- [Boiler servicing](https://example.com/servicing/): Yearly service with a written report
- [Bathroom fitting](https://example.com/bathrooms/): Full refits, from design to tiling
## About
- [About us](https://example.com/about/): Who we are, qualifications and insurance
- [Contact](https://example.com/contact/): Phone, email and the areas we cover
## Optional
- [Blog](https://example.com/blog/): Seasonal advice on heating and plumbingThe parts must come in this order: the title, the summary, any notes, then the headed link sections. The proposal also allows an invisible byte-order mark before the title, which some Windows editors add on their own. You can ignore it.
Where does the file go?
For a small business site, at the root, so it opens at yourdomain/llms.txt and covers the whole site.
Version 2 also allows a file further down, such as /docs/llms.txt. A file like that only covers the pages under its own folder, and where two files apply, the more specific one wins. That is mainly for documentation sites and people who only control part of a domain. One file at the root is all most small sites need.
Line 1: what goes in the H1 title?
The first line is a single hash, a space, and the name of your business or site, and it is the only part the format actually requires.
Write the name people know you by: # Example Plumbing, not # Home or # Welcome. Use one H1 only. If you add a second line starting with a single hash, you have broken the structure the format describes.
What is the blockquote line for?
The line starting with > is a short summary of who you are and what you do, written so a machine can understand it without reading anything else.
Think of it as the answer to "what is this business?" in one or two sentences. Put the important facts in:
- What you do (boiler repairs, haircuts, bookkeeping).
- Who it is for (homes, small firms, dog owners).
- Where you work, if you are local.
Keep it plain and factual. Slogans like "passion for excellence" tell a reader nothing. This is the same idea as our first-two-lines rule: say the useful thing first.
Can you add normal text after the summary?
Yes, you can add one or more short paragraphs or lists after the blockquote, as long as they are not headings.
This is where you put details that do not fit in the summary but help someone understand you: opening days, what you do not do, how bookings work. In the example it is one line about working days and call-outs.
Keep it short. If it starts to read like your full About page, link to the About page instead.
How do the H2 sections and link lists work?
Each line starting with ## starts a section, and under it you list your pages as Markdown links, one per line, each with an optional short note after a colon.
The pattern for every list line is:
- [Page name](https://example.com/page/): One short note about the pageBreak it down:
- The dash and space make it a list item.
- The square brackets hold the name of the page, in plain words.
- The round brackets hold the full web address, starting with https.
- The colon and note are optional, but they are the most useful part. Say what someone will find on the page.
You choose the section names. "Services", "About", "Prices" and "Help" all work. For a small site, two or three sections with a handful of links each is plenty. Link to the pages you would want an AI tool to quote: services, prices, areas covered, contact, and any page with facts only you can give.
What does the Optional section mean?
A section titled ## Optional holds secondary links that a tool can skip if it needs a shorter version of your site.
This is one of the things that changed in 2026. In the first version of the proposal, the word "Optional" had a fixed meaning for the tools that turned a file into one long block of text. Version 2 dropped that: an Optional section is still allowed, but it is now a convention rather than a rule a program acts on.
It is still worth using. Put less important pages there: the blog index, old news, press mentions. Everything outside it should be your core pages, so anyone reading the file can tell what matters most.
The full description of all these parts is on the official proposal at llmstxt.org, which is worth a five-minute read. Version 2 also suggests Markdown copies of your pages at the same address with .md on the end (page.html.md or page.md), plus link tags that point tools to them, and it says the links in an llms.txt file should point to that kind of clean content where it exists. That is aimed at documentation sites. A small business can link to its normal pages and ignore the rest for now.
Common mistakes
- Putting it in the wrong place. For a whole-site file it needs to load at
yourdomain/llms.txt. A file at/blog/llms.txtonly covers your blog, and one uploaded as a page in your website builder or through a media library usually ends up at the wrong address. - Getting the order wrong. Notes or links placed above the summary, or a second H1 further down, break the structure the format describes.
- Linking to pages that are blocked or broken. Check every link opens. If your robots.txt blocks a page, listing it here does not help. Our guide to robots.txt for AI explains how the two files differ.
- Leaving out the notes. A bare list of links tells a tool very little. One short note per link is the point of the format.
- Copying your whole sitemap. It is meant to be a short, chosen list, not every URL you have.
- Letting it go stale. If you change prices or drop a service, update the file at the same time as the page.
Frequently asked questions
Will an llms.txt file get me into ChatGPT or Google AI Overviews?
Not Google's. Since June 2026 Google's AI optimisation guide says Google Search, including its AI features, ignores llms.txt. None of the other big AI search tools has clearly said it uses the file to choose what to cite, so treat it as cheap tidying rather than a ranking fix.
Has the format changed since it was first published?
Yes, a little. Version 2, from August 2026, allows files in subfolders and says what they cover, allows page.md as well as page.html.md for Markdown copies, adds link tags so tools can find those copies, and turns the Optional section into a convention. A file written to the 2024 version with one H1, a summary and link lists is still valid.
Is llms.txt the same as robots.txt?
No. robots.txt tells crawlers what they may and may not visit, while llms.txt is a suggested reading list of your best pages with short descriptions.
Should the file be saved as .txt or .md?
Save it as llms.txt, even though the content inside is written in Markdown. The name is what tools look for.
Do I need a generator to make one?
Not for a small site; writing it by hand usually takes under an hour and gives you better notes. Our comparison of generators and writing by hand covers when a tool makes sense.
This week, open a plain text file and write the first three parts: the H1 with your business name, the one-line summary, and a Services section with three to five links and a note on each. Upload it so it opens at yourdomain/llms.txt, click every link to check it works, and put a reminder in your diary to update it whenever your services or prices change.
Next step: learn this with others
Last reviewed 17 November 2026. Back to the blog.