llms.txt File: What It Is, a Real Example and How to Add One

This post contains affiliate links. If you buy through one, I may earn a commission at no extra cost to you. I only recommend tools I believe are useful. Read my disclosure.

An llms.txt file is a plain Markdown file placed at the root of a website (yoursite.com/llms.txt) that gives AI tools and agents a short summary of the site and a curated list of links to its most useful pages. It was proposed at llmstxt.org as a way to give language models “LLM-friendly content”. It doesn’t control crawling, and Google says you don’t need it to appear in its AI features.

So is it worth adding? It takes about half an hour, it can’t hurt, and it’s useful to coding agents and AI tools that choose to read it. It’s not a ranking shortcut. This guide shows the format, a real llms.txt file from this site, how to write and add your own on WordPress, and what it does and doesn’t do.

Short answer: Create a Markdown file named llms.txt with your site name as an H1, a one-paragraph summary in a blockquote, then H2 sections that list your key pages as links with short notes. Upload it to your site root so it loads at /llms.txt. Keep it short, curated and up to date. Don’t expect it to change your Google rankings.

Key takeaways

  • Location: the site root (/llms.txt), or any sub-path to cover the pages under it, says the spec.
  • Only one section is required: an H1 with the name of the site.
  • Typical structure: H1 title, blockquote summary, optional details, then H2 sections with link lists.
  • Not a robots.txt replacement: it gives context; it doesn’t allow or block anything.
  • Google says it’s not needed for AI Overviews or AI Mode.

What is an llms.txt file?

The llms.txt proposal puts it simply: “We propose adding a /llms.txt markdown file to websites to provide LLM-friendly content.” The file “offers brief background information, guidance, and links to detailed markdown files.”

Think of it as a short tour guide for a machine reader. A sitemap lists every page for search engines. An llms.txt file picks the pages that matter most and explains, in plain words, what each one is for. The spec says the file “stays small enough to fit in context”, with the detail living behind the links.

The proposal notes that llms.txt files “are used most heavily for software documentation, where coding agents follow them to find API references and tutorials,” but the same structure works for a business, a personal site or a blog.

Comparison – sitemap.xml vs llms.txt – full URL list for search engines versus curated Markdown list for AI tools

The llms.txt format, section by section

The spec lists the sections in a fixed order:

SectionRequired?What goes in it
H1 titleYes, the only required partThe name of the site or project
BlockquoteOptionalA short summary with the key facts needed to understand the rest
Base URL lineOptionalBase URL: https://… for resolving relative links
DetailsOptionalParagraphs, lists or H3 subheadings with extra guidance (H1 and H2 are reserved)
H2 sectionsOptionalEach has an optional short summary, then a list of links

Each link line follows one pattern: a Markdown link, then optionally a colon and a note.

# Your Site Name

> One or two sentences that explain what the site is, who it's for and anything a reader must know.

## Start here

- [Beginner guide](https://example.com/start/): the best first page for new readers
- [Free tools](https://example.com/tools/): calculators and templates

## Guides

- [How to do X](https://example.com/how-to-x/): step-by-step guide
Diagram – llms.txt file structure – H1 title, blockquote summary, details, H2 sections and link lines
Section order from the llms.txt spec.

A real example: this site’s llms.txt

Here is the top of the llms.txt file on this site. It opens with the site name, a blockquote summary that says what the site is and that recommended tools are other companies’ products, then sections like “Start here”, “Main pages”, “Best Content”, “Reviews” and “Comparisons”.

davidsandyofficial.com/llms.txt – live file – H1 title, blockquote summary and Start here link list
The top of this site’s llms.txt file.

A few choices worth copying:

  • The summary clears up confusion. It says what the site is, and also what it isn’t, so an AI tool doesn’t mix it up with something that shares the name.
  • Each link has a short note, like what a review covers or that prices change.
  • It’s curated. About 50 links, not every post on the site.

One thing I’d change: the file still ends with an “Optional” section. The spec’s changes page says “The Optional section convention has been dropped from the specification,” so today that’s just an ordinary heading. It does no harm, but a descriptive heading is clearer.

Checklist – what a good llms.txt example does – clear summary, labeled links, curated list

How to write your own llms.txt

  1. Write the H1. Your site or brand name.
  2. Write the summary blockquote. Two or three sentences: what the site is, who it helps, and anything that prevents a wrong answer (for example, “prices change, check the vendor’s page”).
  3. Pick 20 to 60 pages. Your start-here page, best guides, tools, about and contact. Leave out thin or outdated posts.
  4. Group them under H2 headings like “Start here”, “Guides”, “Tools” and “Reviews”.
  5. Add a short note after each link that says what the page answers.
  6. Read it as a stranger would. If it doesn’t explain your site in under a minute, cut it down.
Step graphic – how to write an llms.txt file – six steps from title to stranger test

Pro tip: Write the notes the way you’d answer a question about the page. “How much the plan costs and what’s included” is more useful to a reader, human or AI, than “pricing page”.

If you’d like help drafting the summary and notes, the blog and SEO prompts in my free AI prompt pack can give you a first draft to edit.

How to add llms.txt to WordPress

You have three common options:

MethodHowGood for
Upload the fileUpload llms.txt to your site’s root folder with your host’s file manager or FTPSimple, static files
A code snippetUse a snippet plugin to serve the file text at /llms.txtSites that already manage snippets
An SEO plugin featureSome SEO plugins can generate the file for youHands-off setup, if your plugin offers it

This site serves its file through a small code snippet, which makes it easy to update without touching the server.

After adding it, open yoursite.com/llms.txt in a browser. You should see plain text, not a 404 page or your theme. If you use a caching or CDN service, clear the cache so the new file shows.

Table graphic – three ways to add llms.txt to WordPress – upload, code snippet, SEO plugin

llms.txt vs robots.txt vs sitemap.xml

FilePurposeWho it’s for
robots.txtTells crawlers which URLs they may accessSearch engine and other crawlers
sitemap.xmlLists the URLs you want discoveredSearch engines
llms.txtA curated summary and reading listAI tools and agents that choose to read it

The llms.txt spec says it “can complement robots.txt by providing context for allowed content.” It doesn’t block or allow anything. And Google reminds site owners that robots.txt itself “is not a mechanism for keeping a web page out of Google”. Each file has its own job.

Be realistic about this.

  • Google: its guide to AI features and your website says, “You don’t need to create new machine readable files, AI text files, or markup to appear in these features.”
  • AI tools and agents: the spec says agents “are expected to view or search llms.txt to find the information they need.” Whether a given tool reads it is up to that tool.
  • You: writing the file forces you to decide which pages represent your site best, which is useful for your internal linking too.

So treat llms.txt as low-cost housekeeping, not a growth plan. The things that move AI visibility are the same things that help search: pages that are crawlable, indexed and answer questions clearly. My guide to generative engine optimization for bloggers covers that side, and topical authority explains how to plan content that earns trust.

Chart – what llms.txt can and can't do – summary for AI tools versus no crawl control or ranking boost

For more free tools and templates, open the creator vault.

Frequently asked questions

What is an llms.txt file?

It’s a Markdown file at yoursite.com/llms.txt that gives AI tools and agents a short summary of your site and a curated list of links to your most useful pages. It was proposed at llmstxt.org.

Where do I put llms.txt?

At the root of your site so it loads at /llms.txt. The spec also allows files at sub-paths, like /docs/llms.txt, to cover just the pages under that path.

Is llms.txt required for SEO?

No. Google says you don’t need new machine-readable files or AI text files to appear in its AI features. It’s optional.

What is the difference between llms.txt and robots.txt?

robots.txt tells crawlers which URLs they may access. llms.txt gives context and a reading list. llms.txt doesn’t allow or block anything.

Should every page be listed in llms.txt?

No. The spec intends a curated file that stays small. List your best and most important pages with a short note on each.

Final thoughts

An llms.txt file is a short, honest summary of your site for machine readers. Write it in half an hour, keep it curated and current, and spend the rest of your effort on clear, answer-first pages, because that’s what both search engines and AI tools rely on.

David Sandy Ebook Trilogy Books

Get All 3 Of My Ebooks... For Free!

>
0 Shares
Share
Tweet
Pin