How to Create an llms.txt File
llms.txt is an emerging, voluntary convention for publishing a concise Markdown guide to a website. It can point language-model tools toward important public pages and facts, but it is not a standard ranking directive and support varies by platform.
A sitemap, crawlable HTML, clear internal links and accurate structured data remain more established ways to help machines discover and understand a website.
Where llms.txt goes
Publish the file at the root of the canonical domain:
https://example.com/llms.txt
The URL should return an HTTP 200 response and readable plain text or Markdown. Avoid redirects when practical, and do not require login or JavaScript to display the file.
A safe starter example
# Example Company > A short, factual description of the company and its purpose. ## Primary pages - [Home](https://example.com/): Main company overview. - [Services](https://example.com/services): Services and intended customers. - [About](https://example.com/about): Operator, history and contact details. - [Support](https://example.com/support): Product help and documentation. ## Important facts - Legal name: Example Company Limited - Official domain: https://example.com/ - Contact: support@example.com ## Limitations - Product availability and pricing may change. - Use the linked pages as the current source of truth.
What to include
- A clear site or organisation name.
- One factual summary written for people as well as machines.
- Links to canonical, public pages that explain the business.
- Brief descriptions that distinguish what each link contains.
- Important limitations, update notes or source-of-truth guidance.
What not to include
- Passwords, API keys, private URLs or customer information.
- Claims that cannot be verified on the linked website.
- Hundreds of low-value links or a duplicate of the XML sitemap.
- Instructions attempting to override a model's policies.
- Marketing superlatives presented as objective facts.
How llms.txt differs from robots.txt and sitemap.xml
robots.txt communicates crawler access preferences. sitemap.xml lists URLs that a site wants search engines to discover. llms.txt offers a curated, human-readable guide. The three files have different purposes and one should not replace the others.
How to test the file
- Open the root URL in a private browser window.
- Confirm it returns 200 rather than a branded error page.
- Check every linked page is public, canonical and current.
- Confirm the content contains no secret or private information.
- Update it when the site's important pages or facts change.
Does llms.txt improve rankings?
There is no reliable basis for promising that the file will raise Google rankings or cause an AI system to cite a site. It can make a site's preferred public resources easier to identify for tools that choose to read it. Treat that as a small usability improvement, not a shortcut around useful content, authority or technical SEO.
Check your public llms.txt
Chak.ai can detect whether a root-level file is available and generate a starter draft based on selected public pages. Review every generated fact and link before publishing.
Run the free audit