To create an llms.txt file, write a short Markdown file that names your site, sums it up in one line, and lists your most useful pages as links with a note on each. Save it as llms.txt and upload it to the root of your domain, so it loads at yoursite.com/llms.txt. The whole job takes about an hour for a small SaaS site.
The file is a proposed standard. No major AI provider has documented that it reads llms.txt when building answers. It is cheap to make and easy to maintain, so many teams add it anyway.
This guide covers what the file is and the exact format, with a copy-ready example. It then walks through creation, upload and checking the file, and shows how it fits with robots.txt and your sitemap.
What an llms.txt file is and does it help
An llms.txt file is a plain Markdown file at the root of a website. It gives large language models a short, curated map of the site. Jeremy Howard of Answer.AI proposed the format in September 2024, and the spec is published at llmstxt.org.
The idea is simple. HTML pages are full of navigation, scripts and layout. A language model reading your site has limited context, so a clean list of your key pages, in Markdown, is easier for it to use.
What it does
- Summarizes your site: one heading and one short description of what you offer.
- Points to key pages: docs, pricing, product pages and guides, each with a one-line note.
- Helps AI agents and coding tools: some developer tools and agents fetch llms.txt when a user asks them to read a site.
What it does not do
An llms.txt file does not control crawling, and it does not get your brand mentioned in AI answers. Google's documentation for AI Overviews and AI Mode does not list llms.txt as a requirement. Google says a page needs to be indexed and eligible for a Search snippet to appear as a supporting link.
Treat the file as low-cost housekeeping. Your actual pages, their content and how well they answer buyer questions still matter far more. Our ChatGPT SEO tool guide covers that side in more detail.
The exact llms.txt format with a copy-ready example
The llms.txt spec uses standard Markdown in a fixed order. Only the first element is required, but a useful file includes all of them.
- H1 title: the name of your site or product. This line is required.
- Blockquote summary: one or two sentences that explain what the site is about, starting with ">".
- Optional details: a few short paragraphs or bullets with context, such as who the product is for.
- H2 sections with link lists: each item follows the pattern "- [Page name](URL): short note".
- An "Optional" section: an H2 named "Optional" for secondary links a tool can skip when context is short.
Copy-ready example
Replace the placeholder names and example.com URLs with your own pages:
# Example App
> Example App is project management software for small agencies. It helps teams plan client work, track time and send invoices.
Example App is built for agencies with 2 to 50 people. It runs in the browser and integrates with Slack and Google Drive.
## Product
- [Features](https://example.com/features): Overview of planning, time tracking and invoicing
- [Pricing](https://example.com/pricing): Current plans and what each includes
- [Integrations](https://example.com/integrations): Supported tools and setup steps
## Docs
- [Getting started](https://example.com/docs/start): Account setup and first project
- [API reference](https://example.com/docs/api): Endpoints, authentication and limits
## Optional
- [Blog](https://example.com/blog): Articles on agency operations
- [Changelog](https://example.com/changelog): Recent product updates
Keep each note to one line and describe what the page answers. A note like "Current plans and what each includes" helps a model far more than "Click here".
What about llms-full.txt?
Some sites also publish llms-full.txt: a single file with the full text of their docs in Markdown. It is a common convention, mostly for developer documentation. It is outside the core spec, so add it only if you have docs that agents need in one place.
How to create an llms.txt file step by step
Here is how to create an llms.txt file and get it live. Each step has a rough time marker for a small site.
- 10 minutes · Pick your pages: list the 10 to 30 pages a buyer or developer would need most. Start with product, pricing, docs, integrations and your strongest guides.
- 10 minutes · Write the summary: write one plain sentence on what you sell and who it is for. Use the same wording your homepage uses.
- 15 minutes · Group and annotate: sort the pages into H2 sections and add a one-line note to each link. Use full absolute URLs.
- 5 minutes · Save the file: save it as plain text with UTF-8 encoding, named exactly llms.txt in lowercase.
- 10 minutes · Upload to the root: place it at the top level of your domain, next to robots.txt.
- 5 minutes · Test the URL: open yoursite.com/llms.txt in a private browser window and confirm the text loads.
Uploading on common platforms
- Self-hosted WordPress: upload through your host's file manager or SFTP into the public root folder. Some SEO plugins can also generate the file.
- Static sites and frameworks: put the file in the public or static folder so it deploys to the root.
- Hosted builders such as Webflow, Wix and Shopify: root file access varies by platform. Check your platform's current documentation before you rely on a workaround.
For larger sites, generate the file from your CMS or sitemap with a script, then edit it by hand. An automated list of every URL defeats the purpose, which is curation.
Common llms.txt mistakes and how to validate the file
Most broken llms.txt files fail for small, fixable reasons. Check for these before you call the job done.
Mistakes to avoid
- Wrong location: the file sits in a subfolder such as /blog/llms.txt instead of the root.
- Missing H1: the spec requires a single H1 title as the first line.
- Relative links: links like /pricing break when the file is read on its own. Use full https:// URLs.
- Dumping every URL: a list of 2,000 pages is a sitemap. Keep it to the pages that answer real questions.
- Stale links: pages that redirect or return 404 errors after a site change.
- Marketing copy in the notes: "the best tool ever" tells a model nothing. Describe what each page covers.
How to validate it
- Check the response: the URL should return a 200 status and a text content type, with no login wall or redirect loop.
- Preview the Markdown: paste the file into any Markdown previewer and confirm headings and links render correctly.
- Test every link: run the URLs through a link checker and fix anything that redirects or fails.
- Read it as an AI would: paste the file into ChatGPT or Claude and ask what your product does. A wrong or vague answer means your summary needs work.
Review the file each quarter, or whenever you launch a product page or change your pricing structure.
Pairing llms.txt with robots.txt and sitemaps
An llms.txt file works alongside robots.txt and your XML sitemap. Each of the three files does a different job, and you should keep all of them.
| File | Purpose | Who reads it | Formal standard |
|---|---|---|---|
| robots.txt | Tells crawlers which paths they may fetch | Search engine and AI crawlers that follow the rules | Yes, RFC 9309 |
| XML sitemap | Lists all indexable URLs for discovery | Search engines such as Google and Bing | Yes, sitemaps.org protocol |
| llms.txt | Curates key pages with short notes for language models | Some AI agents and developer tools | Proposed spec at llmstxt.org |
Keep them consistent
- Do not list blocked pages: if robots.txt blocks a path, leave it out of llms.txt.
- Check AI crawler rules: crawlers such as GPTBot from OpenAI and PerplexityBot follow robots.txt. Blocking them limits what those tools can fetch, whatever llms.txt says.
- Know what Google-Extended controls: Google documents that Google-Extended does not affect inclusion or ranking in Google Search. Use nosnippet and related controls to limit how Search features show a page.
- Link only indexable pages: every URL in llms.txt should also appear in your sitemap.
Even with all three files in place, you still need to know whether AI engines mention you. TalkGenAI's AI visibility check is one option: it asks ChatGPT, Google AI Overviews and Google AI Mode your buyers' questions several times each. It then shows where your brand appears, which competitors are named instead, and which pages were cited. The agent drafts articles to close those gaps for your review, and nothing is published until you approve it. A check or an article cannot guarantee a mention, since results depend on the AI providers and your site. Our AI SEO agent guide explains how this kind of workflow fits together.
Frequently Asked Questions
Do I really need an llms.txt file?
No, it is optional, though it is quick to make and costs nothing to host.
- No major AI provider has documented reading it for answers.
- Developer tools and agents benefit most, especially for docs-heavy SaaS.
- Spend more time on pages that answer buyer questions.
Will llms.txt get my brand into ChatGPT answers?
No, the file alone does not get a brand mentioned in ChatGPT or any other AI answer.
- AI answers draw on indexed pages and what other sites say.
- Clear pages that answer specific questions give AI tools something to cite.
- Track which questions name you before and after changes.
- See our TalkGenAI guides library for related topics.
Where exactly do I upload llms.txt?
Upload it to the root of your domain, so it loads at yoursite.com/llms.txt.
- Place it in the same folder as robots.txt.
- Use the lowercase filename llms.txt.
- Confirm it loads in a private browser window.
How many links should llms.txt include?
Most small SaaS sites do well with 10 to 30 links.
- Lead with product, pricing, docs and integrations.
- Move secondary pages into the "Optional" section.
- Drop thin or outdated pages entirely.
How often should I update llms.txt?
Review it every quarter and after any major site change.
- Update it when you add or remove product pages.
- Run a link checker to catch redirects and 404 errors.
- Refresh the summary if your positioning changes.
Your next step with llms.txt
An llms.txt file is a short Markdown map of your best pages, placed at your domain root and kept in line with robots.txt and your sitemap. It helps AI tools read your site more easily, but it does not earn mentions on its own. Start by listing your 10 most useful pages and writing one plain sentence about what you sell. When you want to see how AI engines answer your buyers' questions, TalkGenAI's AI visibility check is one way to find out.