# llms.txt generator

> Generate an llms.txt file from your sitemap. It reads each page's title and description, groups pages by section and gives you a file you can edit.

Source: https://ebrahimsameh.com/tools/llms-txt-generator/

The llms.txt generator writes a first draft of your site's llms.txt from the pages you already list in your sitemap. You review the titles, descriptions and sections, then download the file and publish it at the root of your domain.

## How it works

You enter your domain. The tool reads your sitemap.xml, or the Sitemap line in your robots.txt, fetches up to 60 pages through a small Cloudflare Worker and pulls each page's title and meta description. It groups the pages by the first part of their path, you edit whatever needs it, and you copy or download the file.

## Questions

### What is llms.txt?

A proposed convention, described at llmstxt.org. It's a Markdown file at /llms.txt with a short summary of your site and links to its important pages, so AI tools can find them without crawling everything.

### Where do I put the file?

At the root of your domain, so it's served at https://your-site.com/llms.txt as plain text. Link to it from your site as well, so crawlers that follow links can find it.

### Why are some of my pages missing?

The generator reads up to 60 URLs from your sitemap, and pages that aren't in the sitemap won't show up. Add the missing ones by hand, or trim the list to the pages that matter most.
