Most guides about llms.txt explain the idea and then stop. What people actually want is a working llms.txt example they can copy, edit and upload in ten minutes. So this post starts with the file itself and explains each line after.
What llms.txt is, in one paragraph
llms.txt is a plain Markdown file that sits at the root of your domain (yoursite.com/llms.txt). It was proposed in 2024 as a simple way to give large language models a clean map of your most important pages, without menus, cookie banners or scripts getting in the way. Think of it as a short, human written table of contents for AI tools.
It does not replace robots.txt or your sitemap. robots.txt says who may crawl. sitemap.xml lists every URL. llms.txt picks the handful of pages that best explain who you are and what you offer.
A complete llms.txt example
Here is a file for a fictional bakery supply business. Copy it and swap in your own details.
# FlourWorks Supplies > FlourWorks sells commercial baking ingredients and equipment to bakeries and cafes across North India, with next day delivery in Delhi NCR. We supply flour, premixes, baking tools and ovens. Orders above Rs 5,000 ship free. We do not sell to individual home bakers. ## Products - [Flour and premixes](https://flourworks.example/flour): Wholesale flour, cake premixes and bread improvers - [Baking equipment](https://flourworks.example/equipment): Deck ovens, mixers and proofers with installation - [Price list](https://flourworks.example/pricing): Current bulk pricing and delivery charges ## Help - [How ordering works](https://flourworks.example/how-to-order): Minimum order, payment terms, delivery slots - [FAQ](https://flourworks.example/faq): Returns, GST invoices and service areas ## Optional - [Blog](https://flourworks.example/blog): Recipes and kitchen setup guides - [About us](https://flourworks.example/about): Company history and team Line by line: why each part is there
The H1 title. One line, your brand name. This is the only required element in the format.
The blockquote summary. The line starting with > is the most valuable sentence in the file. Write it the way you would want ChatGPT or Perplexity to describe you. Say what you sell, who you sell to and where.
The short paragraph. Use it for facts an AI tool often gets wrong: minimum order, who you do not serve, service area.
The H2 sections. Each section is a list of links in the format [name](url): short note. Keep notes factual. Five to fifteen links in total is plenty.
The Optional section. Anything listed under a heading called "Optional" can be skipped by a tool that has limited context. Put nice to have pages here.
Five mistakes I see in real llms.txt files
- Dumping the whole sitemap. If it has 400 links, it is not helping anyone. Pick your best pages.
- Marketing fluff in the summary. "Leading innovative solutions provider" tells a model nothing. Be specific.
- Broken or redirected URLs. Every link should return a 200 status.
- Serving it as HTML. The file should be plain text or Markdown, not a page wrapped in your theme.
- Forgetting to update it. New service or new pricing page? Add it.
How to check your file after uploading
Open yoursite.com/llms.txt in a browser. You should see raw text, not your website design. Then confirm that AI crawlers are actually allowed to reach your site, because a perfect llms.txt does nothing if robots.txt blocks GPTBot or ClaudeBot.
If you want a deeper walkthrough of the format with more examples, this llms.txt example and guide covers structure, placement and testing. There is also a free llms.txt generator that builds a first draft from your homepage, which you can then edit by hand.
Does llms.txt help rankings?
Honest answer: it is still early. No major AI company has publicly confirmed that it reads llms.txt as a ranking signal. But it costs nothing, takes minutes, and it forces you to write a clear one line description of your business, which helps everywhere else too: your homepage, your Google Business Profile and your schema markup.
Treat llms.txt as one small part of being easy for AI tools to understand, alongside crawlable pages, clean headings and FAQ schema. Do those well and you are ahead of most websites today.