Skip to content

llms.txt: what it is and how to write a good one

llms.txt is a proposed Markdown file at the root of your website that gives AI tools and agents a short, curated map of your most useful pages. This guide covers the format, where the file goes, what it does and leaves to other files, and how to write a good one, step by step.

By Leon Missoul, founder of LuniqUpdated 9 min read

The short version

  • llms.txt is a Markdown file at /llms.txt that points AI tools to your best pages.
  • Only the H1 title is required. Add a summary and sections of links.
  • Google says Search ignores it, so treat it as a small extra with no ranking effect.
  • Write it by hand: a clear summary, key facts and your most useful pages.

What is llms.txt?

llms.txt is a proposal for a Markdown file that tells large language models and AI agents what a website is about and where its most useful content lives.

Jeremy Howard published the proposal at llmstxt.org in September 2024. The reasoning: an AI tool working on a question has limited room to read, and web pages carry menus, scripts and layout around the text. A short file with a summary and the right links saves the tool that search.

What does an llms.txt file contain?

A title, a short summary and sections of links, in that order, written in Markdown. Only the title is required.

PartWhat it holdsRequired
H1 titleThe name of the site or companyYes
BlockquoteA short summary of what you do and for whomOptional, and worth adding
DetailsParagraphs or lists with key facts, without H1 or H2 headingsOptional
H2 sectionsGroups such as Services or Cases, each a list of linksOptional
Links[Page name](URL), with an optional colon and a short noteInside the sections

Because the format is plain Markdown, people can read the file too. The proposal also suggests clean Markdown versions of key pages, at the same address with .md added.

Where does the llms.txt file go?

At the root of your domain, as /llms.txt, next to robots.txt and sitemap.xml. The proposal also allows a file in a subfolder, such as /docs/llms.txt, for the pages below it.

Serve it as plain text that answers with a 200 status, without redirects or a login in front of it. Tools that use it look at the known address. The proposal also describes an optional link from each page to the file that covers it.

On a multilingual site, one root file can link the key pages in every language. You can also give each language folder its own file, such as /fr/llms.txt: a file covers the addresses below it, and tools use the most specific one.

What does llms.txt do for your website?

It gives AI tools that read it a curated map of your site. Crawler access, indexing and rankings stay with robots.txt, your sitemap and your content.

  • Gives a short map

    A summary and your best pages in one file an AI tool can read in one go.

  • Points to clean text

    Links to pages, or Markdown copies of them, free of menus and scripts.

  • Leaves access to robots.txt

    It grants and blocks nothing. Rules for crawlers stay in robots.txt.

  • Has no ranking effect

    Google says Search ignores llms.txt files: they neither help nor harm rankings.

The proposal is aimed at agents and AI tools that fetch a site when they need information, such as assistants reading developer docs. llmstxt.org notes that AI labs publish llms.txt files for their own developer documentation.

How is llms.txt different from robots.txt and a sitemap?

robots.txt says what crawlers may access, a sitemap lists the pages for search engines to index, and llms.txt picks the pages an AI tool should read first.

robots.txtSitemapllms.txt
PurposeAllow or block crawlersList pages to indexPoint AI tools to key content
FormatPlain-text rulesXMLMarkdown
CoversThe whole siteEvery page meant to be foundA curated selection
Read byWell-behaved crawlersSearch enginesAI tools and agents that choose to
StatusLong establishedSupported by major search enginesA proposal

How do you write a good llms.txt file?

Start from what an AI tool needs to answer questions about you, then link only the pages that answer them, each with a one-line note.

  1. Name and summary

    An H1 with your company name, then a blockquote that says what you do, for whom and where, in one or two sentences.

  2. Key facts

    A short list of facts an AI tool should get right: services, markets, languages and locations.

  3. Sections of links

    H2 sections such as Services, Cases, Pricing and Company, each link with a note on what the page answers.

  4. Publish and maintain

    Put it at /llms.txt, check it loads as plain text and update it when you add or retire key pages.

Write the notes as facts. "Website migrations for B2B companies, with redirect plan and timeline" tells an AI tool what it will find. "Discover our amazing solutions" tells it nothing.

What should a B2B company put in llms.txt?

The pages a buyer needs to judge you: what you offer, proof that it works, how pricing works and how to get in touch.

SectionWhat to link
ServicesOne page per service, with a note on who it is for
CasesCase studies, with the measured result in the note
PricingYour plans, or a page on how pricing works
CompanyAbout, team and locations
GuidesArticles that answer your buyers’ common questions
ContactThe contact or booking page

This site runs the same setup: luniq.io has its own llms.txt file at the root of the domain.

Does llms.txt help SEO or AI visibility?

It has no effect on Google rankings: Google says Search ignores llms.txt files. Its value is helping the AI tools and agents that do read it find your best pages.

Search and AI visibility come from the pages themselves: answers to real questions, facts in plain text, structured data and crawlers allowed in robots.txt. An llms.txt file is quick to write, so add it once those basics are in place.

Measure it like any small extra: check your server logs for requests to /llms.txt and see which tools fetch it. If none do, it costs you little to keep.

What are the common llms.txt mistakes?

Most come from treating it as a sitemap or as a ranking trick.

  • Copying the sitemap. A list of every page defeats the point. Pick the pages that answer questions.
  • Marketing copy. Slogans give an AI tool nothing to quote. Write facts and plain notes.
  • Stale links. Retired pages and redirect chains waste the tool’s reading room. Check links when pages change.
  • Hiding the file. A file behind a login, a redirect chain or a blocking rule cannot be read.
  • Expecting rankings. It is a courtesy to AI tools, and Google Search ignores it.

What our sites earn in search

pages in four languages, up from 31
204
of those pages in Google’s index
98%
more Google clicks, 940 up from 630
+49%
weeks from project start to live site
8

2 Stream. Measured from 27 July to 24 October 2026, against the 90 days before.

Leon Missoul

Written by

Leon Missoul

Léon Missoul, founder of Luniq, writes on what happens to websites now that AI reads them before buyers do, from the data across the sites Luniq runs.

Hey, I’m Luniq’s growth agent. Send me your domain and I’ll show you who ChatGPT recommends for your services, and the searches you miss.

Questions about llms.txt

Who created llms.txt?

Jeremy Howard, co-founder of Answer.AI, proposed llms.txt on llmstxt.org in September 2024. It is a community proposal, with no standards body behind it.

Do AI search tools use llms.txt?

Google says its Search ignores llms.txt files. Other AI tools have published little about whether they read it. The clearest use today is developer documentation, which AI labs themselves publish as llms.txt files.

Can llms.txt block AI crawlers?

llms.txt blocks nothing. To allow or block crawlers such as GPTBot and OAI-SearchBot, write rules for them in robots.txt.

Do WordPress and Wix create llms.txt files?

Some tools can generate one. llmstxt.org lists the WordPress plugins Yoast SEO and AIOSEO, and Wix, among them. Edit the generated file by hand: a tool lists what it finds, and a good file lists what matters.

Should llms.txt link to Markdown versions of pages?

The proposal suggests it: a page can offer a clean Markdown copy at the same address with .md added. It is optional, and links to your normal pages work too.

Can Luniq add llms.txt to our website?

Yes. AI search readiness is part of every website we build, from €3,500, and we can add an llms.txt file as part of it. This site runs the same setup, with its own llms.txt file.