llms txt generator
Generate a concise llms.txt-style Markdown index that maps a site to its canonical pages. Review it before publishing.
By Deepak Shukla — Founder & CEO, Pearl Lemon
Generate your llms.txt
# Your Site
Upload to https://yourdomain.com/llms.txt at the root of your site.
What This Tool Checks
- A clean H1 with your site/brand name
- A canonical URL block-quoted under the title
- A short summary paragraph describing what your site is for
- A `## Docs` section listing core documentation pages
- An optional `## Optional` section for changelog, blog, examples
- Spec-compliant Markdown formatting (no surprises)
Why This Matters
A concise, maintained index can help people and tools find the canonical pages that explain a site. Adoption and crawler behaviour vary, so it should complement—not replace—crawlable HTML, an XML sitemap, accurate metadata and clear documentation.
How to Fix Issues
- 1.Fill in your site name, canonical URL, and a one-paragraph summary
- 2.List your top 5–10 documentation or core content pages
- 3.Add optional resources (changelog, blog, API reference) for richer context
- 4.Download the generated file and upload to `https://yourdomain.com/llms.txt`
- 5.Keep the file aligned with your canonical pages and remove outdated or gated links
llms.txt is a proposed Markdown convention for describing a site and linking to canonical documentation. Support and crawler behaviour vary by tool and can change, so treat the file as a maintained navigation aid rather than a ranking signal. This generator creates a concise starting draft for human review.
Why llms.txt exists
A clear index can point a reader or an automated tool to the pages that define your product, policy or technical documentation. It does not control what a model fetches, how it ranks sources or how it answers a question. The strongest foundation remains accurate, accessible and internally consistent canonical content.
How llms.txt differs from robots.txt and sitemap.xml
- robots.txt is permission — what crawlers may and may not access
- sitemap.xml is inventory — every URL you want indexed, in machine-readable form
- llms.txt is an optional editorial index that some tools may use as an additional navigation hint
All three can coexist. Keep any optional index concise enough for a person to review and keep its links current.
The spec at a glance
An llms.txt-style file is Markdown commonly organised around a title, short description and links to core documents. There is no universal enforcement mechanism, so prioritise clarity and accurate links over a rigid format:
- H1 with the project or site name (required)
- Blockquote with the canonical URL (recommended)
- Free-form paragraph describing what the site is for (recommended)
- `## Docs` H2 with a Markdown bullet list of
[Title](URL)links to core docs (recommended) - `## Optional` H2 with secondary resources (blog, changelog, examples) (optional)
Use headings and link labels that make sense to a human reader. Do not claim that a particular file structure guarantees ingestion or citation.
What to put in the Docs section
Think "if a model could only read 5 pages of my site to answer questions about it, which 5?" That's the Docs list. For most sites this is: getting-started, core concepts, the API reference (or feature reference), pricing, and a FAQ. Resist the urge to dump your entire sitemap — that defeats the purpose.
Optional links: what to add and what to leave out
Use the Optional section for context-broadening resources: the changelog (helps LLMs answer "what's new" questions accurately), the blog index (gives editorial voice), a public roadmap, public case studies. Leave out anything gated, anything outdated, and anything that contradicts your Docs section — LLMs penalise contradictions by citing less.
Where to publish it
Upload the generated file to https://yourdomain.com/llms.txt — the root of your site, same convention as robots.txt. Some platforms also publish llms-full.txt (a single concatenated document version of all the linked docs) for models that want the full corpus in one fetch. The generator above produces the index file; the full version is a content task you do later.
Adoption today
Publishing an optional content index may be useful when it is accurate and maintained, but it is not a proven shortcut to visibility or citation. Assess it alongside the quality of the underlying content, crawl accessibility and the needs of your users.
Common mistakes
- Skipping the canonical URL blockquote — LLMs use it to disambiguate when your site has many subdomains
- Too many links in Docs — keep it under 10, ideally 5–8
- Pasting full content into Optional — link to it, don't inline it; the file is meant to be small
- Forgetting to update after a re-architecture — broken links here erode trust like 404s in your sitemap
Methodology
This is a pure client-side generator. No edge function is called, no data leaves your browser, and the file is built deterministically from the form inputs using the llms.txt spec from llmstxt.org. We render an H1 for the site name, a blockquote for the canonical URL, the summary as a free-form paragraph, and Markdown bullet lists under ## Docs and ## Optional sections — each entry parsed from your Title | URL lines (we also accept Title: URL). The preview updates live as you type. The download produces a UTF-8 text/markdown file named llms.txt that you upload to the root of your site. No telemetry is captured; this tool works fully offline once the page is loaded.
Frequently Asked Questions
This tool also answers
What is an llms.txt file?
A plain Markdown file at /llms.txt that gives large language models a curated map of your site: what the product is, and which pages hold the canonical answers. It is to AI assistants roughly what a sitemap is to a crawler.
Where do I put the llms.txt file?
At the root of your domain, served as text/plain or text/markdown at https://yourdomain.com/llms.txt. On most stacks that means dropping it in the public or static folder so it ships untouched with the build.
Related Free Tools
Free SEO Audit
Run a complete free SEO audit in under 60 seconds. Covers Core Web Vitals, on-page SEO, security, indexability, broken links, and mobile-friendliness — with deep-dive links to fix every issue.
Meta Tags
Extract and validate meta tags from any URL — title, description, Open Graph, Twitter Cards, and more.
Sitemap Checker
Inspect your XML sitemap. Find it, check its basic sitemap structure, count URLs, detect sitemap indexes, and flag suspicious or broken sub-sitemaps.
HTTP Status Code Reference
Understanding HTTP status codes helps you diagnose issues found by this tool: