# Free llms.txt generator · Terradium

Enter your domain at https://terradium.io/tools/llms-txt-generator and get an llms.txt built from your sitemap, in the llmstxt.org format. Edit it, then download. It's free and needs no sign-up.

## How it works

1. Reads your robots.txt for `Sitemap:` lines, or tries `/sitemap.xml`, and follows a sitemap index one level down. With no sitemap, it uses the links on your homepage.
2. Picks up to 40 pages, spread across your site's sections so one big blog doesn't crowd out the rest.
3. Reads each page's title and meta description.
4. Writes `# Site name`, a `> summary` from your homepage description, one `##` section per part of the site, and legal pages last under `## Optional`.
5. Runs the result through the llms.txt validator before showing it.

## API

```
POST https://api.terradium.io/api/v1/public/tools/llms-txt/generate
Content-Type: application/json

{"url": "example.com"}
```

No auth. Rate-limited per IP. Results are cached for 24 hours per site. Validate the file with the [llms.txt validator](https://terradium.io/tools/llms-txt-validator), and see a finished file in the [llms.txt example](https://terradium.io/llms-txt-example).
