How to Write llms.txt: Structure and Placement
How to Write llms.txt: Structure and Placement
图片加载中
GEO Academy
FAQ
2026-11-04 · 4 min read

How to Write llms.txt: Structure and Placement

llms.txt is a Markdown site description placed at the site root; it gathers the site's positioning, core pages and institution facts into one readable list. The cost of adding it is low, but there is no unified standard for how it gets read.

llms.txt is a Markdown note at the root describing site positioning, core pages and institution facts. This covers structure, placement and checks.

llms.txt
site description for large models
GEO foundation files

Conclusion

llms.txt is a Markdown site description placed at the site root; it gathers the site's positioning, core pages and institution facts into one readable list. The cost of adding it is low, but there is no unified standard for how it gets read.

TL;DR

  • Place one llms.txt at the site root stating the site's positioning, the core page list and basic institution facts.
  • List core pages as Markdown links, each with a verifiable purpose line and an update date.
  • Confirm that robots.txt allows the file to be read, and update the content and the date whenever the site changes.

Definition and context

llms.txt is a Markdown plain-text file placed at the site root path (usually /llms.txt) that uses a title, a short description and a link list to tell a large language model what the site does and which pages are worth reading.

The file was proposed by Jeremy Howard of Answer.AI in 2024, and llmstxt.org is the proposal page. It is not a formal standard issued by W3C, IETF or search engines, and whether mainstream Chinese models read it has no public explanation (to be confirmed).

It plays a different role from robots.txt and sitemap.xml: robots.txt defines what a crawler may fetch, sitemap.xml lists indexable URLs, and llms.txt explains in natural language what pages are for and what the institution is. None of the three replaces another.

For a family education institution, the reason to bother is simple: writing one file means sorting existing information and involves no redesign, and pages keep working even if a model does not read it yet. It is closer to a site manual than a ranking tool.

Step-by-step

  1. Confirm the placement path and the file format. Put the file at the root path /llms.txt, use UTF-8 encoding and Markdown syntax, and keep it out of /blog/ or /assets/. How to tell it was done: visiting the domain plus /llms.txt in a browser shows plain text without a login. On a CDN, confirm the origin path also returns the file.

  2. Write one sentence on the site's positioning. Open with a level-one heading carrying the site name, then one sentence on the industry, the audience served and the cities covered. How to tell it was done: the sentence carries no stacked adjectives and a reader knows within ten seconds what the site does and whom it serves.

  3. List core pages by theme. Group with level-two headings, for example courses, campuses and Q&A, each group listing Markdown links with one description line. How to tell it was done: the links open, the descriptions match the pages, and retired or renamed pages stay out.

  4. Add institution information. Write the full institution name, the domain, where the entity is located, contact details and the update date; school licences and permits follow local authority requirements, with specific numbers to be confirmed. How to tell it was done: the name, address and phone match the official site and the map platform, and the institution name follows the business licence.

  5. Align with robots.txt and sitemap. Confirm that robots.txt does not block /llms.txt and that the core pages in the sitemap match the list. How to tell it was done: every URL in the list opens and a matching entry exists in the sitemap.

  6. Build an update and check habit. Change llms.txt whenever a section or core page changes, and refresh the update date inside the file. How to tell it was done: no dead links linger in the file, and the update date is later than the most recent page change.

Below is an example structure, where the institution name, domain and pages are all examples and real information replaces them in use:

# Example Institution

> A family education provider for children aged 6 to 12, with three campuses in an example city.

Course list:

- [Example entry course](https://example.com/courses/example): course objectives and class formats for complete beginners.
- [Example advanced course](https://example.com/courses/advanced): the progression path for students with prior experience.

Campus list:

- [Example campus](https://example.com/campuses/example): address, phone number and opening hours.

Institution information:

- Full institution name: Example Institution
- Official website: https://example.com
- Contact: as published on the official site
- Update date: 2026-11-03

Comparison and data

File Audience Main role Location and format Mandatory
llms.txt Large language models and content tools Explains site positioning, core pages and institution facts Root directory, Markdown No, a community proposal
robots.txt Search engine crawlers Defines fetchable and non-fetchable scope Root directory, plain text Industry convention, see RFC 9309
sitemap.xml Search engines Lists indexable URLs and update times Root directory or a declared location, XML No, a protocol convention
canonical tag Search engines Declares the canonical URL of a page Inside the page head, HTML No, recommended setup

The division of work reads like this: robots.txt decides whether a page may be fetched, sitemap.xml decides which pages exist to fetch, and llms.txt explains what each page covers. When any one is missing, the other two lose value.

Common mistakes

  1. Treat llms.txt as a keyword dump → Consequence: the file is bloated, priorities blur and tools struggle to extract anything → Correct approach: one sentence per point and core pages exclusively.
  2. Put it in a subdirectory or rename it → Consequence: reading tools look at the root path and find nothing → Correct approach: keep it at /llms.txt.
  3. Leave many dead links in the list → Consequence: the file loses credibility and later entries get ignored → Correct approach: update after every site change and check each link's reachability.
  4. Block the file in robots.txt → Consequence: crawling tools cannot read it and the file may as well not exist → Correct approach: review the rules and explicitly allow /llms.txt.
  5. Assume that publishing llms.txt alone earns citations → Consequence: page content and institution facts get neglected → Correct approach: treat it as supplementary description that never replaces content work and fact checking.

FAQ

Q: Is llms.txt an official standard?

No. It is currently a community proposal, with the proposal page at llmstxt.org, no standards body behind it and no unified field specification. Different tools may take different formats, so write with clarity, brevity and readability as the guiding principles.

Q: Does skipping llms.txt reduce the chance of being cited by AI?

No public evidence shows that skipping it loses citation opportunities (to be confirmed). It is closer to low-cost supplementary material; when pages cannot be crawled, course information is missing and institution facts disagree, one extra file fixes nothing, so it ranks below those fundamentals.

Q: Does llms.txt duplicate the sitemap?

No. The sitemap is a URL list for search engines and answers "which pages exist"; llms.txt is a description for models and answers "what the site does and what each page covers". The content and the format differ, and neither replaces the other.

Q: Should the file carry the full body text?

It is not advisable. The value of llms.txt lies in indexing and description, not in carrying full text. Pasting whole articles makes the file long and less readable. The right approach is a link plus one description line, letting the reader visit the page as needed.

Q: How many llms.txt files does a multilingual site need?

There is no unified convention (to be confirmed). A common approach keeps one master description at the root listing the entry point of each language, and separate files per language also work. Either way, the entry links must open and the language and path must be stated.

Q: Who maintains it and how often should it be updated?

Operations or the content owner should maintain it, updating whenever the site is redesigned, courses start or stop, or a campus changes, with a check at least once a quarter. The test is whether the links, phone numbers and update date still match the official site.

Next steps

References

FAQs

Is llms.txt an official standard?
Does skipping llms.txt reduce the chance of being cited by AI?
Does llms.txt duplicate the sitemap?
Should the file carry the full body text?
How many llms.txt files does a multilingual site need?
Who maintains it and how often should it be updated?

Related reading

Put this article to work

Go back to the workflow for the matching step, or check your brand visibility in domestic LLMs with the free tools.

Page URL: https://sakebi.com/en/articles/llms-txt-guide