What is an llm.txt file and how do you use it
An llm.txt file, written as llms.txt, is a plain-text file at your domain root that gives AI models a clean, curated map of your most important pages. It lists your key URLs in Markdown so systems like ChatGPT, Perplexity, and Claude can read your content without wading through navigation and scripts. You create it, place it at yoursite.com/llms.txt, link the pages that matter, and keep it current as the site grows.
An llm.txt file, written in the spec as llms.txt, is a plain-text file you place at the root of your domain that gives AI models a curated, readable map of your most important content. It lives at yoursite.com/llms.txt, uses simple Markdown, and lists the pages you most want a model to understand. The point is to hand systems like ChatGPT, Perplexity, Gemini, and Claude a clean path to your key content instead of making them parse navigation, scripts, and cookie banners. You write the file, place it at the root, link the pages that matter with a short description each, and keep it current.
What is the llms.txt file actually for?
Asked often.
what is an llm.txt file
An llm.txt file, written in the spec as llms.txt, is a plain-text file placed at the root of your domain that gives AI models a curated, readable map of your most important pages. It uses simple Markdown: a site name, a one-line summary, and grouped lists of key URLs each with a short description. The goal is to hand systems like ChatGPT, Perplexity, and Claude a clean path to your core content instead of making them parse navigation, scripts, and markup. It is a proposed standard, not a confirmed ranking signal, but it costs almost nothing to build.
how to create llm.txt file
Create a plain-text file named llms.txt. Begin with an H1 of your site or company name, then a blockquote summarizing the site in one sentence. Add Markdown H2 sections to group links, such as Docs, Services, or Case Studies, and under each list your URLs as Markdown links followed by a colon and a short description of what each page covers. Keep it to the pages that genuinely matter, because curation is the whole value. A focused 30-link file outperforms a dumped 300-link export. Save it and place it at your domain root.
where to place the llm.txt file for the website
Place the file at the root of your domain so it resolves at yoursite.com/llms.txt, exactly like robots.txt. It must be served as plain text with a text/plain content type and must be reachable without any login. On a static or custom build, that means a file in your public root directory. On a hosted platform, you add it through whatever mechanism serves root-level files. The location does not change by platform: root only. If it loads at a subpath instead of the root, models following the convention will not find it, so confirm the exact root URL resolves.
how to get indexed by llm through llms.txt file
The file itself does not index you; it points models at content that must already be indexed and worth citing. Build each target page with an answer-first lead of about 100 words, question-phrased headings, specific cited claims, and Article and FAQPage structured data, then submit those pages to Google Search Console by hand so they index in days. Once the pages exist and are indexed, llms.txt gives a model a curated shortlist of which ones to prioritize. Build citable pages first, index them, then publish the file that points at them. Order matters.
how to check llm.txt file
Open yoursite.com/llms.txt directly in a browser. It should render as plain text, not download a file, not return a 404, and not serve HTML. Confirm the content type is text/plain and that every URL listed inside resolves to a live page. Run the file through any Markdown linter to catch broken link syntax or malformed headings. The validation is deliberately simple: if the file loads clean at the root and all its links work, it is doing its job. Re-check it whenever you edit the file or restructure the pages it points to.