Leaflint: llms.txt generator & checker

llms.txt checker

Paste your llms.txt file to test it. Get a score, every issue and how to fix it.

What we test (rule reference)

Rules follow the llms.txt proposal, v2 (updated August 10, 2026), where the H1 title is the only required section. Rules marked "our rule" are our suggestions, not part of the proposal. Recommendations don't change the score.

CodeWhat we foundSuggested changePoints
NO_H1No H1 title (the only required section)Start the file with "# Your site name"−40
MULTI_H1More than one H1Keep one "# " line; make the others "## " sections−15
H1_NOT_FIRSTContent before the H1 (a byte-order mark is fine)Move the "# " title to the top−10
HEADING_IN_DETAILSA heading (### etc.) before the first H2; v2 details allow "any type except headings"Turn it into a paragraph or start an H2 section−10
BAD_LINKA list item in an H2 section isn't a Markdown linkUse "- [Title](https://...): optional note"−10
REL_URLRelative link (our rule)Use the full https:// URL−10
HTTP_URLhttp link (our rule)Switch to https−5
BAD_SCHEMEjavascript:, mailto: or similar (our rule)Link only to web pages−15
PATH_NAMEThe location you entered isn't named llms.txtServe it as /llms.txt or /<folder>/llms.txt−10
EMPTY / TOO_LARGEFile is empty, or over 1 MB (our rule)Add a title; or trim it and put full text in llms-full.txtscore 0
NO_SUMMARYRecommended: a blockquote summaryAdd "> What your site is" under the title0
NO_SECTIONSRecommended: H2 sections with link listsGroup links under "## Docs" and so on0
EMPTY_SECTIONRecommended: links in every H2 sectionAdd links or delete the heading0

The score measures format only, not whether AI tools will use your file. A file that is just "# My Site" scores 100: it meets the only requirement. Subfolder files (e.g. /docs/llms.txt) cover the pages under that folder. Not checked here (needs fetching your site): rel="describedby" / rel="alternate" type="text/markdown" discovery links.

Common questions

Where does llms.txt go?
At the root (https://yoursite.com/llms.txt) or, under v2, at any path, where it covers the pages under that path (e.g. /docs/llms.txt).
My score is 100. Am I done?
The format is right. Keep the links current when your site changes.
Can I check llms-full.txt?
The same format rules apply. Paste it in.

Don't have a file yet? Generate one.