What Is llms.txt? Format, Example and What It Actually Does

llms.txt is an optional Markdown index that guides compatible agents to a website's useful public pages. It describes the site, groups selected resources and can point to readable Markdown copies. It does not grant access or guarantee discovery, rankings or citations. Build it for an identifiable retrieval task, then check that the linked content remains accurate and usable.

Jafrin Akter AloLast updated 12 min read
On this page
An open white book with pink tabs, a lime border and a blue bookmark beside Make Content Easy to Find.

A useful index helps an agent choose the right implementation guide, policy or product explanation. Its value depends on the consumer following it and the linked page answering the question. A neglected index can send that consumer to retired features or old commercial information.

For a team assessing AI-ready information and data, start with the public questions people need answered. Decide which source should answer each one before generating another representation of the whole website.

What does an llms.txt file contain?

The v2 proposal defines an ordered Markdown structure: an optional byte-order mark, one required H1, an optional blockquote summary, optional non-heading detail, then H2 sections containing link lists. List entries use [name](url) with optional notes after a colon. Jeremy Howard introduced the proposal in September 2024; v2 followed in August 2026. llms.txt proposal.

A file may sit at the root or a subpath and covers pages below that path; the most specific applicable file wins. Markdown copies may use page.md, page.html.md, or index.md/index.html.md for directory URLs. Discovery uses rel="alternate" type="text/markdown" for the copy and rel="describedby" for the index, in HTML links or HTTP Link headers.

The Optional section is a convention for secondary links. V2 removed the old context-expansion tool's mechanical treatment of that section. A consumer decides what to retrieve. V2 changes.

Is llms.txt a feed, a sitemap or a robots rule?

llms.txt is a curated reading guide. Choose the publishing surface according to the job it needs to do:

Is llms.txt a feed, a sitemap or a robots rule?
SurfaceMain jobWhat to verify
llms.txtPoint a compatible agent to useful resourcesThe descriptions, links and retrieval task
XML sitemapCommunicate URLs for crawler discoveryCanonical, indexable destinations
robots.txtCommunicate crawl preferences to compliant botsUser agent, path and actual server access
RSS or Atom feedAnnounce published or updated items to subscribersFeed entries and their timestamps
llms-full.txtCombine content for a consumer that wants a bulk exportSize, completeness and consumer support

The llms.txt proposal does not define a standard llms-full.txt format. Treat a combined export as a separate publishing choice, with its own size and maintenance checks. It should not replace the useful index of individual resources.

Neither omitting a URL nor excluding it in llms.txt protects private content. Google also warns that robots.txt is not an access-control mechanism or a reliable way to keep a URL out of Search. Use real authorization for restricted resources. Google robots.txt guidance.

Manage crawler purposes separately. OpenAI documents independent robots.txt controls for OAI-SearchBot, which supports ChatGPT search, and GPTBot, which relates to model training. User-triggered ChatGPT-User retrieval is separate and may not follow robots.txt rules. OpenAI crawler documentation.

Anthropic likewise documents separate training, search and user-requested agents. Apply each provider's stated policy rather than one universal “allow AI” rule. Anthropic crawler controls. Keep the private context files an internal agent needs inside their authorized workflow, separate from this public index.

Does llms.txt improve Google rankings or AI Overview visibility?

Google's current optimization guide says Google Search does not use llms.txt or similar special files and that maintaining them neither helps nor harms Search visibility or rankings. That is more specific than saying the file is “not required.” Do not sell its presence as a Google ranking improvement. Google's generative AI optimization guidance.

A site can therefore reasonably maintain a file for agent usability while expecting no ranking effect from the file itself. Assess the value against the actual integration, not a generic promise that “AI engines prefer websites with llms.txt.”

For public search outcomes, use the appropriate platform reports and AI search measurement. A request for the file in server logs does not establish that an answer cited you or that a qualified buyer arrived. Keep tracking AI assistant visits in GA4 separate from file requests and search impressions.

Who reads llms.txt today?

Use documented consumer behavior and observed requests to judge adoption. Publishing an index demonstrates availability; it does not prove that every search assistant discovers or follows it.

Who reads llms.txt today?
EvidenceWhat it supportsWhat it does not establish
Proposal maintainer reports documentation-platform generation and coding-agent useA documentation retrieval use caseUniversal support across AI products
OpenAI publishes a developer-documentation index and Markdown linksIts documentation can be retrieved that wayA requirement or ranking signal for ChatGPT search
Lighthouse audits retrieval errorsA publishing check for an optional endpointGoogle Search ranking benefit
A request appears in your server logsSomething requested the fileA citation, supported answer or customer visit

The maintainer's adoption description appears in the v2 change log. OpenAI's developer index includes links to .md documentation pages. Its crawler documentation does not state that ChatGPT search uses llms.txt. Allowing OAI-SearchBot supports search access; it does not guarantee a citation. Opted-out sites may still appear as navigational links under OpenAI's documented rules.

Chrome's Lighthouse documentation does include an llms.txt agentic-browsing audit. However, it treats an absent file returning 404 as not applicable because the file is optional; it flags server errors when attempting retrieval. A browser audit and a Search ranking signal are different things. Lighthouse llms.txt audit.

SE Ranking reports 10.13% adoption across nearly 300,000 domains and no association between the file's presence and AI citations in its analysis. This is an observational finding, not a randomized test of every possible agent workflow. It supports caution about citation promises while leaving room to test a specific documentation task. SE Ranking's study.

For a broader content programme, use the GEO versus AEO observation framework to distinguish access checks, owned citations and supported claims before comparing results.

How does Martechdevs publish its llms.txt example?

Martechdevs serves a public text index, individual Markdown article copies and a separate combined export. The index groups website services, free tools and the seven blog categories, with an Optional section for secondary resources. Live llms.txt.

This abridged excerpt shows real lines from that index:

Markdown
# martechdevs

## Website and services

- [Home](https://www.martechdevs.com/): Company and implementation services.

The complete file also includes a blockquote summary and more resource entries. The individual Markdown copy of this article is the useful destination when a consumer needs this guide's full content.

How does Martechdevs publish its llms.txt example?
ResponsePublished behaviorPurpose
/llms.txttext/plain; charset=utf-8Readable index of public resources
/blog/llms-txt/index.mdtext/markdown; canonical and describedby Link headersConnect the content copy to its article and index
Article HTMLrel="alternate" type="text/markdown"Advertise the Markdown alternative
Markdown and combined exportX-Robots-Tag: noindex, followExpress indexing preferences separately from retrieval access

These are implementation choices on our site, not extra requirements of the llms.txt proposal. The combined export contains several megabytes of text. Check the intended consumer's input budget before loading it in full. Selective retrieval can avoid spending that budget on unrelated articles.

How do you create an llms.txt file?

Create it from maintained public resources and an explicit agent task, then make it part of the normal publishing process.

  1. Choose the task and scope, such as a whole business site or one documentation section.
  2. Write the site title and a short summary that helps a consumer interpret the resources.
  3. Select the pages that answer the task, with descriptions that distinguish similar topics.
  4. Publish readable content copies where they help, and connect them using the discovery relations described above.
  5. Fetch the deployed endpoints and inspect their bodies, headers and representative links.
  6. Run a fixed question set and assign an owner for changes, removals and stale information.

What should a business website include?

Select information that resolves a reader's decision. For a technical services business, that could include service scope, an implementation process, supported systems, a clear pricing explanation and guides answering frequent evaluation questions.

Do not turn the file into a list of every URL simply because the CMS can export them. A category page with no explanatory content, a duplicate campaign landing page and an outdated announcement may add noise rather than useful context.

Write descriptions that distinguish similar pages. “Data guide” does not help a consumer choose between a warehouse architecture tutorial and a tracking implementation checklist. “Explains how to reconcile ad-platform spend with warehouse reporting” does.

Avoid copying volatile prices into several summaries. Link to the maintained pricing resource and explain what it covers. If you do include a price in the guide, treat it as another published location that must change when the source changes.

How do you keep HTML and Markdown aligned?

A Markdown export should preserve consequential meaning: limitations, dates, eligibility conditions, units and links to evidence. Removing navigation is helpful. Removing the caveat that a feature requires a particular plan can make the export misleading.

Generate both representations from the same content source where practical. Keep a stable identifier for the article and use the publication pipeline to update the HTML page, its Markdown version and the relevant resource list together.

Use genuine content modification dates. Rebuilding a file every day does not mean every linked article was updated that day. A scheduled timestamp refresh can make stale advice look newly verified without changing the underlying facts.

When a page is retired, decide whether to redirect it to a true replacement or remove its entry. A redirect to the homepage usually does not preserve the original purpose. If an old API guide remains available for a supported legacy version, label that version clearly.

A small site may maintain a short file manually. A large content library benefits from a generated index with an editorial selection field. The automation should handle URLs and metadata; a content owner should decide which resources are useful starting points.

How do you check the live llms.txt response?

Fetch the public endpoint and inspect the final response body, content type and discovery links. Deployment can alter what a consumer receives. A route may return the site's HTML shell with a 200 status, a login screen, an error document or an outdated CDN copy. A file existing in the source tree does not prove the public endpoint works.

Use these read-only requests against the canonical host. They save the final response body and the response headers for inspection:

Bash
curl --fail-with-body --location --silent --show-error \
  --dump-header llms.headers --output llms.body.txt \
  https://www.martechdevs.com/llms.txt

curl --fail-with-body --location --silent --show-error \
  --dump-header article.headers --output article.body.md \
  https://www.martechdevs.com/blog/llms-txt/index.md

Check the public request and its response body. Confirm readable Markdown, the intended status, a suitable text content type and correct encoding. Test the canonical host you actually use, along with any redirect from an alternate host.

Follow the resource links and inspect representative destinations. An HTTP 200 alone is not a content test. Confirm that the response contains the expected title and meaningful article text, including the limitations that affect the answer.

If you publish path-specific files, check that their scope and discovery links match the intended section. For a site under /docs/, do not assume you control the origin root or that every consumer guesses the same location.

How the workflow fits together
Define the information task, publish selected resources, verify deployed content and test supported answers before maintaining the guide.
Read diagram as text
  • Define an agent information task to Select maintained public resources.
  • Select maintained public resources to Generate the guide and readable exports.
  • Generate the guide and readable exports to Fetch the deployed responses.
  • Fetch the deployed responses to Content and links are correct.
  • Content and links are correct to Repair publishing or stale content: No.
  • Repair publishing or stale content to Generate the guide and readable exports.
  • Content and links are correct to Test answers against known facts: Yes.
  • Test answers against known facts to Maintain only if the workflow benefits
Open full diagram

How can you test whether it is useful?

Create a small set of representative questions with known answers and required source pages. For a software company, include a supported feature, a plan restriction, an implementation prerequisite and a question the documentation cannot answer.

Test the same consumer under two defined conditions: its normal entry point and the llms.txt entry point. Record the tool or model version, available retrieval permissions and the documents actually accessed. Keep the questions and evaluation criteria unchanged.

For an illustrative ten-question test, suppose the normal entry point yields six fully supported answers, while the guided entry point yields eight. That is a change from 60% to 80%, or 20 percentage points, in this small fixture. Inspect the two improved cases and any new failures. It is not proof of a universal 33% business improvement, nor a reliable performance estimate from ten questions.

Also examine regressions. The guide might improve API setup answers while directing a pricing question to an old export. A higher aggregate score should not hide a consequential factual error. Fix the source selection or publishing process before expanding the file.

Do not reward an answer for sounding complete when the source does not contain the answer. One of the test cases should require the consumer to acknowledge missing information. A useful content guide should make the supported facts easier to find, not encourage confident invention.

The marketing AI evaluation guide explains how to separate answer quality from critical failures. Apply the same discipline here: the file is useful if it improves a specific retrieval task with accurate, maintainable content.

What belongs in the maintenance checklist?

Treat this as a small publishing surface with an owner, not a permanent badge of AI readiness.

Checklist

  • Every listed resource is public, intentional and useful for a defined question.
  • Deployed responses contain readable content rather than an HTML fallback or challenge page.
  • Descriptions distinguish similar resources without inventing capabilities.
  • HTML and Markdown versions preserve the same consequential facts and limitations.
  • Removed or superseded pages are handled explicitly.
  • Crawler preferences and private-content controls are configured separately.
  • A repeatable question set shows whether the intended consumer benefits.

Review the file when products, policies, URLs or commercial details change. If no consumer uses it and maintenance creates drift, a smaller guide or no guide can be a better decision. The priority remains a useful, accurate website that people can navigate and trust.

Use the free AI readiness checklist to identify the information and retrieval gaps, or request a detailed implementation scope when the publishing task is defined.

Keep reading

Browse all Tracking & Attribution guides

Questions people ask

Where should an index live for a documentation subdomain?

Publish it on the documentation host at the path you control and link relevant pages to it explicitly. Treat a separate subdomain as its own origin rather than assuming the main site's root file covers it automatically. When several indexes apply on one host, the proposal selects the most specific path. Check the consumer's actual discovery behavior.

How should a multilingual llms.txt index label its resources?

Label each resource's language and intended market when those distinctions change the answer. Keep regional policies and product availability attached to the appropriate destination, and avoid presenting an untranslated page as a local equivalent. Test a question in each supported language to see which source the consumer chooses. Split the resource groups when one mixed list makes that choice ambiguous.

Can an llms.txt index link to a partner's documentation?

Include a partner resource when it is the maintained authority for part of the task, and make the publisher clear in the description. Assign someone to check that external destination when the integration changes. Avoid copying its volatile instructions into your own summary. If the partner removes the page, replace or remove the entry rather than leaving an unexplained dependency.

What should happen when the Markdown exporter fails during a release?

Keep the failure visible in the publishing checks and avoid advertising an incomplete replacement as current. Identify which articles changed, inspect whether their HTML and Markdown disagree, and repair or roll back the affected representation. Test the deployed responses after the fix. A successful index request does not establish that every resource behind it exported correctly.

How should a product rename appear in an llms.txt index?

Use the current product name in the entry and add the former name only when readers still need it to identify the resource. Keep the destination's title and explanation consistent with that relationship. Test questions using both names, including any similarly named product that must remain distinct. Remove the alias when it stops helping the intended retrieval task.

Sources

  1. llms.txt: Version 2 proposal.
  2. llms.txt: V2 changes.
  3. Google: Generative AI optimization guidance.
  4. Chrome: Lighthouse llms.txt audit.
  5. Google: robots.txt introduction.
  6. OpenAI: Crawler documentation.
  7. Anthropic: Crawler controls.
  8. OpenAI: Developer documentation index.
  9. SE Ranking: llms.txt adoption and citation study.
  10. Martechdevs: Live index.
  11. Martechdevs: Article Markdown.
  12. Martechdevs: Combined export.
Portrait of Jafrin Akter Alo

Written by

Jafrin Akter Alo

Data Engineer and Co-founder at Martechdevs and Growth and Analytics Partners

Jafrin writes practical guides to marketing technology, customer data, analytics and AI workflows. Martechdevs is a Growth and Analytics Partners company.

View LinkedIn profile

Book a Free Call

Thirty minutes on your stack and what it needs. Free, and no pitch.

Thirty minutes, and you leave with a plan

We look at what you have, what it is costing you and what to do about it first.

  • 30 minutes
  • Video call, link on booking
  • No obligation

What we'll cover

  • Your current stack and where it hurts
  • Quick wins we can ship first
  • An integration roadmap
  • Timeline, scope and next steps

Calendar not loading? Open it in a new tab or email hello@martechdevs.com.