llms.txt is a proposed text file that gives AI tools a short map of a website's most useful pages.
This guide is for website owners, marketers and people new to security who keep hearing about llms.txt and want to know whether they need one. You do not need to know how to code. It explains what the file is, what it is not, and the safety points to check before you publish one.
In short
- llms.txt is a proposal, not an agreed internet standard. It sits at the root of a website, such as example.com/llms.txt.
- It is written in Markdown: a title, a one-line summary, then lists of links to the pages that matter most.
- It is a reading guide for AI tools, not a lock. Google says you do not need special AI text files to appear in its AI search features, so treat the file as optional.
- Everything in the file is public. Never put private links, internal notes or secrets in it.
What you will learn
- Explain what llms.txt is and who proposed it.
- Tell the difference between llms.txt, robots.txt and a sitemap.
- Read a simple llms.txt file and know what each part does.
- Decide whether publishing one makes sense for your site, and do it safely.
- AI reading guide (llms.txt)
- a short file that points AI tools at a site's best pages.
- Notice for bots (robots.txt)
- a file that asks crawlers which parts of a site to stay away from.
- Simple formatting (Markdown)
- plain text with a few symbols, such as # for a heading, that both people and programs can read.
What is llms.txt?
Think of a big museum. You could wander every room. Or you could pick up the one-page leaflet at the door that says "start here". llms.txt is that leaflet, written for AI tools.
The idea was proposed by Jeremy Howard in September 2024 [1]. The file goes at the root of a site, such as example.com/llms.txt. It can also sit inside a section, such as example.com/docs/llms.txt, and cover the pages under that path [1].
The proposal says the file is mainly meant to help an AI tool while it answers a user's question. Training could use it too [1]. The project describes itself as a proposal open for community input [1].
Where the comparison stops working: a museum leaflet is checked by staff before it is printed. Nobody checks an llms.txt file. An AI tool may read it, ignore it, or read something an attacker slipped into it.
If you are still getting used to the bots that visit websites, start with AI Crawlers for Beginners. This page looks only at the llms.txt file.
Why does it matter?
People increasingly ask AI tools questions instead of searching. Site owners want those tools to find the right pages. The llms.txt file is one proposed way to help. It is also easy to overrate, or to fill with things you should not publish.
If you run a website or blog
What could happen: you spend time on the file expecting more AI visitors. The AI tools you care about may not use it.
Check this: read what each AI search provider says it needs before you invest effort.
If you look after security
What could happen: someone lists staging sites, internal documents or admin pages in the file, and now they are published in one easy list.
Check this: review the file like any other public page before it goes live.
If you build or use AI tools
What could happen: your AI agent reads a site's llms.txt and treats text in it as instructions instead of just information.
Check this: treat any web content an agent reads, including llms.txt, as untrusted.
What does it look like?
Here is a made-up llms.txt for a small garden shop. It follows the layout the proposal describes [1].
Example only. All values are made up.
# EXAMPLE Fern and Fork Garden Shop (1) > Small online shop selling seeds and garden tools. (2) Orders ship within the UK only. (3) ## Guides (4) - [Planting calendar](https://example.invalid/calendar.md): what to sow each month - [Tool care](https://example.invalid/tool-care.md) ## Policies - [Returns](https://example.invalid/returns.md)
- A heading with the site or project name. This is the only part the proposal requires.
- A short summary in a quote block, starting with ">".
- Optional plain notes that help an AI tool understand the site.
- Sections that each list links with a short note. In a real file, these lines would point to the site's real public pages, often clean Markdown versions of them.
Why this is risky: it is tempting to add a "staff" section with links to an admin panel or a test site. Anyone can read the file.
The safer way: list only pages that are already public and that you are happy for anyone to find in one place.
How does it work?
- The site owner writes the file. It uses Markdown: a title, a short summary, then sections with lists of links [1].
- The file is placed on the website. Usually at /llms.txt, or under a section path. If several files apply, the proposal says tools should use the most specific one [1].
- Clean copies of pages may be added. The proposal suggests a Markdown version of each important page at the same address with .md added, such as page.html.md [1].
- An AI tool may fetch it. When a user asks about the site, a tool that supports the idea can read the file to find the best pages quickly. Nothing forces any tool to do this.
- The tool still decides. The file is a suggestion. It does not grant or block access to anything.

It helps to compare it with two files you may already have. The robots.txt file tells automated tools what access is acceptable. The llms.txt file offers context for tools helping a user [1]. A sitemap lists every page, which the proposal notes is usually too large for an AI tool to read at once [1].
The robots.txt file has an agreed standard, RFC 9309, published in September 2022. That standard says its rules "are not a form of access authorization" [3]. The llms.txt file is softer still: a proposal with no agreed rules for who reads it.
Google says you do not need new machine-readable files or AI text files to appear in its AI search features [2].
A worked example
This story is made up to show the idea.
Orla Grover runs the website for Fern and Fork, a small garden shop. A marketing newsletter tells her every site "must" have an llms.txt to be found by AI. She asks her friend Calla Yeboah, who works in IT security, for a second opinion.
Calla suggests three questions. Do the AI tools Orla cares about say they use the file? What would go in it? Who checks it before it goes live?
Orla reads Google's guidance and finds that no special AI text file is needed for its AI features. She decides llms.txt is a nice extra, not a must.
She writes a short file anyway, because her planting guides are useful and she wants them easy to find. Her first draft has a section called "Staff links" with the address of the shop's test site and a shared stock spreadsheet.
Calla spots it straight away. "This file is public. You have listed the places you want people to avoid." Orla removes the section, and Calla checks the test site is behind a password anyway.
The final file lists only public guides and policies. Orla adds a yearly reminder to review it. She learned that llms.txt is easy to write, optional, and must be treated like any other public page.
Myths and mistakes
| What people think | What is true |
|---|---|
| llms.txt is an official web standard. | It is a proposal that describes itself as open for community input[1]. |
| llms.txt blocks AI tools from training on my site. | It does not block anything. Use the controls each AI company documents, and real access controls for private content. |
| I need llms.txt to appear in Google's AI answers. | Google says no special AI text files are needed for its AI features[2]. |
| It is just a list, so there is nothing to check. | It is public. Listing private or test pages points everyone straight at them. |
| AI tools will follow whatever my file says. | Each tool decides whether to read it. A good AI tool should treat its contents as information, not orders. |
What can I do this week?
- Open your own llms.txt and robots.txt in a browser to see what you publish.
- If an llms.txt exists, read every link in it and remove anything that is not meant to be public.
- Check that test sites and admin pages need a password, whatever any text file says.
- Read AI Crawlers for Beginners to see which bots visit sites and how to manage them.
Checklist
- I can explain llms.txt as a proposed, optional reading guide for AI tools.
- I know llms.txt, robots.txt and a sitemap do different jobs.
- I know none of these files keeps anyone out.
- Every link in our llms.txt points to a page that is already public.
- Someone owns the file and reviews it at least once a year.
- Private pages are protected by passwords or other access controls.
- Our own AI tools treat text from websites, including llms.txt, as untrusted.
Common questions
Should I publish an llms.txt file?
It is optional. It may help if you have documentation or guides that AI tools struggle to find, and it is quick to write. It will not replace good, readable pages, and Google says its AI features do not need it. If you publish one, keep it short and public-only.
Is llms.txt the same as robots.txt?
No. The robots.txt file follows an agreed standard that asks crawlers where not to go. The llms.txt file is a proposal that points AI tools at your best pages. One says "please avoid", the other says "start here". Neither is a security control.
Can llms.txt stop AI companies using my content?
No. It does not contain blocking rules. To limit AI crawlers, use the robots.txt names and other controls each company documents, and remember that even those are requests. Truly private content needs a login or other access control.
Where does the file go?
At the root of your site, such as example.com/llms.txt. The proposal also allows a file inside a section, such as example.com/docs/llms.txt, covering the pages under that path.
Is there a security risk in having one?
The file itself is harmless text. The risks come from what you put in it, such as private links, and from AI tools that might treat its words as instructions. Review it like a public web page.
Where next?
Ready for the detail? Read the practitioner guide: AI Crawler and Scraper Controls. It covers the robots.txt names, edge rules and checks teams use to manage AI bots on their sites.
Also useful:
- AI Crawlers for Beginners
- Bots and Bot Traffic for Beginners
- What Is Generative Engine Optimisation (GEO)?
- AI Crawler and Grounding Controls Tracker
Related NHI Mgmt Group resources: AI Search Engines for Beginners, Prompt Injection for Beginners and Website Security for Beginners.
Key terms
- llms.txt
- A proposed website file that gives language models a short, curated, Markdown overview of a site.
- robots.txt
- A site-level text file that asks crawlers which paths not to visit. It is voluntary, not a lock.
- AI crawler
- An automated program that visits web pages to collect content for AI training, search or answers.
- Large language model (LLM)
- An AI system trained on large amounts of text to produce and transform text.
- Generative engine optimisation
- Shaping content so AI systems are more likely to find, summarise and cite it.
- Markdown
- A simple way of formatting plain text with symbols, such as # for headings and [text](link) for links.
Sources and further reading
- Jeremy Howard, "The /llms.txt file", llmstxt.org, first published 3 September 2024. https://llmstxt.org/ (accessed 30 Nov 2026).
- Google Search Central, "AI features and your website", Google for Developers. https://developers.google.com/search/docs/appearance/ai-features (accessed 30 Nov 2026).
- M. Koster, G. Illyes, H. Zeller and L. Sassman, "RFC 9309: Robots Exclusion Protocol", IETF, September 2022. https://www.rfc-editor.org/rfc/rfc9309.html (accessed 30 Nov 2026).