llms.txt generator

Writes a spec-valid llms.txt from your sitemap ยท updated November 2026

Enter a domain and the generator reads its robots.txt, sitemap and first 25 pages, then writes a spec-valid llms.txt you can copy or download. The generated file is validated with the same rules as the checker, and the result is shown with it. Want to see the target first? Read an llms.txt example.

How the file is written

  1. Find the pages

    robots.txt Sitemap: lines, then /sitemap.xml and /sitemap_index.xml. No sitemap: the links on your home page.

  2. Read 25 of them

    Home page first, then top-level pages before deeper ones, 5 at a time. Title and meta description (or first paragraph) from each.

  3. Write the file

    H1 from your site name, a summary from your home page, H2 sections by path, legal pages under Optional.

How the llms.txt generator works

An llms.txt file is a short Markdown index of the pages on your site that matter most. Writing one by hand means opening your sitemap, picking pages, copying titles and writing a note for each. The generator does that first pass in a few seconds and gives you a file that is already in the right shape, so your time goes into editing the notes rather than getting the syntax right.

If you are new to the format, what llms.txt is explains each part, and annotated llms.txt examples show complete files for a docs site, a store and a blog. After you upload yours, the llms.txt validator checks it and the error guide explains any message it prints.

What an llms.txt file contains

An H1 with the site name, an optional one-line summary in a blockquote, then H2 sections of Markdown links, each with a short note. A section called Optional holds pages that can be skipped.

A small worked example

# Crawlnote

> Free llms.txt checker and generator.

## Tools

- [Checker](https://crawlnote.com/checker): Check an llms.txt file line by line
- [Generator](https://crawlnote.com/generator): Generate an llms.txt from your sitemap

## Optional

- [Privacy](https://crawlnote.com/privacy): What is stored

This example is illustrative; the generator fills in your own site name, summary and pages.

How to publish it

  1. Copy or download the generated file and edit any note that is vague.
  2. Save it as llms.txt and upload it to the root of your site, so it loads at https://your-site/llms.txt.
  3. Open that address in a browser to confirm it shows as plain text.
  4. Run the llms.txt checker on your domain to confirm it passes.
What does an llms.txt generator do?

It writes the file for you. Instead of typing every heading and link by hand, you give it your domain; it finds your pages, reads the title and description of each, and lays them out in the format llmstxt.org describes: an H1 with your site name, a short summary, H2 sections of links with a note on each, and an Optional section at the end.

Where does the generator get the page list?

From your sitemap. It reads the Sitemap: lines in robots.txt, then /sitemap.xml and /sitemap_index.xml, and follows a sitemap index into the files it points to. If your site has no sitemap it falls back to the links on your home page. Pages that your robots.txt disallows for Crawlnote are skipped.

Which pages end up in the file?

Up to 25: the home page first, then top-level pages before deeper ones. Pages are grouped into sections by the first part of their path, so /docs/... pages land under a Docs heading. Legal and account pages such as privacy, terms and login go under Optional.

What do I do with the result?

Read it, edit any note that does not say what the page is for, then upload it as /llms.txt at the root of your site. Open it in a browser to confirm it shows as plain text, then run the llms.txt checker on your domain to confirm it passes.

Does the generator write a perfect file?

It writes a valid one: the output is run through the same rules as the checker and the result is shown next to it. Titles and notes come straight from your pages, so a page with a vague title gets a vague note. Reviewing them takes a minute and is worth it.

llms.txt vs llms-full.txt

llms.txt is a short index: a title, an optional summary and links to your key pages, each with a one-line note. llms-full.txt is an optional companion that some sites publish at the same root, at /llms-full.txt, holding the full text of those pages in one Markdown file so a reader can load everything without following links. It is much larger, and it is a convention used by documentation platforms rather than part of the llmstxt.org format. Which services read either file varies.

This generator writes llms.txt only: the index of up to 25 pages with the title and description of each. It does not write llms-full.txt. The llms.txt checker looks for /llms-full.txt on your domain and reports whether it exists, its content type and its size.

Already have a file? Check your llms.txt against the format, or read how llms.txt differs from robots.txt.