How to Create an LLMs.txt File
Creating an llms.txt file takes minutes. This guide walks through what you are making, the format, which pages to include, how to generate or hand-write the file, how to validate it, where to publish it, and how to keep it from going stale.
Published: [FILL IN] · Last modified: [FILL IN]
What you're creating
You are creating a single plain Markdown file called llms.txt and publishing it at the root of your site, so it loads at https://yourdomain.com/llms.txt. It is not a web page and needs no design, JavaScript or server code — just text.
The file describes your best pages for AI tools: a title, a one-line summary, and a short, grouped list of links with descriptions. Think of it as a curated reading list rather than a full map of the site. It sits alongside files like robots.txt and sitemap.xml, but it does a different job — it points assistants at content worth reading rather than controlling or listing crawlers.
Step 1: Understand the format
The format is deliberately simple. An H1 with your site or brand name is the one required element. A blockquote gives a one-line description, H2 headings group your links into sections, and each link is written as a title, a URL and a short description after a colon.
# Acme Analytics
> A privacy-first web analytics tool for small teams.
## Docs
- [Getting started](https://acme.example/docs/start): Install the script and see your first pageview.
- [Metrics guide](https://acme.example/docs/metrics): What each metric means and how it is calculated.
## Blog
- [Why we built Acme](https://acme.example/blog/why-acme): The problem we set out to solve.
## Optional
- [llms-full.txt](https://acme.example/llms-full.txt): Full page text in a single file.- H1 — required. The file opens with
# Your Site Name. - Blockquote — recommended. One sentence describing what the site offers and who it is for.
- H2 sections — recommended. Group links by topic, such as Docs, Blog, Guides or Company.
- Described links — recommended. Each link uses
- [Title](url): description.
That is the whole grammar. There are no closing tags, no key-value syntax and nothing to escape — the model reads it as ordinary Markdown.
Step 2: Decide what to include
The include list is where the real thinking happens. For most sites, 10 to 30 links is typical. Documentation sites and large blogs often want more — 50 to 100 — because their value is spread across many reference pages. Everything beyond that tends to be noise.
Be selective. Choose the pages that represent your site at its best and that a reader would actually want summarised: documentation entry points, a canonical "what is this" page, your best guides, and a handful of articles that show your point of view. Skip tag pages, paginated archives, thin category pages and anything you would not want quoted back at you.
Keep the file lean enough that it stays inside a model's context window with room to spare. If you find yourself listing every URL, you have drifted from an index into a sitemap — that is what sitemap.xml is for.
Step 3: Generate it or write it by hand
You have two routes, and both produce the same kind of file. If you would rather not hand- write Markdown, use the free LLMs.txt Generator: point it at your website or sitemap, or paste a list of URLs, and it assembles a well-structured llms.txt in seconds. No account is needed, and nothing is stored.
If you prefer full control, write it by hand. Open a plain-text editor, save the file as llms.txt, and follow the format from Step 1. Hand-writing is often faster for small sites, where the whole include list is obvious, and it lets you phrase each description exactly as you want.
Step 4: Validate it
Before you publish, check that the file is well-formed and that every link works. A broken link or a missing H1 is the most common mistake, and both are easy to catch in advance. Aim for a score of 80 or higher.
The free LLMs.txt Validator runs nine checks — including the required title, the blockquote, section structure, link format and whether your links resolve. Fix anything it flags, then re-run it until the file is clean.
Step 5: Publish it
Publish the file so it is served at your domain root as /llms.txt. How you do that depends on your platform, and each has its own small quirk.
- WordPress. Upload the file to your site root or use a plugin or redirect rule that serves it at the root. See the WordPress guide.
- Shopify. Add the file as an asset and route the root path to it. See the Shopify guide.
- Next.js. Place the file in the
public/folder so it is served at the root. See the Next.js guide. - Other hosts. Any static host that serves a
publicor root directory can serve the file the same way.
When it is live, open https://yourdomain.com/llms.txt in a browser and confirm it loads as plain text with the right content. If you see your homepage instead, the file is not being served from the root and needs to be moved.
Step 6: Keep it updated
A stale llms.txt is worse than none at all. If the file points at pages you have since moved, renamed or deleted, an AI tool that trusts it will read broken links or outdated content — and you have handed it a reason to describe your site inaccurately.
Fold the file into your normal publishing routine. When you ship a major new guide, add it. When you retire a page, remove it. A quick review whenever you change your site's structure is usually enough, and re-running the validator after each edit keeps broken links from creeping back in.
Check your file
Generate yours free
Learn more
- What is llms.txt?
- llms.txt V2: what changed
- Format & specification
- How to create llms.txt
- Best practices
- Examples & templates
- Do I need llms.txt?
- llms.txt for SEO
- What is llms-full.txt?
- llms.txt vs llms-full.txt
- llms.txt vs robots.txt
- llms.txt in the news
- LLMs.txt Generator
- LLMs-full.txt Generator
- LLMs.txt Validator
- llms.txt V2 Checker
- Robots.txt Generator
- Robots.txt Tester