Tutorial
How to create llms.txt
Published 11 Aug 2026 · By Duy Nguyen
Creating an llms.txt file is a 10-minute job — and with the free generator it is a one-click job from your sitemap. This guide shows both paths so you understand exactly what the file should contain.
What does a valid llms.txt look like?
The Answer.AI convention defines a minimal structure: an H1 heading, an optional blockquote summary, H2 sections of markdown links, and a Related section. Every line is plain markdown, so you can create the file in any text editor:
# Acme Docs > Acme Docs is a documentation site for the Acme API. ## Documentation - [Getting started](https://acme.dev/docs/start): install the SDK in 5 minutes - [API reference](https://acme.dev/docs/api): every endpoint and parameter - [Pricing](https://acme.dev/pricing): free tier and paid plans ## Related - [Sitemap](https://acme.dev/sitemap.xml): machine-readable URL index - [llms-full.txt](https://acme.dev/llms-full.txt): self-contained full content
Method 1: Generate it from your sitemap (fastest)
Upload sitemap.xml (or paste your domain) into the generator. It groups your URLs into H2 sections automatically, derives titles and descriptions, and renders the file in seconds. You can then rename sections, edit descriptions, and download the finished file. Because everything runs in your browser, nothing is uploaded — not even the sitemap you paste.
Method 2: Write it by hand
Start with the project name as the H1 and a one-sentence summary in a blockquote. Then group your most important pages into two to six H2 sections, keeping each link on its own bullet with a description after the colon. Finish with a Related section pointing to your sitemap and llms-full.txt. Keep the file under 50 KB — it is a navigator, not a dump.
How do you improve the quality of llms.txt?
The five GEO checks in this generator come from published AI-citation research: place named entities (brands, version numbers, tools) in the first 30% of the file; keep sections between 50 and 150 words; use question-form headings; keep entity density above 15%; and prefer definitional phrasing ("X is defined as Y"). Each check explains its source and offers a one-click fix — see the GEO explainer for details.
Where do you publish llms.txt?
At the domain root: https://yoursite.com/llms.txt. No server configuration is needed — it is a static text file. If you use Cloudflare, keep the "Block AI Crawlers" bot setting off, because it injects Disallow rules that contradict your intent to welcome AI crawlers. Add a companion llms-full.txt for AI agents that want the full content in one request.
How do you validate llms.txt?
Paste your finished file back into the generator's editor: the GEO panel scores it live and the structural checklist verifies the H1, summary blockquote, descriptions, URL integrity, file size and trailing newline. Rerun the check whenever your site structure changes.