Live, scanning the open webAI Visibility Audit Platform

Answer Engine Optimization

What Is an llms.txt File and How To Write One

An llms.txt file is a plain text map that tells AI engines what your site does and where to look.

By Matthew Lin, Founder, AudFlo·12 Jun 2026·Updated 12 Jun 2026·5 min read
Infographic showing an llms.txt file acting as a map that guides AI engines to a website key pages.

An llms.txt file is a plain map that tells AI engines what your site does.

Quick answer

An llms.txt file is a plain text file at the root of your site that tells AI engines what you do, who you serve, and which pages matter most. It works like a friendly map for models that cannot afford to crawl every page. To write one, state your category and buyer in the first lines, then list your key pages with a short note on each. Keep it honest and plain, save it as llms.txt, and place it at yoursite.com/llms.txt.

What an llms.txt file is

An llms.txt file is a plain text file you place at the root of your website. It tells AI engines what you do, who you serve, and which pages matter most.

Think of it as a short map written for machines. A person browses your site and figures things out, while a model often samples a few pages and moves on.

The format is simple. It is plain text with a few headings and a list of links, each with a short note.

Why llms.txt helps AI visibility

AI engines work under a budget. They cannot read every page on every site, so they take shortcuts.

When the file states your category and your buyer in the first lines, the model starts from a strong base. It knows what you are before it reads a single marketing page.

This is one of the fastest answer engine optimization wins available. It takes an afternoon, and it removes the guesswork that makes models recommend a clearer competitor.

How to write your llms.txt

Start with one heading that names your product. Under it, write one or two plain sentences that say what you do and who you serve.

Then add a short list of your most important pages. For each one, write the link and a brief note on what the reader will find there.

Keep the language plain and honest. Name your category, your main features, your pricing page, and your best proof.

A simple shape to follow looks like this:

  • A title line with your product name
  • One or two sentences on what you do and who you serve
  • A list of key pages, each with a short note
  • A short section for docs, pricing, and contact

Where to put the file

Save the file as llms.txt and place it at the root of your domain. It should load at yoursite.com/llms.txt with nothing else in the path.

That root location matters. It is the first place AI engines look, the same way they look for robots.txt.

After you upload it, open the address in a browser to confirm it loads as plain text.

Common mistakes to avoid

The most common mistake is writing it like an ad. Marketing language gives a model nothing solid to hold, so write in plain, checkable statements.

The second mistake is letting it go stale. When you change pricing or add a flagship feature, update the file so the map still matches the territory.

The last mistake is skipping the rest of the work. An llms.txt file helps engines read you, but your homepage, your FAQ schema, and your comparison pages still have to do their part. For the full method, read the Answer Engine Optimization Playbook.

Key takeaways

  • An llms.txt file is a plain text map of your site for AI engines.
  • It states what you do, who you serve, and which pages matter.
  • It lives at the root of your domain, at yoursite.com/llms.txt.
  • Keep it plain and honest, with a short note on each key page.
  • It is one of the fastest answer engine optimization wins.

Common questions

FAQ.

What is an llms.txt file in plain words?+
It is a plain text file at the root of your site that tells AI engines what you do and which pages matter most. Think of it as a short map written for models instead of people.
Where do I put my llms.txt file?+
Place it at the root of your domain so it loads at yoursite.com/llms.txt. That is the first place AI engines look for it.
Is llms.txt the same as robots.txt?+
No. Robots.txt tells crawlers which pages they may visit. An llms.txt file tells AI engines what your site is about and where the important content lives.
Do I need to be technical to write one?+
No. An llms.txt file is plain text with simple headings and links. If you can write a short README, you can write an llms.txt file.
Does llms.txt guarantee AI will recommend me?+
No single file does that. It removes guesswork so engines can classify you correctly, which is one part of getting recommended. Clear pages and real trust signals do the rest.

Continue reading

More from the blog.

See why AI recommends competitors instead of you.

AudFlo is an AI Visibility Audit Platform. Run a free scan to get your AI Visibility Score and the exact fixes that help you get recommended.

New here? Read the complete AI Visibility Guide for founders or browse every article on the blog.

About the author

Matthew Lin

Architect by training. Property developer by profession. Tech entrepreneur by passion.

Founder of AudFlo, an AI Visibility Audit Platform that helps founders understand why ChatGPT recommends competitors instead of them.

More about AudFlo · @MattQR on X