llms.txt: What It Is, How to Write One, and Whether It Matters

What llms.txt is, the exact file format with a real example, how it differs from robots.txt and sitemaps, how to generate it, and what it can and cannot do.

SEO 3 min read

llms.txt: What It Is, How to Write One, and Whether It Matters

llms.txt is a plain Markdown file at yoursite.com/llms.txt that tells large language models what your site is and which pages are worth reading, each with a one-line description. It was proposed in September 2024 by Jeremy Howard of Answer.AI as a “sitemap for LLMs”. It does not block or allow anything like robots.txt does; it is a short, curated guide written for machines that read text, not HTML.

What llms.txt is for

Web pages are built for people: navigation, cookie banners, scripts, layout. A language model with a limited context window has to dig through all of that to find the facts. llms.txt gives it the short version up front: who you are, what you offer, and the 10 to 100 links that explain it best.

The llms.txt format

The proposal at llmstxt.org defines a simple structure, in this order:

  1. An H1 with the name of the site or project. This is the only required part.
  2. A blockquote with a short summary of what the site is.
  3. Optional paragraphs or lists with details that help interpret the rest.
  4. H2 sections, each with a Markdown list of links: - [Name](URL): description.
  5. An optional section titled ## Optional for links a tool can skip when space is short.

A real llms.txt example

This is the start of the file we generate for yarify.tech on every build:

# Yarify

> Yarify (Yarify s.r.o.) is a Prague-based software development company
> founded in 2025 ... Clients own all code and IP.

## Services

- [MVP development](https://yarify.tech/services/mvp-development): Fixed-price
  MVP development for web and mobile app MVPs ...
- [Free code audit](https://yarify.tech/services/code-audit): A free,
  no-obligation codebase audit by a senior engineer ...

Each line answers “what is this page and why would I read it?” in one sentence. That is the whole trick.

llms.txt vs robots.txt vs sitemap.xml

FileAudienceWhat it does
robots.txtAll crawlersAllows or blocks access per user agent
sitemap.xmlSearch enginesLists every indexable URL with dates
llms.txtLanguage models and AI toolsSummarises the site and curates the key pages
llms-full.txtLanguage models and AI toolsThe key pages’ full text in one file

If you want AI search tools to read your site, robots.txt matters far more than llms.txt. Check that you are not blocking GPTBot, OAI-SearchBot, PerplexityBot or ClaudeBot by accident, often through a CDN or firewall rule rather than robots.txt itself.

How to generate llms.txt

  • Static and framework sites (Next.js, Astro, Nuxt): generate it at build time from the same route list that builds your sitemap. Ours is built from one route registry, so a new page appears in the sitemap and in llms.txt in the same deploy.
  • WordPress: several SEO plugins can output llms.txt; check that the result is curated, not a dump of every URL.
  • Online llms.txt generators: fine for a first draft. Rewrite the descriptions yourself, because generic ones defeat the purpose.

Serve it as text/plain or text/markdown, keep it under a few hundred links, and link only to pages that return 200.

Does llms.txt help SEO or GEO?

Be honest about it. No major AI search provider has publicly committed to using llms.txt for ranking or citations, and Google has said it does not rely on it for Search. Where it clearly helps today is with AI agents, coding assistants and tools that are pointed at your site and look for it.

It takes an hour to create and costs nothing to keep current if it is generated. So add it, but spend your real generative engine optimization effort on what demonstrably moves AI answers: crawlable server-rendered pages, direct answers, consistent entity data and mentions on sites models trust. The difference between the approaches is laid out in GEO vs SEO.

llms.txt checklist

  • H1 with the exact brand name you use everywhere else
  • A two-to-four sentence blockquote that states what you do and for whom
  • Sections by intent: services, pricing, comparisons, documentation, case studies
  • One honest sentence per link, no keyword lists
  • Generated from your routes, so it never lists a dead URL
  • Optional llms-full.txt for docs-heavy sites
  • robots.txt checked so AI crawlers can actually reach the pages

To see in seconds whether AI crawlers can read your homepage, run our free AI visibility checker. For a deeper look, our free AI visibility audit covers llms.txt, crawler access, rendering and structured data in one report.

FAQ

What is llms.txt?

llms.txt is a Markdown file at the root of a website, at /llms.txt, that gives large language models a short summary of the site and a curated list of its most useful pages with one-line descriptions. It was proposed in 2024 by Jeremy Howard of Answer.AI.

Is llms.txt the same as robots.txt?

No. robots.txt tells crawlers what they may and may not access. llms.txt does not grant or block anything; it is a guide that points AI tools to the pages worth reading and explains what the site is.

Do ChatGPT and Google use llms.txt?

There is no public commitment from the major AI search providers to use llms.txt for ranking or citations, and Google has said it does not rely on it for Search. AI coding tools and agents that are pointed at a site do read it. Treat it as cheap insurance, not a ranking factor.

What is llms-full.txt?

llms-full.txt is a companion convention that puts the full text of the important pages into one Markdown file, so a tool can load the whole site's key content in a single request.

How do I create an llms.txt file?

Write a Markdown file with an H1 site name, a blockquote summary, optional notes, and H2 sections containing link lists in the form "- [Page name](URL): one-line description". Serve it at /llms.txt as plain text. On a static or framework site, generate it from your route list so it never goes stale.

Got a project, a quote or a codebase you're unsure about?

Talk to the engineer, not a sales team. You get a fixed written quote after a free scoping call, or a free code audit of what you already have.

Tell us what you're building

Prefer to talk? Pick a 30-minute slot.

sales [at] yarify.tech WhatsApp Telegram