Using llms.txt
What is llms.txt?
llms.txt is a proposed Markdown index of a website’s most useful pages. Jeremy Howard describes the file as offering brief background information, guidance, and links to detailed markdown files
. Read the v2 proposal.
Start with an H1 for the site name. Add a short summary and group links under H2 headings such as Documentation and Support. On a docs site, put the quickstart, API reference, and troubleshooting guide near the top. Link to published Markdown copies when available. View this site’s example.
How do I create and publish it?
Scan a public HTTPS website, paste page URLs, or import a sitemap XML file. A website scan reads titles and descriptions from up to 12 pages. Choose the links that best explain your site, refine the descriptions, and review the Markdown preview.
Download llms.txt, put it in your site’s static files directory, and deploy. Open https://your-domain.com/llms.txt to confirm the file appears as text and its links reach the intended pages. Read the publishing guide.
How does it relate to robots.txt and sitemap.xml?
robots.txt tells crawlers which URLs they can request. A sitemap helps search engines discover URLs across the site. An llms.txt file gives an overview of the site and points readers to a smaller set of useful resources. Robots Exclusion Protocol · Google’s sitemap guide.
Does llms.txt affect Google Search?
Google says it ignores llms.txt for search visibility and rankings, including AI Overviews and AI Mode. Google’s generative search features rely on the same crawl and index foundations as other Search results. Use the file as a reading guide for tools and people that consult it. Google Search’s guidance.