An llms.txt file starts with one required H1, followed by an optional summary and details, then curated Markdown links grouped under H2 headings.
To get started with an llms.txt file example, use the sample as a structural model rather than a sitewide export: replace its identity and links, keep the documented order, and review and validate your own draft before publication.

A Minimal llms.txt File Example
This illustrative example uses the proposal and its reference repository. It demonstrates placement and syntax; it is not a file to publish unchanged.
# llms.txt proposal
> A proposed format for a concise Markdown overview and selected references.
This example shows the required element order.
## References
- [Answer.AI llms-txt reference repository](https://github.com/AnswerDotAI/llms-txt): Reference repository.
The leading # marks the single H1, while > marks the blockquote summary. Each ## begins a section whose list items contain links. A colon and note can explain what a resource contains, and the note remains part of the same list item.
| File element | Required? | Placement and purpose |
|---|---|---|
| H1 | Yes | Must be first and contain one site or project name. |
| Blockquote summary | No | Follows the H1 when present and provides a concise overview. |
| Non-heading details | No | Appear after the summary and before the first H2 link section. |
| H2 link section | No | There may be zero or more sections, each containing Markdown list items with links. |
| List-item link | Yes, within a section | The required core is a link; an optional colon and note can describe it. |
| Optional section | No | An H2 named Optional identifies secondary material that can be omitted when a shorter context is needed. |
The order is functional, not cosmetic: it is intended to produce a predictable structure for language models and ordinary parsers. The generator owns this order instead of accepting arbitrary Markdown fragments that could create duplicate top headings or misplaced sections. For more detail about the sequence, see Generate llms.txt for a Website in the Right Order.
Choose Links That Earn a Place
Start with canonical, high-value resources such as product documentation, product explanations, policies, and stable reference pages. Curation matters more than length. A file containing every page can repeat the overload of a large sitemap and waste the context it is intended to save. The example is therefore a guide to structure, not a reason to publish a generic list.
Use complete public HTTP or HTTPS URLs. The generator accepts both schemes while rejecting credential-bearing URLs and executable or embedded-data schemes. It also normalizes labels, notes, headings, and summaries so control characters or accidental Markdown delimiters cannot break the generated structure. Duplicate normalized URLs are reported rather than silently multiplied.
Prefer a Markdown version of a page only when the site serves that version reliably; do not invent a .md URL that returns an error. Confirm that every selected URL returns the intended content and remove private, staging, obsolete, or access-controlled pages. The tool cannot scan a domain or sitemap to prove which pages are canonical, current, accessible, or safe to recommend, so this remains an editorial responsibility.
Generate the Draft in the Required Order
The llms.txt Generator provides a transparent starting point by working from the links and details you supply instead of crawling your site.
- Enter the site or project name that should appear in the required H1.
- Add an optional summary and optional explanatory details, keeping the summary focused on what the site or project provides.
- Create clear H2 section headings and add only reviewed, canonical, high-value links beneath them. Add a factual note after a link when readers need context about the destination.
- Decide which resources are genuinely secondary and place those links under an H2 named Optional. The tool does not make that editorial decision automatically.
- Generate the deterministic plain-text Markdown and inspect the H1, summary, details, headings, links, and notes in the displayed order.
- Copy the result or download the file named llms.txt. Make any final editorial changes in a text editor, then paste the edited draft into validation mode.
- Publish the reviewed file at your intended path and periodically verify that its referenced pages remain accessible and relevant.
Review the Output Like an Editor
Read the result as content rather than as a mechanical SEO artifact. Confirm that the title represents the site accurately, the summary makes a defensible claim, and the details do not overpromise. Every link should lead to a public page that matches its label and note. Remove a resource when its purpose is unclear or when including it would dilute the file’s focus.
The Optional section requires particular judgment. A resource belongs there only when a consumer can skip it and still understand the site’s essential offering or documentation. Moving a link into Optional does not make it unimportant; it tells a potential consumer that the link is secondary when a shorter context is needed.
Generation and processing happen locally: nothing is crawled or sent to an external service. The tool serializes the structured inputs you provide, which means the quality of the final file still depends on your choices. It does not prove that a linked page is accurate, current, or worthy of inclusion.
Validate the Edited Draft
Validation is separate from generation. Paste an existing llms.txt draft into validation mode to check for the required H1, heading order, link-list syntax, duplicate targets, and bounded size. The validator reports concrete, line-oriented issues and warnings, making it easier to locate the part of a draft that needs review.
A successful validation result means the file matches the tool’s documented interpretation of the current proposal. It does not certify broader vendor support. A warning should also be read in context rather than treated as proof that a destination is inaccurate or that publication must stop.
The validator does not rewrite the draft behind your back, follow any listed URL, or check the accuracy of the linked resource. Those limitations are useful: they keep structural validation distinct from editorial review and link availability checks.
Publish and Recheck the File
Publish the final draft at /llms.txt or at another appropriate subpath when that better matches your site’s information architecture. Serve it with a plain-text or Markdown-compatible content type, then confirm that the public response contains the reviewed file rather than an error page or unrelated redirect.
Publication alone does not force a crawler, assistant, or language-model tool to request the file. Measure whether your own tools and workflows actually use it instead of treating its presence as evidence of search visibility, citation, or ranking improvement. Also verify the proposal and source links before building automation that depends on exact syntax, because both the proposal and its ecosystem can evolve.
Periodically revisit the referenced pages. Remove broken or redirected URLs, confirm that canonical destinations still match their labels, and recheck whether formerly secondary resources belong in the main sections. A useful llms.txt file is maintained content, not a one-time download.
Keep Each Discovery Mechanism Separate
- robots.txt expresses crawl preferences for participating crawlers.
- sitemap.xml inventories indexable URLs for search discovery.
- Structured data describes entities and page content for interpretation by systems that support it.
- llms.txt offers a curated Markdown overview and a short list of high-value references intended for inference-time use.
These mechanisms have different purposes, so llms.txt should complement rather than replace the others. It is not a security control, a robots directive, or a sitemap replacement. It cannot grant access to blocked pages, override authentication, remove content from model training, or prove that an AI answer will cite the linked site.
Check the First File Before Publishing
- Confirm that the file contains one H1 with the correct site or project name.
- Check that the summary and details are accurate and appear before any H2 sections.
- Verify that every link is public, canonical, relevant, and represented by a factual label and note.
- Ensure that the Optional section contains only genuinely secondary resources.
- Validate the final edited draft and review every reported issue or warning.
- Confirm that the deployed file contains the reviewed version and schedule periodic link checks.
The safest first version is small enough to review line by line. If every entry earns its place and the structure remains predictable, you have a useful starting point without claiming that the emerging proposal will produce crawler adoption, rankings, or citations on its own.
Related reading: Custom Ads.txt Generator for Blogger: Publishing Guide.