DEV Community

Author AK
Author AK

Posted on

How to Create an llms.txt File and What to Expect From It

A growing number of site owners are adding a small text file called llms.txt to their root directory, hoping it helps language models understand their content. The crawl tools offered by airankmeter include checks for robots.txt and LLMs.txt files, which shows how seriously the format is being discussed in the SEO community. Before you create one, it helps to know what the file is, how to write it, and where its limits lie.

What llms.txt Is

The llms.txt idea was proposed as a plain Markdown file that gives language models a concise, curated guide to a website. Instead of crawling every page, a system could read a short summary of the site's purpose and a list of links to its most useful resources. The proposal is published at llmstxt.org.

Not the Same as robots.txt

The robots.txt file tells crawlers which areas they may or may not access. By contrast, llms.txt is descriptive. It does not grant or deny permission; it simply offers a readable overview. Keeping the two roles separate avoids confusion when you troubleshoot.

Writing a Useful File

A good file is short and honest. Begin with a heading naming the site, followed by a brief description of what the organization does. Then list your most important pages in grouped sections, each link accompanied by a one-line explanation. Choose pages that genuinely help a newcomer understand your topic, such as core guides, documentation, product pages, and pricing.

A Simple Structure to Follow

Use a title, a short summary paragraph, and several headed lists of links. Avoid marketing slogans and exaggerated claims. Write as if you were briefing a new colleague who has five minutes to learn what your site offers.

Keep It Current

Outdated links defeat the purpose. Review the file whenever you launch, retire, or restructure major pages, and test every URL to confirm it resolves correctly.

Check That the File Is Reachable

Place the file at the root of your domain so it can be requested directly, and confirm that it returns a normal successful response rather than a redirect loop or an error page. Also make sure it is served as plain text. A crawl tool that reports on the file can quickly show whether it exists and whether anything is obviously wrong with it.

Decide What to Leave Out

Not every page belongs in the file. Login screens, duplicate archives, and thin pages add noise. The value of the format comes from curation, so be selective about what you highlight.

Setting Realistic Expectations

Support for llms.txt is not guaranteed. The format is a community proposal, and different AI products may read it, ignore it, or use it in ways that are not publicly documented. No one should present it as a ranking factor or a dependable path to citations.
That said, creating one is inexpensive, and the exercise has side benefits. Deciding which pages best represent your site forces clarity about your priorities, and the resulting list can double as an internal content map. Treat it as a low-cost experiment rather than a core strategy.

Conclusion

An llms.txt file is a small, optional step that may help certain systems interpret your site. Write it plainly, link only to your best resources, maintain it over time, and keep your expectations measured. The larger work remains the same: publish accurate, well-structured content, make it technically accessible, and let reputation build through genuine usefulness.

Top comments (0)