llms.txt examples and a template you can copy
An llms.txt file is a Markdown file at yoursite.com/llms.txt that gives AI agents a short summary of your site and a curated list of links to your most useful pages. It needs an H1 with your name, ideally a one-line summary in a blockquote, and H2 sections listing links with brief notes. Google Search ignores it, but agents and AI tools read it on demand.
What an llms.txt file looks like
An llms.txt file is a short Markdown document that tells AI agents what your site is and where its most useful information lives. It sits at the root of your domain, like yoursite.com/llms.txt, and reads like a well-organized table of contents written for a machine that has limited time and context.
The format was proposed by Jeremy Howard in September 2024 and updated to a second version in August 2026. The llms.txt proposal says thousands of sites now publish one, and that OpenAI, Anthropic and Google's Gemini team publish files for their own developer docs. If you're new to the idea, our short explainer on what llms.txt is covers the basics.
The format, section by section
The specification sets a fixed order so that both people and simple parsers can read the file.
| Section | Required? | What goes in it |
|---|---|---|
| H1 heading | Yes | The name of your business, project or site |
| Blockquote | Recommended | A one or two sentence summary with the key facts needed to understand the rest |
| Detail paragraphs or lists | Optional | Context such as who you serve, where, and how to interpret the links; no headings allowed here |
| H2 file lists | Optional | Groups of links. Each line is a hyphen, the page name in square brackets, the URL in round brackets, then an optional colon and a short note |
| H2 named Optional | Optional | Secondary links an agent can skip when it needs a shorter context |
Version 2 adds two related ideas. Pages can offer a clean Markdown copy at the same URL with .md added, and an llms.txt file can live at a subpath, such as /docs/llms.txt, to cover only the pages below it. Neither is required for a small business site.
Real examples worth studying
Anthropic's developer documentation
Anthropic's llms.txt opens with an H1, "Anthropic Developer Documentation", and a sentence saying what the file covers. It then uses H2 sections for practical facts an agent needs: the root URL of the developer console, how to connect to its docs server, where to find current SDK versions, and which languages the documentation is available in. It reads like an orientation briefing.
Stripe's documentation
Stripe's llms.txt starts with an H1 and then gives direct instructions to coding agents, such as checking the package registry for the latest version instead of relying on remembered version numbers. Its "Docs" section is a long list of links to Markdown versions of key pages, each with a one-line note such as "Simulate payments to test your integration."
What both files get right
- They say plainly what the file covers in the first lines.
- They include instructions that prevent common mistakes, not just links.
- Each link has a short note explaining when to use it.
- They point to clean, text-first versions of pages where possible.
Developer docs are the most common use, but the same structure works for businesses. We added an llms.txt file to LimousineWorldwideServices.com, alongside an OpenAPI-documented lead API, so agents can find service areas, booking information and the right endpoints without crawling all 1,757 pages. You can see the build on our LimousineWorldwideServices.com case study.
A template you can copy
Here is a starting point for a service business. The table shows each line of the file in order. Write every link line in standard Markdown: a hyphen, the page name in square brackets, the URL in round brackets with no space before it, then a colon and a short note. Replace the details with your own and delete anything that doesn't apply.
| Line | Type | Example content |
|---|---|---|
| 1 | H1 (starts with #) | Northside Plumbing Ltd. |
| 2 | Blockquote (starts with >) | Licensed residential and commercial plumbers serving Toronto and the GTA since 2009. 24/7 emergency service. Phone 416-555-0100. |
| 3 | Detail paragraph | Service area: Toronto, Vaughan, Markham, Mississauga. Prices are in Canadian dollars and include HST unless stated. |
| 4 | H2 (starts with ##) | Services |
| 5 | Link line | Emergency plumbing, https://example.com/emergency-plumbing, note: call-out fees, response times, what counts as an emergency |
| 6 | Link line | Drain cleaning, https://example.com/drain-cleaning, note: methods, typical prices, warranty |
| 7 | H2 | Company |
| 8 | Link line | About us, https://example.com/about, note: licences, insurance, team |
| 9 | Link line | Contact and booking, https://example.com/contact, note: phone, hours, online booking |
| 10 | H2 | Optional |
| 11 | Link line | Blog, https://example.com/blog, note: maintenance guides and seasonal tips |
Save the file as plain UTF-8 text named llms.txt, upload it to your site root, and open it in a browser to confirm it loads without a login. If your site runs on a CMS, check whether it can generate the file for you, since the proposal notes that many documentation platforms now do this automatically. Either way, assign someone to review it whenever a service, price or phone number changes.
What llms.txt will and won't do
Be realistic about the payoff. Google's guide to optimizing for generative AI features says Google Search doesn't use llms.txt or other special AI files, and that creating one will neither harm nor help your visibility or rankings in Google Search. The proposal itself describes llms.txt as something agents use on demand when answering a question or completing a task, which is a different job from search indexing.
- It helps coding assistants, browser agents and chat tools that look for a site summary before acting.
- It doesn't replace robots.txt, sitemaps, structured data or good pages. See robots.txt for AI crawlers.
- It can mislead if it goes stale. Update it whenever prices, services or contact details change.
- It is public. Never include private URLs, internal notes or anything you wouldn't put on your homepage.
For the bigger picture, read what generative engine optimization is and our guide to entity SEO for AI search, which do far more for citations than any single file.
How Tcom can help
We write and maintain llms.txt files as part of our AI search visibility service, and keep them in step with your site. Try our free tools to check your current files, or contact us for help setting one up.
Questions
Where exactly should llms.txt go?
Put it at the root of your domain so it loads at yoursite.com/llms.txt. Version 2 of the proposal also allows files at subpaths, such as /docs/llms.txt, covering only the pages below that path.
Is llms-full.txt part of the standard?
The llms.txt proposal page doesn't define an llms-full.txt file. Some documentation platforms generate one with full page content, but it isn't needed for a typical business site.
Will an llms.txt file get me into ChatGPT answers?
Not by itself. ChatGPT search depends on OAI-SearchBot crawling your pages. An llms.txt file mainly helps agents that look for a summary when they visit your site.
How long should an llms.txt file be?
Short enough to read in one pass. For most businesses that means a summary and 10 to 30 well-chosen links, with secondary pages in the Optional section.
Sources
- The /llms.txt file, v2 llmstxt.org (Jeremy Howard)
- Anthropic Developer Documentation llms.txt Anthropic
- Stripe Documentation llms.txt Stripe
- Optimizing your website for generative AI features on Google Search Google Search Central
Sources checked 23 November 2026.