# Free llms.txt validator · Terradium

Check an llms.txt against the llmstxt.org spec at https://terradium.io/tools/llms-txt-validator. Enter a domain (it fetches `/llms.txt`) or paste the file. It's free and needs no sign-up.

## What it checks

- **Errors** (the file may not parse): empty file, an HTML page served instead of markdown, no `#` title first, more than one `#` title, a link with no name or URL, a non-http(s) URL.
- **Warnings** (departures from the spec): no `>` summary, no `##` sections, an empty section, malformed links, relative URLs, duplicate links, headings deeper than `##`, `## Optional` not last, a file over 50 KB.
- **Links**: up to 20 linked URLs are tested; 4xx, 5xx and unreachable links are flagged.

Each issue comes with its line number and a fix.

## API

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

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

Or `{"text": "# Your site\n..."}` (up to 512 KB). Add `"links": false` to skip the link test. No auth. Rate-limited per IP. Generate a file with the [llms.txt generator](https://terradium.io/tools/llms-txt-generator).
