Skip to content
Future Forge ToolsWeb Tools ProOpen free tools

SEO & Marketing

llms.txt vs Sitemap: What Each File Does and Which You Need

llms.txt vs sitemap.xml vs robots.txt: what each file does, who reads it, an example llms.txt, and an honest look at whether AI tools and Google use it.

llms.txt vs Sitemap: What Each File Does and Which You Need
On this page

An XML sitemap lists every URL you want search engines to crawl and index. llms.txt is a proposed Markdown file at your site root that gives AI assistants a short, curated guide to your most useful content. Sitemaps are an established, widely supported standard; llms.txt is an unofficial proposal with limited and uncertain adoption.

They solve different problems, so it isn’t really a choice between them. A third file, robots.txt, does something else again: it tells crawlers what they may not fetch. People mix up all three, which leads to some odd advice about what llms.txt can do.

Here’s what each file is for, what an llms.txt looks like, and whether it’s worth your time.

Try it: XML Sitemap GeneratorBuild a valid XML sitemap from a list of URLs with priority, change frequency and last-modified date.

Open tool — free

What is llms.txt?

llms.txt is a proposal published at llmstxt.org in 2024 by Jeremy Howard of Answer.AI. The idea is simple: language models work with limited context and struggle with cluttered HTML full of navigation, ads and scripts, so a site can offer a clean Markdown summary at /llms.txt that points to its most important pages.

The format is ordinary Markdown with a light structure:

  • An H1 with the name of the site or project. This is the only required part.
  • A blockquote with a one- or two-sentence summary.
  • Optional paragraphs with extra context, such as who the site is for.
  • H2 sections containing lists of links, each with a short note.
  • An optional section literally called “Optional” for links a tool can skip when space is tight.

The proposal also suggests offering Markdown versions of key pages, for example /docs/setup.md alongside /docs/setup. Some documentation platforms go further and generate an llms-full.txt containing the full text of the docs in one file. That’s a convention that grew up around the proposal rather than part of a formal standard.

An example llms.txt file

Here is a small, realistic file for a fictional bakery site:

# Example Bakery

> Family bakery in Springfield, Illinois, selling sourdough bread,
> dried starters and weekend baking workshops. Orders ship within the US.

Prices are in USD. Shop hours are Monday to Friday, 7:00 to 15:00.

## Shop
- [Rye Starter Kit](https://example.com/shop/rye-kit.md): Dried starter, jar and feeding guide
- [Shipping and returns](https://example.com/shipping.md): Delivery areas, times and refund rules

## Guides
- [How to store sourdough](https://example.com/blog/store-sourdough.md): Keeping bread fresh for a week
- [Feeding a starter](https://example.com/blog/feed-starter.md): Ratios and schedule

## Optional
- [Our story](https://example.com/about.md): History of the bakery

Notice what it isn’t: it’s not a list of every URL, and it contains no rules. It reads like a well-organized brief you’d hand a new colleague.

llms.txt vs sitemap.xml vs robots.txt

The quickest way to see the difference is side by side:

llms.txtsitemap.xmlrobots.txt
PurposeCurated summary for AI toolsList of URLs to crawl and indexRules for what crawlers may fetch
FormatMarkdownXMLPlain text directives
Location/llms.txtAnywhere, usually /sitemap.xml/robots.txt only
ScopeYour best pages, hand-pickedAll indexable pages, up to 50,000 per filePaths and user agents
StatusCommunity proposalSupported by major search enginesStandardized as RFC 9309
Read bySome AI tools, when they choose toSearch engine crawlersWell-behaved crawlers, including AI bots
Can block accessNoNoYes, for crawlers that obey it

The last row matters most. If your goal is to keep AI crawlers away from your content, llms.txt does nothing. That job belongs to robots.txt, covered in detail in robots.txt and XML sitemaps explained.

Does Google or ChatGPT use llms.txt?

Google has said publicly that Google Search doesn’t use llms.txt, so it has no effect on rankings or on how Google crawls your site. Your sitemap and robots.txt are what Google reads.

For AI assistants, the honest answer is that adoption is limited and hard to verify. Public commitments from AI companies to read the file automatically have been scarce, and you can’t easily tell from your logs whether a fetch of /llms.txt actually influenced any answer. Be skeptical of anyone promising more AI visibility from this file alone.

Where it clearly helps is when someone fetches it on purpose. Developers often paste a library’s llms.txt URL into an AI coding assistant to give it accurate, compact documentation. That’s why the file has caught on mostly among developer tools, APIs and documentation sites.

Should you add an llms.txt?

  • Yes, if you run documentation, an API, a software product or a knowledge base that people use with AI tools. The payoff is real and the effort is small.
  • Optional, if you run a blog or business site. It costs little to add, but treat it as an experiment, not an SEO task.
  • Never instead of a sitemap or robots.txt. Those two still do the work search engines rely on.

If you do add one, keep it short and accurate, link only to pages that exist, and update it when your key pages change. A stale llms.txt pointing at deleted URLs is worse than none.

Setting up all three files

  1. Build your sitemap first. Paste your page URLs into our free XML sitemap generator, download sitemap.xml and upload it to your site root. If your CMS already creates one, use that instead.
  2. Create robots.txt with the robots.txt generator. Keep crawling allowed by default, add your sitemap URL, and use the AI crawler preset only if you want to opt out of AI crawling.
  3. Write llms.txt by hand in any text editor, following the structure above. Pick 5 to 20 pages that best explain what you do.
  4. Upload it to the root so it loads at https://yourdomain.com/llms.txt, and check that the server sends it as plain text.
  5. Submit the sitemap in Google Search Console and Bing Webmaster Tools. There’s nowhere to submit llms.txt, and you don’t need to.

For the one-line connection between the first two files, see how to add your sitemap to robots.txt.

The short version

Your sitemap tells search engines what exists, robots.txt tells crawlers what’s off limits, and llms.txt is an optional cheat sheet for AI tools that choose to read it. Get the first two right before anything else. Add llms.txt if your audience uses AI assistants with your content, and keep your expectations modest until adoption becomes clearer.

Frequently asked questions

Does llms.txt replace a sitemap?

No. A sitemap lists every page you want search engines to crawl, and search engines officially support it. llms.txt is an optional, curated summary for AI tools, so if you add one, keep your sitemap too.

Does Google use llms.txt?

Google has said publicly that Google Search does not use llms.txt, and it does not affect rankings. Adding one will not hurt, but don't expect any search benefit from it.

Can llms.txt block AI crawlers?

No. llms.txt has no allow or disallow rules. To ask AI crawlers such as GPTBot not to crawl your site, add rules for their user agents in robots.txt.

Where does llms.txt go?

At the root of your domain, so it loads at example.com/llms.txt, just like robots.txt. It is a plain Markdown text file.

Free tools for this

admin

Writes practical guides for Future Forge Tools, where every tool runs privately in your browser.