LLMSdocs
English

Machine-readable files a website can publish

The files and markup a site publishes for crawlers, search engines, language model tools and security researchers: what each one is for, where it lives and which document defines it.

Type: Beginner
On this page
  1. The files at a glance
  2. What each file is for
  3. Suggested reading order
  4. See also
  5. References

Most of a website is written for people. A small set of files is written for programs instead. Each one sits at an address that software knows to check, follows a format set out in a published document, and answers one question: which URLs a crawler may fetch, which URLs exist, where a language model tool should start reading, what a page is about, or whom to tell about a security problem.

The smallest of them is often the first file a crawler requests. This is a complete robots.txt for a site at example.com:

robots.txt
# For any crawler without its own group
User-agent: *
Disallow: /drafts/

Sitemap: https://example.com/sitemap.xml
A complete robots.txt, served at https://example.com/robots.txt

The User-agent line opens a group, and the Disallow rule in that group asks crawlers not to fetch URLs whose path starts with /drafts/. The Sitemap line is not part of the group. RFC 9309 treats it as one of the other records that crawlers may interpret, and the Sitemaps protocol says it can appear anywhere in the file. Both lines are explained in robots.txt syntax: groups, rules and matching and how crawlers find a sitemap.

The files at a glance

Machine-readable site files and their governing documents, as of December 2026
File or markupWhere it livesDefined byStatusWho documents reading it
robots.txt/robots.txt at the top of each hostRFC 9309, September 2022IETF Proposed StandardSearch engine crawlers such as Googlebot and Bingbot, and AI crawlers such as GPTBot and ClaudeBot, whose operators document robots.txt controls for them
XML sitemapAny URL on the host; announced in robots.txt or submitted to a search engineSitemaps 0.9Protocol maintained at sitemaps.org; joint support by Google, Yahoo and Microsoft announced in November 2006Google Search and Bing, which accept sitemap submissions
llms.txt/llms.txt, or a subpath such as /docs/llms.txtThe llms.txt proposal by Jeremy Howard, first published 3 September 2024Proposal, version 2.1 since November 2026The proposal is addressed to agents that read documentation; Chrome Lighthouse includes an audit that requests the file
schema.org in JSON-LDInside each HTML page, in a script element of type application/ld+jsonJSON-LD 1.1, with the schema.org vocabularyW3C Recommendation since 16 July 2020; schema.org launched in June 2011Google Search, which uses it for rich results
security.txt/.well-known/security.txtRFC 9116, April 2022IETF Informational RFCSecurity researchers looking for a reporting contact

What each file is for

robots.txt tells crawlers which paths of a host they are asked not to fetch. The rules are grouped by product token, so a site can treat Googlebot, GPTBot and every other crawler differently. Martijn Koster defined the method in 1994, and the IETF published it as RFC 9309 in September 2022. The file is a request, not a lock: RFC 9309 says its rules are not a form of access authorization. The robots.txt section covers the syntax, the tokens AI crawlers use and the limits of the protocol.

An XML sitemap lists the URLs a site wants crawled, optionally with the date each one last changed. One file holds up to 50,000 URLs; larger sites split their URLs across several sitemaps and list them in a sitemap index. Google says it ignores the changefreq and priority fields and uses lastmod when it is consistently accurate. See the Sitemaps section.

llms.txt is a Markdown file that gives a short description of a site or project and a curated list of links, ideally to Markdown versions of pages. It is meant to be read on demand by an agent answering a question, not crawled for an index. It is a proposal rather than a standard, and the proposal itself has changed: version 2 in August 2026 and version 2.1 in November 2026 revised how links and sections work. The llms.txt section follows the current text.

Structured data describes the content of a page in a fixed vocabulary, so that a program can tell that a page is an article, who published it and when. Schema.org supplies the vocabulary and JSON-LD the syntax. Google supports JSON-LD, Microdata and RDFa and recommends JSON-LD as the easiest to maintain. The Structured data section starts with JSON-LD basics: @context, @type and @id.

security.txt gives the address to which vulnerabilities should be reported, with an expiry date so that stale contacts are not used. RFC 9116 requires it to be served over HTTPS from the /.well-known/ path. See security.txt: publishing a security contact in the Formats and HTTP section.

Suggested reading order

  1. Where site files live: the root path and /.well-known/ explains why some files sit at the root path and others under /.well-known/.
  2. Serving site files: media types, encoding and status codes covers media types, encoding and the status codes crawlers react to.
  3. From there, each section can be read on its own: llms.txt file format, robots.txt syntax: groups, rules and matching, Sitemap XML format and JSON-LD basics: @context, @type and @id are the reference pages for each format.

See also

  • Where site files live: the root path and /.well-known/Clients find machine-readable site files at fixed addresses: some at the root of each host, some under the /.well-known/ prefix of RFC 8615, and some inside every page. Where a file sits also decides which URLs it can speak for.
  • What llms.txt isllms.txt is a proposed Markdown file, usually served at /llms.txt, that gives language model tools a short description of a site and a curated list of links to read. It is a proposal rather than a standard, and it does not control crawling or training.
  • robots.txt syntax: groups, rules and matchingReference for the robots.txt file format as standardized in RFC 9309: groups and user-agent lines, allow and disallow rules, the * and $ characters, comments, and the longest-match rule that decides which line applies to a URL.
  • Sitemap XML formatEvery element of the Sitemaps 0.9 XML format, with the size limits, encoding and escaping rules, which fields Google uses, and the RSS, Atom and text alternatives.
  • JSON-LD basics: @context, @type and @idHow schema.org structured data is written in JSON-LD 1.1: the script element that carries it, the four keywords most pages need, and the choice between nesting a node and referring to it by @id.

References

  1. Koster, M., Illyes, G., Zeller, H. and Sassman, L. RFC 9309: Robots Exclusion Protocol. IETF, September 2022 rfc-editor.org (accessed 5 December 2026)
  2. Sitemaps XML format, sitemaps.org sitemaps.org (accessed 5 December 2026)
  3. Sitemaps, Wikipedia (history of versions 0.84 and 0.90) en.wikipedia.org (accessed 5 December 2026)
  4. Howard, J. The /llms.txt file, v2.1 llmstxt.org (accessed 5 December 2026)
  5. JSON-LD 1.1, W3C Recommendation, 16 July 2020 w3.org (accessed 5 December 2026)
  6. Introducing schema.org: Search engines come together for a richer web. Google Search Central Blog, 2 June 2011 developers.google.com (accessed 5 December 2026)
  7. Introduction to structured data markup in Google Search. Google Search Central developers.google.com (accessed 5 December 2026)
  8. Foudil, E. and Shafranovich, Y. RFC 9116: A File Format to Aid in Security Vulnerability Disclosure. IETF, April 2022 rfc-editor.org (accessed 5 December 2026)
  9. llms.txt audit. Chrome for Developers, Lighthouse documentation developer.chrome.com (accessed 5 December 2026)