How it works What we check Pricing
Guides
AEO GEO AI Search Visibility SEO Audit AI Citations llms.txt
Free tools
AI Visibility Check llms.txt Generator Robots Checker FAQ Schema
Learn
Blog Glossary FAQ AEO checklist About Sign in
Guides/llms txt/how to create llms txt

How to Create an llms.txt File: Steps + Template (2026)

Part of our llms.txt guide.

To create an llms.txt file, write a Markdown file with an H1 site name, a blockquote summary, and H2 sections of curated links with one-line descriptions, then upload it to your site root at /llms.txt. It takes minutes. Set expectations accordingly: no major engine confirms using it, and studies show no measured citation lift.

01

Before you start: set expectations

Creating the file is easy. The honest part is what to expect from it. In July 2025 Google said it does not support llms.txt, and a study across roughly 300,000 domains found no clear effect on AI citations. Build it as low-cost hygiene, not as a visibility lever. If your CMS or docs platform can generate it automatically, even better, because then it stays current for free.

02

Step 1: List your most important pages

Pick the 10 to 40 pages you would want an AI model to read if it only had a small budget. For docs, that is usually the quickstart, the API reference, key concept guides, and pricing. Skip login pages, thin pages, and duplicate content. The point is curation, not a full sitemap.

03

Step 2: Prepare clean Markdown versions where you can

The spec encourages linking to clean .md versions of pages, so a model that follows a link gets text rather than HTML soup. If your platform can serve a page at both /quickstart and /quickstart.md, link to the Markdown. If not, link to the normal URL. This step is optional but is the main practical benefit of the whole exercise.

04

Step 3: Write the file

Follow the structure: one H1, one blockquote, then H2 sections. Keep descriptions to a single line and make them specific.

05

Step 4: A copy-paste template

[One or two sentences: what this site is, who it serves,

and what these docs cover.]

[Optional short paragraph with any context a model should

have before using the links below.]

06

Getting started

07

Reference

08

Guides

09

Optional

The ## Optional section is a real part of the spec: it flags links a model can drop first if it is short on context.

10

Step 5: Upload to your site root

The file must be reachable at https://yourdomain.com/llms.txt. That means the root, not a subfolder. On most hosts you drop it in the public/static directory. On Vercel or Netlify, put it in the public folder. On WordPress, use a plugin that writes root files or add it via your server config.

11

Step 6: Verify it is live

Open the URL in a browser and confirm you see raw Markdown, not a 404 or an HTML wrapper. Check that every link resolves. A broken link in llms.txt is worse than no link.

12

Step 7: Keep it current

A stale llms.txt that points to moved or deleted pages actively misleads any model that reads it. If you cannot automate generation, put a recurring reminder to review it whenever your site structure changes.

13

Common mistakes

Mistake Why it matters
Dumping your whole sitemap Defeats the point; curation is the value
Vague descriptions "About our product" tells a model nothing
Linking to HTML-heavy pages Loses the clean-text benefit
Putting it in a subfolder Convention is the root; tools look there
Never updating it Broken links mislead more than they help
Promising yourself a ranking boost No confirmed engine uses it
14

Should you also create llms-full.txt?

Only if your content is text-heavy and fits in a reasonable file. llms-full.txt inlines the actual page content into one file. It suits documentation sites and is overkill for most marketing sites. See llms-full.txt for the tradeoffs.

15

Realistic expectations, one more time

  • Time to build: minutes to an hour

  • Risk: negligible

  • Confirmed benefit from any major engine: none

  • Measured citation lift in independent studies: none

Do it because it is cheap and tidy, not because a vendor promised results. The reliable way to earn AI citations is content that clearly answers real questions, in crawlable HTML, with structured data.

16

FAQ

How long does it take to create an llms.txt?

Minutes. Writing the Markdown and uploading it to your root is a quick task if you already know your key pages.

Do I need a tool or generator?

No. It is plain Markdown. Generators and CMS plugins help keep it current automatically, but you can hand-write it.

Where exactly do I put the file?

At your domain root, served at https://yourdomain.com/llms.txt.

Will creating llms.txt improve my AI search visibility?

There is no evidence it will. Google does not support it, and a 300k-domain study found no citation effect. Treat it as optional hygiene.

Should the links point to HTML or Markdown?

Markdown versions are preferred by the spec because they are cleaner for models. Link to HTML only if you cannot serve Markdown.

How often should I update it?

Whenever your site structure changes. A stale file with broken links is worse than none.

SEO AEO Specialist tells you which of your pages engines can actually read and cite, and where the gaps are. Start free at €0 for 50 pages per project, grab a one-time report for €9, or track a domain continuously for €19/mo.

llms.txt vs robots.txt: The Difference Explained (2026)

See where you stand

SEO AEO Specialist runs a free AI-visibility audit and hands you the exact fixes. One-off report €9, unlimited €19/mo.

Run your free audit →