pigfox.ai

Blogllms.txtai searchmarkdowntechnical seo

What llms.txt is and how it works

A lot of site owners have heard of robots.txt. Fewer have heard of llms.txt. They do different jobs.

llms.txt is a proposal for a simple text file that helps large language models find key information about a website. The proposal lives at llmstxt.org. It is not a web standard, and it is not a replacement for robots.txt.

What llms.txt is

The llmstxt.org proposal defines llms.txt as a Markdown file, placed at the root of a site, usually at /llms.txt. Its purpose is to give an LLM a concise map of the site, with links to the pages you want it to read.

The proposal is about guidance, not access control. A crawler or assistant can still fetch pages without an llms.txt file if it can discover them in other ways. If you want to allow or block crawler access, use robots.txt as defined by RFC 9309.

In practice, that means:

  • robots.txt tells crawlers what they may fetch
  • llms.txt suggests what content is most useful
  • HTML metadata still matters for browsers, search engines, and page understanding

What format it uses

The proposal says llms.txt should be plain Markdown. That keeps it easy to write by hand and easy to generate from a CMS or build step.

A typical file includes:

  • the site or project name
  • a short summary
  • section headings
  • lists of links
  • optional notes about what each link contains

The proposal also describes llms-full.txt, which is intended for fuller, consolidated content in plain text or Markdown. That is separate from llms.txt, which is more like a directory.

Here is a simple example:

# Example Company

> Official website for Example Company.

Example Company provides accounting software for small businesses.

## Key pages

- [Home](https://example.com/): Overview of the company and product.
- [Pricing](https://example.com/pricing): Plan details.
- [Docs](https://example.com/docs): Product documentation.
- [Contact](https://example.com/contact): Contact details and support options.

## Policies

- [Privacy](https://example.com/privacy): Privacy policy.
- [Terms](https://example.com/terms): Terms of service.

That example follows the general shape described at llmstxt.org: short, structured, and link-focused.

What it is meant for

The proposal is meant to help LLM-based tools and assistants find the pages that best explain your site. Many websites contain navigation, filters, duplicated templates, and thin pages. A short curated file can point a system to the pages that matter most.

That can be useful for:

  • documentation sites
  • product sites with many subpages
  • service businesses with a few high-value pages
  • publishers that want to identify canonical guides or reference pages

The key idea is curation. You are not trying to list every URL on the site. You are trying to identify the pages that provide the clearest explanation of what you do, what you sell, and where the authoritative details live.

A good llms.txt file often links to:

  • the homepage
  • core product or service pages
  • pricing or plan pages
  • support or documentation pages
  • about, contact, and policy pages

What llms.txt is not

It helps to be precise here, because llms.txt is easy to overstate.

It is not:

  • a standard adopted by the IETF or W3C
  • a substitute for robots.txt
  • a sitemap
  • a ranking signal defined by Google or Bing
  • a guarantee that any model, crawler, or search product will fetch or use the file

The proposal at llmstxt.org describes a convention that site owners can publish. Whether a tool reads it depends on that tool.

That means you should treat llms.txt as a helpful extra layer, not as the only way to explain your site.

How to write a useful file

Keep it short. Use plain language. Link only to pages that are current and worth reading.

A practical approach is:

  1. Start with your homepage.
  2. Add the pages that explain your main offering.
  3. Add the pages that answer common factual questions.
  4. Add policy or trust pages if they matter for interpretation.
  5. Remove pages with little standalone value.

Try to avoid:

  • long link dumps
  • outdated pages
  • duplicate links to near-identical content
  • vague labels such as "Resources" with no explanation
  • private or gated URLs that a public crawler cannot use

Short descriptions help. They give context before a model fetches a page. For example, "Setup guide for first-time users" is better than "Guide".

If your site changes often, generate llms.txt from your CMS or build process so it stays in sync with your main pages. If you want a starting point, the llms.txt generator can help you create a valid file structure.

llms.txt does not replace the basics. You still need a site that is easy to crawl and easy to interpret.

For search engines, that means the usual fundamentals still matter:

  • clear page titles
  • useful meta descriptions
  • sensible heading structure
  • canonical URLs where needed
  • valid structured data where appropriate
  • crawl rules that match your intent

For AI-facing systems, the same foundation helps. A clean homepage, good internal linking, and clear topic pages make it easier for both search crawlers and assistant fetchers to understand your content.

If you publish llms.txt, make sure it agrees with the rest of the site. Do not point to pages that are blocked in robots.txt unless that is a deliberate choice and you understand that some crawlers may not be able to fetch them. Keep the file aligned with your canonical URLs and current navigation.

A simple publishing checklist

Before you put llms.txt live, check these points:

  • Save it at https://example.com/llms.txt
  • Use valid Markdown
  • Include only your most useful public pages
  • Write short descriptions for each important link
  • Remove outdated or duplicate URLs
  • Keep robots.txt, canonicals, and linked pages consistent

Next step: publish the file, then review it whenever your key pages change.


More posts · Check your site's SEO and AEO for free