llms.txt Generator & Validator

Build a clean, llmstxt.org-compliant /llms.txt file. Import from a URL or sitemap.xml, check spec rules and token count live, and download ready-to-deploy Markdown.

Starter templates

Header & summary

Sections (3)

##
##
##Skippable by LLMs

llms.txt

~258 tokens · 20 lines · 1.01 KB

# Acme Analytics

> Privacy-first web analytics and conversion attribution for fast-moving software teams.

Use this index to find product capabilities, pricing, API endpoints, and SDK setup guides. All product links point to clean Markdown or HTML reference pages.

## Product

- [Features Overview](https://acme.example/features): Real-time funnels, retention cohorts, and custom event tracking without cookies.
- [Pricing](https://acme.example/pricing): Monthly and annual tiers based on tracked events, including free hobby plan.
- [Security & Privacy](https://acme.example/security): GDPR compliance, data residency options, and SOC 2 Type II summary.

## Docs

- [Quickstart Guide](https://acme.example/docs/quickstart): Install the 1 KB script or Next.js package and record your first pageview.
- [HTTP Events API](https://acme.example/docs/api): Server-side event ingestion schema, authentication headers, and rate limits.

## Optional

- [Changelog](https://acme.example/changelog): Monthly release notes and SDK updates.

llmstxt.org validator

Spec valid
  • H1 title (# Site Name)

    Found "# Acme Analytics"

  • Summary blockquote (> ...)

    Present and concise.

  • Structured ## sections

    3 H2 sections defined.

  • Valid Markdown links (- [Title](URL): Description)

    All 6 links have valid titles and http(s) URLs.

  • No nested ### headings

    Clean heading hierarchy (# and ## only).

  • ## Optional section

    Included - LLMs know they can skip this section when context is tight.

  • Context budget

    ~258 tokens - lightweight enough for a single context fetch.

Specification reference

How the llmstxt.org format works

The format stays intentionally strict so any parser or language model can extract your site structure in a single read.

# Site Name

Required H1

The single top-level heading identifying your product, company, or documentation set.

> Short summary

Summary blockquote

One concise blockquote explaining what the site is and who it serves.

## Section Name

Curated H2 groups

Group links under plain H2 headings like Docs, API, Guides, or Pricing. Avoid ### subheadings.

- [Title](https://...): Notes

Markdown link list

Each entry uses standard Markdown link syntax with an optional colon and plain-text description.

## Optional

Context-saving bucket

Special section name defined by llmstxt.org for secondary links models may omit under tight limits.

Deployment tip

Pair with Markdown pages

Point links to clean documentation URLs (or .md mirrors) so agents get signal instead of navigation menus.

FAQ

Common questions

What is llms.txt?

llms.txt is a proposed standard (llmstxt.org) for placing a curated Markdown index at the root of your website (/llms.txt) so AI assistants, coding agents, and LLM crawlers can read your key pages without parsing navigation chrome or JavaScript bundles.

Where should I host my llms.txt file?

Upload the downloaded file to the root of your domain so it is publicly reachable at https://yourdomain.com/llms.txt with Content-Type: text/plain or text/markdown. In Next.js or static sites, placing it in public/llms.txt serves it automatically.

What is the difference between llms.txt and robots.txt or sitemap.xml?

robots.txt controls crawler permissions and sitemap.xml lists every URL for search engines. llms.txt is a curated, human- and model-readable Markdown table of contents that highlights your highest-signal docs, pricing, and product pages with short descriptions.

What does the ## Optional section do?

Per the llmstxt.org specification, an H2 section named exactly "Optional" signals secondary links (such as changelogs, older guides, or RSS feeds) that an LLM client can safely skip when working inside a smaller context window.

How big should an llms.txt file be?

Keep it focused and concise, ideally under 2,000 to 5,000 tokens, so an agent can fetch and ingest the entire index in a single pass. If you also want full concatenated documentation, link to a separate /llms-full.txt file.

Does this generator work without an account or API key?

Yes. Editing, template loading, sitemap.xml parsing, spec validation, token estimation, and downloading all run locally in your browser with no login required.