2026 AI Visibility Leaderboards: see who ChatGPT, Gemini & Perplexity recommend.Explore
All articles

How to Create an llms.txt File (Free Template)

What llms.txt is, what to put in it, a copy-paste template, and how to publish it on your server.

GGEOall ResearchSeptember 15, 20261 min read 0 views0 comments
How to Create an llms.txt File (Free Template)

llms.txt is a plain Markdown file at the root of your website that gives AI crawlers a short, structured summary of who you are and which pages matter. Think of it as a sitemap written for language models.

The template

# Your Company

> Your Company provides [what you do] for [who you serve].

Your Company is based in [city] and serves [customers] since [year].

## Key pages
- [Pricing](https://www.example.com/pricing): plans and pricing
- [Product](https://www.example.com/product): features overview
- [Customers](https://www.example.com/customers): case studies

## Profiles
- https://www.linkedin.com/company/example

Anatomy of an llms.txt file
Anatomy of an llms.txt file

Publishing it

  • Static sites and most CMSs: upload llms.txt to the web root, next to robots.txt.
  • Next.js: add a route handler at app/llms.txt/route.ts that returns the Markdown with a text/markdown or text/plain content type.
  • Check it: open the URL in a browser. You should see plain text, not an HTML page.

Frequently asked questions

Where exactly does llms.txt go?

At the root of your domain, for example https://www.example.com/llms.txt, next to robots.txt.

What is llms-full.txt?

An optional, longer companion file with the full content of your key pages, for crawlers that want more detail.

#llms.txt#Tutorial
Share
G
Written by
GEOall Research

GEOall Research tracks how ChatGPT, Gemini and Perplexity recommend brands, and publishes the data behind the public AI visibility leaderboards.

Discussion

No comments yet — start the discussion.

Sign in required to post.
Keep reading

More from the GEOall blog