llms.txt is a proposed Markdown file that helps AI systems discover website content. Learn how to create one and whether it benefits SEO.

CEO of Sharcon LLC
15+ years in marketing and development. Leading a team of 30+ professionals at Sharcon.
The llms.txt file is a proposed standard for helping large language models (LLMs) discover, understand, and reference the most useful content on a website. It is a plain-text Markdown file located at the root of a domain that provides AI systems with a curated overview of the website and links to its important pages.
Adding an llms.txt file is worthwhile for websites with substantial documentation, detailed service pages, or structured informational content, but it is not a requirement for SEO or AI search visibility. This guide explains how the format works, what it can realistically accomplish, and how to create, deploy, and maintain one without introducing unnecessary technical complexity.
The llms.txt specification was proposed by Jeremy Howard in September 2024 as a way to make website content more accessible to large language models during inference, the process in which an AI model generates a response or completes a task.
The original proposal is available at llmstxt.org.
Traditional websites are primarily designed for human visitors and search engine crawlers. Their HTML frequently contains navigation menus, JavaScript, advertisements, cookie banners, and other elements that are not directly relevant to the information an AI system is trying to retrieve.
An llms.txt file provides a shorter, deliberately organized representation of the website. Instead of requiring an AI application to identify relevant information across multiple pages, it can provide a starting point containing:
The file normally lives at a predictable URL:
https://example.com/llms.txt
Despite its .txt extension, the content follows Markdown conventions. This makes it readable by both humans and language models without requiring specialized parsing software.
Crucially, llms.txt is a proposed convention rather than an established web standard with universally implemented support. Publishing the file does not guarantee that any particular AI platform will retrieve, process, or follow it.
Imagine a software company with hundreds of documentation pages covering authentication, API endpoints, integrations, pricing, troubleshooting, and product configuration.
An AI assistant helping a developer integrate with that software needs to identify which pages contain reliable, current information. A well-written llms.txt file can point the assistant toward the authentication guide, API reference, and integration documentation without requiring it to navigate the entire website.
A compatible AI application could retrieve the file, inspect its descriptions, select relevant links, and use the linked information as context for generating an answer.
This process is sometimes described as providing a website's documentation map for AI consumption. However, the distinction between what the file enables and what AI platforms actually implement matters.
The file does not automatically submit website content to AI companies. It does not update a model's training data, establish a ranking signal, or trigger an AI crawler to visit the website. It is simply a publicly accessible resource that compatible systems can choose to use.
These three files serve different purposes. An llms.txt file does not replace either of the other two.
| Feature | llms.txt | robots.txt | sitemap.xml |
|---|---|---|---|
| Primary purpose | Provide curated website context and useful links | Communicate crawler access rules | Help search engines discover URLs |
| File format | Markdown | Robots Exclusion Protocol syntax | XML |
| Primary audience | AI applications and language-model-based tools | Web crawlers | Search engines |
| Typical location | /llms.txt | /robots.txt | /sitemap.xml |
| Contains page descriptions | Yes | No | Not ordinarily |
| Controls crawler access | No | Requests compliant crawlers to follow access rules | No |
| Established Google Search support | No dedicated documented support | Yes | Yes |
| Required for indexing | No | No | No |
A sitemap can contain thousands of URLs without explaining which pages provide the best answers to particular questions. An llms.txt file can identify a smaller selection of authoritative resources and explain their purpose.
A robots.txt file communicates crawling preferences to compliant automated agents. It is not an access-control mechanism and cannot protect confidential information. An llms.txt file does not change those crawling preferences or override authentication requirements.
The original llms.txt proposal defines a relatively simple Markdown structure. The only required section in the proposed format is an H1 heading identifying the website or project. The remaining sections provide context and organized resource links.
Here is a complete example for a fictional business software company. The URLs are illustrative and should be replaced with real, publicly accessible resources.
# Example Business Software
> Example Business Software provides cloud-based inventory management, order processing, and reporting tools for small and mid-sized businesses.
The platform supports browser-based access and integrations with external accounting and e-commerce systems.
Product documentation is the authoritative source for technical configuration. Refer to the pricing page for current subscription information.
## Product information
- [Product overview](https://example.com/product): Core features, supported workflows, and platform capabilities.
- [Inventory management](https://example.com/inventory): Stock tracking, warehouse management, and inventory reporting.
- [Integrations](https://example.com/integrations): Supported third-party systems and connection options.
- [Pricing](https://example.com/pricing): Current subscription plans and billing information.
## Documentation
- [Getting started](https://example.com/docs/getting-started): Initial account configuration and onboarding instructions.
- [API documentation](https://example.com/docs/api): Authentication, endpoints, and integration requirements.
- [Frequently asked questions](https://example.com/faq): Answers to common product and account questions.
## Optional
- [Company blog](https://example.com/blog): Educational articles about inventory and business operations.
- [About the company](https://example.com/about): Company background and general business information.
The H1 heading identifies the organization, product, or project. Use its actual name rather than a collection of search keywords.
The blockquote immediately below the heading provides a concise summary. This should explain what the organization does, who its audience is, and what information the website provides.
The following paragraphs can communicate additional context, such as which documentation is authoritative, where current pricing is published, or whether multiple product versions exist.
H2 headings organize resources into logical categories. Each resource uses a Markdown link followed by an optional description. These descriptions should explain what information is available on the destination page rather than repeat its title.
The ## Optional section has a specific purpose in the proposal: it identifies resources that can be omitted when an AI application needs a shorter context. It is not a directive that prevents systems from accessing those pages.
There is no universally enforced character limit or ideal number of links. For a small business website, starting with a dozen or fewer genuinely important resources is a reasonable editorial approach, not a technical requirement.
Some websites publish an additional file named llms-full.txt alongside their primary llms.txt file.
While llms.txt serves as a curated index, llms-full.txt commonly contains the actual text of multiple documentation pages or other important resources combined into a single file.
For example:
| File | Typical content |
|---|---|
llms.txt | Website summary and links to selected resources |
llms-full.txt | Aggregated Markdown content from those resources |
The second file is particularly useful for documentation-heavy projects where users or AI applications may want to load substantial reference material at once.
However, it introduces additional maintenance requirements, increases the amount of content an AI application may need to process, and creates another location where outdated information can persist.
A typical service business does not need llms-full.txt. Start with the smaller index and create an aggregated content file only when there is a clear use case for it.
There is no established evidence that publishing an llms.txt file directly improves Google rankings. Google does not document llms.txt as a requirement for indexing, ranking, or appearing in its AI search features.
Google's official guidance on AI search visibility is available in its documentation on AI features and websites. It explains that established SEO practices remain applicable and that websites do not need special AI text files or additional machine-readable files to appear in these features.
This matters because llms.txt is sometimes marketed as a shortcut to visibility in AI-generated answers. That claim goes beyond what the specification can deliver.
The practical value of llms.txt is information organization. It can give compatible AI systems a more efficient way to identify authoritative resources, reduce ambiguity about website content, and distinguish core documentation from supplementary material.
For example, a company offering several software integrations might have separate pages for each supported platform. An llms.txt file can describe the purpose of each integration and direct a compatible application toward the appropriate documentation.
That is a legitimate technical benefit. It is not evidence of a ranking improvement.
Publishing the file does not guarantee citations in ChatGPT, Gemini, Claude, Perplexity, or other AI products. It cannot force those systems to recommend a business, include particular claims in generated answers, or treat the website as more authoritative than competitors.
It also cannot compensate for pages that are inaccessible, poorly written, inaccurate, or difficult for automated systems to retrieve.
Support for the convention must be evaluated separately for each AI platform or application. A tool's ability to read plain text does not establish that it automatically looks for /llms.txt during website discovery.
From an SEO and answer engine optimization (AEO) perspective, improving the original website content remains the higher-priority investment. Clear service descriptions, accessible HTML, descriptive internal links, accurate structured data, and authoritative documentation provide value independently of whether llms.txt receives broader adoption.
Businesses evaluating SEO and answer engine optimization should treat llms.txt as a supplementary technical asset rather than the foundation of an AI visibility strategy.
The decision depends on the type of website, how much useful information it contains, and whether maintaining another public resource creates unnecessary work.
| Website type | Recommendation | Reason |
|---|---|---|
| SaaS platform | Recommended | Helps organize product features, technical documentation, and integrations. |
| API documentation website | Recommended | Provides a useful entry point for developers and compatible AI coding tools. |
| Professional service business | Worth considering | Can summarize services and identify authoritative information. |
| Educational website | Worth considering | Can organize reference materials and learning resources. |
| E-commerce website | Optional | Useful for store policies and buying guides, but not a replacement for product feeds. |
| Personal portfolio | Low priority | Typically contains too little information to justify a separate resource. |
| Single-page landing website | Usually unnecessary | The original page already provides a compact representation of the business. |
| Private application or customer portal | Generally unnecessary | Confidential or authenticated information should not be published through a public file. |
A practical decision framework is to ask whether your website contains information that AI applications could reasonably use, whether that information is distributed across multiple pages, and whether you can keep a curated index accurate over time.
If those conditions apply, implementing llms.txt is a relatively low-effort experiment. If the website has more fundamental problems with accessibility, indexing, or content accuracy, address those first.
You do not need a paid subscription, dedicated generator, or third-party API to create an llms.txt file. A plain-text editor and access to your website deployment are sufficient.
Select the pages that best explain your business, products, documentation, and policies. Prioritize canonical URLs containing original and accurate information.
For a service business, the selection might include the main services overview, individual service pages, technical explanations, frequently asked questions, public pricing information, and relevant case studies.
Exclude administrative URLs, customer dashboards, search result pages, duplicate content, session-specific links, and pages containing tracking parameters.
There is no benefit in automatically copying every URL from your sitemap. The value of llms.txt comes from the deliberate selection and description of useful resources.
Create a file named exactly llms.txt and save it using UTF-8 encoding.
Use the following copy-and-paste template as a starting point:
# [Organization or product name]
> [A factual summary of what the organization provides and who it serves.]
[Additional context about product scope, supported platforms, or authoritative information sources.]
## Core information
- [Page title](https://yourdomain.com/page): Description of the information available on this page.
## Services or products
- [Service name](https://yourdomain.com/service): What the service provides and which problems it addresses.
## Documentation and support
- [Documentation](https://yourdomain.com/docs): Technical instructions and configuration details.
## Optional
- [Blog](https://yourdomain.com/blog): Educational and supplementary resources.
Replace every placeholder and remove sections that do not apply to your website. Use complete HTTPS URLs rather than relative paths to make the file easier to use outside its original website context.
Keep descriptions factual. Avoid unverified claims, promotional superlatives, and instructions attempting to influence an AI system's recommendations.
The file should be available at the root of your public domain.
For a Next.js website, the simplest implementation is to place the file in the project's public directory:
my-nextjs-website/
├── app/
│ ├── layout.tsx
│ └── page.tsx
├── public/
│ ├── robots.txt
│ └── llms.txt
├── next.config.ts
└── package.json
Next.js serves files in the public directory from the website's base URL. For a standard root-domain deployment, the file becomes available at:
https://yourdomain.com/llms.txt
To create and test the file locally on macOS or Linux, run these commands from your Next.js project directory:
mkdir -p public
touch public/llms.txt
npm run dev
Add your Markdown content to the newly created file, then request it at http://localhost:3000/llms.txt, assuming your development server uses port 3000.
Commit the file to your repository and deploy the website through your existing deployment process.
A static file is generally preferable to a dynamically generated API route for a small or medium-sized website. It requires fewer moving parts and can be reviewed through version control.
For websites with frequently changing documentation, a build-time script that generates llms.txt from approved content sources may be appropriate. The key distinction is that generation should preserve editorial selection rather than indiscriminately include every available page.
For websites hosted through WordPress or conventional shared hosting, upload the file to the public document root for the domain, often named public_html. For hosted website builders, verify that the platform supports publishing a plain-text response at the exact /llms.txt path before choosing an implementation.
Open the deployed file directly in a browser. It should display raw text rather than a formatted website page, login screen, or custom error message.
For a more reliable technical check, use curl:
curl -sS -D - -o /dev/null https://yourdomain.com/llms.txt
A healthy response should include an HTTP success status and a suitable text content type, for example:
HTTP/2 200
content-type: text/plain; charset=utf-8
The HTTP protocol version and exact headers may vary depending on your hosting provider.
The preferred content type is text/plain with UTF-8 encoding. The response should not contain an HTML application shell or a rendered error page.
Inspect the actual response body using:
curl -fsSL https://yourdomain.com/llms.txt
Confirm that the first meaningful line is your H1 heading and that the rest of the response contains the expected Markdown content.
A 200 OK response alone is not enough. Some application routing configurations return the website's homepage with a success status even when the requested text file does not exist.
Test each URL in the file. Confirm that it resolves to the intended page, remains publicly accessible, and contains the information promised in its description.
For documentation websites, prefer clean Markdown versions of pages when they are genuinely available. The original llms.txt proposal encourages Markdown-friendly resources, but publishing HTML links is still possible when no Markdown representation exists.
Do not append .md to existing page URLs unless your website actually serves content at those addresses.
Review llms.txt when services change, documentation moves, URLs are redirected, products are discontinued, or the website undergoes a redesign.
For a relatively stable business website, reviewing the file quarterly is a reasonable starting point. Documentation-heavy products may benefit from checking it automatically during deployment.
One overlooked problem with llms.txt is that it can become technically invalid or outdated without anyone noticing. A redesign may remove the file, routing changes may return HTML instead of text, or a documentation migration may break the URLs inside it.
The following lightweight Bash script checks the deployed file's HTTP status, content type, and opening Markdown heading. It requires curl and standard command-line utilities but no additional packages.
Save it as scripts/check-llms.sh:
#!/usr/bin/env bash
set -euo pipefail
url="${1:?Usage: check-llms.sh https://yourdomain.com}"
body=$(mktemp)
trap 'rm -f "$body"' EXIT
response=$(curl -sS --max-time 20 \
-o "$body" \
-w '%{http_code} %{content_type}' \
"${url%/}/llms.txt")
status=${response%% *}
content_type=${response#* }
if [[ "$status" != "200" ]]; then
echo "FAIL: Expected HTTP 200, received $status"
exit 1
fi
if [[ "$content_type" != text/plain* ]]; then
echo "FAIL: Unexpected content type: $content_type"
exit 1
fi
if ! head -n 1 "$body" | grep -q '^# '; then
echo "FAIL: Missing opening H1 heading"
exit 1
fi
echo "PASS: llms.txt is accessible and correctly served"
Run it after deployment:
bash scripts/check-llms.sh https://yourdomain.com
The script intentionally checks the exact URL without following redirects. This enforces a stricter deployment convention in which the canonical domain serves llms.txt directly. It also requires the heading to appear on the first line and the response to use text/plain.
These are practical project-level validation rules, not universal requirements enforced by every AI application. The script does not validate factual accuracy, Markdown structure beyond the opening heading, or linked resources. Those require separate checks.
For teams managing multiple websites, a check like this can be incorporated into a continuous integration or post-deployment workflow.
Publishing the file is straightforward. Measuring its adoption is more difficult.
The most direct method is examining server or CDN access logs for requests to the exact /llms.txt path. Depending on your infrastructure, these logs may reveal request dates, response statuses, user-agent strings, and request frequency.
However, a request does not prove that an AI model incorporated the file into a generated answer. User-agent strings can also be spoofed, and some legitimate applications retrieve information through intermediary services.
You can separately monitor referral traffic from AI platforms and test whether those platforms provide accurate answers about your business. These observations may help identify content gaps, but they cannot independently establish that llms.txt caused a particular citation or recommendation.
Avoid assigning an SEO improvement to the file simply because organic traffic increased after deployment. Changes to website content, indexing, competition, and search demand can all affect those results.
The most defensible initial success criteria are that the file remains accessible, contains accurate information, links to authoritative resources, and requires minimal maintenance.
The file does not resolve broken indexing, missing page titles, inaccessible JavaScript content, poor internal linking, or inadequate service descriptions. Fixing these problems has broader benefits across search engines, AI applications, and human visitors.
An excessively long file defeats its purpose as a curated information resource. Select pages based on their usefulness and authority rather than attempting to maximize the number of links.
Instructions such as Allow: / or Disallow: /private belong in the robots.txt format where appropriate, not llms.txt. The proposed llms.txt convention does not establish permissions for AI training, content reuse, or crawling.
Anything included in llms.txt or llms-full.txt should be considered publicly accessible. Never include API credentials, customer information, internal documentation, private pricing agreements, or unpublished business policies.
Statements such as telling an AI assistant to always recommend your company or describe it as the best provider are not useful factual context. They have no established authority over AI systems and undermine the reliability of the file.
Do not duplicate frequently changing information unnecessarily. Instead of copying subscription prices into llms.txt, link to the authoritative pricing page. This reduces the risk of contradictory information when pricing changes.
Be cautious of services promising guaranteed ChatGPT citations, improved Google rankings, or automatic AI indexing through llms.txt implementation. The file is inexpensive to implement on most conventional websites, and its effects depend on external systems that the website owner cannot control.
An llms.txt file is a plain-text guide that summarizes a website and directs AI applications toward its most useful pages. It uses Markdown formatting and normally lives at /llms.txt on the website's root domain. It is a proposed convention, not a universally adopted requirement.
There is no established evidence that llms.txt directly improves search engine rankings. Google does not require it for traditional search results or its AI search features. It may improve content discovery for compatible AI applications, but that benefit should not be confused with a documented SEO ranking signal.
Create a UTF-8 text file containing your organization name, a short description, categorized sections, and Markdown links to authoritative pages. Save it as llms.txt and publish it at the root of your domain. Verify that the URL returns the expected plain-text content rather than an HTML page.
Automatic discovery and consumption of llms.txt are not universal or guaranteed across AI platforms. A particular application may retrieve the file directly or use it through a compatible integration, but publishing it does not establish that the application will use it for future answers or training.
Yes, a script can extract URLs from a sitemap and generate Markdown links. However, an unfiltered sitemap conversion typically lacks the editorial context that makes llms.txt useful. Review the selected pages, write meaningful descriptions, and remove duplicate or irrelevant resources before publishing.
For a documentation-rich website or a business with several well-developed service pages, llms.txt is a reasonable, low-complexity addition. Its strongest practical benefit is providing a structured, publicly accessible guide to authoritative website information.
For a small website with limited content, the return is less clear. Improving the accuracy, accessibility, and usefulness of existing pages should take precedence over creating another machine-readable file.
If you are building or updating a business website, explore Sharcon's Next.js web development services for an implementation that incorporates accessible content, maintainable technical architecture, and appropriate machine-readable resources from the start.

CEO of Sharcon LLC
15+ years in marketing and development. Leading a team of 30+ professionals at Sharcon.
Learn 8 practical steps to earn ChatGPT and Perplexity citations through crawler access, useful content, technical SEO, and visibility tracking.
A practical local SEO checklist for service businesses covering Google Business Profile, service pages, customer reviews, technical SEO, and lead tracking.
Speed to lead measures how quickly you respond to inquiries. Learn why the first five minutes matter and how to automate effective lead follow-up.