New: free AI visibility scan for law firms.Results in minutesRun yours →
  1. Home
  2. Glossary
  3. llms.txt
Glossary · Technical

llms.txt

Updated 2026-11-13

Definition

llms.txt is a proposed plain-text file at the root of a website that gives AI tools a short, curated map of the site's most important pages.

What it is

llms.txt is a proposal, published in September 2024 by Jeremy Howard of Answer.AI, for a small Markdown file at the root of a website (/llms.txt). The idea is simple: a language model reading a website has to wade through navigation, scripts, cookie banners and dozens of pages to find what matters. A short, hand-written file could tell it what the site is and which pages to read first.

It is worth being clear about its status from the start. llms.txt is a voluntary proposal, not a standard. It has been adopted mostly by software documentation sites, some documentation platforms can generate it automatically, and anyone can publish one. At the time of writing, none of the major AI assistants (ChatGPT, Gemini, Perplexity, Claude, Google’s AI Overviews) has publicly said that it reads llms.txt when deciding what to say or cite.

How it differs from robots.txt and sitemap.xml

People often lump the three files together because they all sit at the root of the site. They do different jobs.

/robots.txt

Says which crawlers may fetch which parts of the site.

User-agent: *
Disallow: /intake/

Sitemap: …/sitemap.xml
Read by
Search engine and AI crawlers that choose to honor it, which the major ones say they do.
Status
Decades old; published as an internet standard (RFC 9309) in 2022.
/sitemap.xml

Lists every page you want found, with when it last changed.

<url>
  <loc>…/divorce/</loc>
  <lastmod>2026-10-02</lastmod>
</url>
Read by
Search engine crawlers, as a hint for discovery.
Status
Supported by the major search engines since the mid-2000s.
/llms.txt

A short, hand-written guide to the site and its most useful pages.

# Rivera Family Law
> Family law, Austin, Texas.

- [Divorce](…/divorce/)
Read by
Any tool that chooses to fetch it. No major assistant has said it uses it.
Status
Proposed in 2024. Voluntary, not a standard.
FigureThree files at the root of a website. robots.txt sets permissions, sitemap.xml lists pages, llms.txt offers a curated guide. Status as publicly known at the time of writing.

The practical difference: robots.txt is a rule that the major crawlers say they follow. sitemap.xml is a list that search engines use to find pages. llms.txt is a suggestion that a tool may or may not read. Of the three, only robots.txt can stop your firm’s pages from being fetched at all, which is why it matters far more.

What goes in the file

The proposal describes a simple structure in Markdown. Only the first line is required; everything else is recommended.

example.com/llms.txtMarkdown
1
# Brennan Estate Planning
2
> Estate planning firm in Phoenix, Arizona: wills, trusts, probate and powers of attorney.
3
Serves Maricopa County. Consultations by appointment.
Not tax or investment advice.
4
## Practice areas
- [Wills](https://www.example.com/wills/): drafting and updates
- [Trusts](https://www.example.com/trusts/): revocable living trusts

## Answers
- [Probate in Arizona](https://www.example.com/probate-arizona/): steps and timeline
5
## Optional
- [Firm history](https://www.example.com/about/)
  1. 1
    NameRequiredAn H1 with the site or firm name. The only part the proposal requires.
  2. 2
    SummaryA blockquote: the key facts in a sentence or two.
  3. 3
    NotesOptional plain text. Useful for facts a reader should not get wrong.
  4. 4
    Sections of linksH2 headings, each with a list of links and a short note on what is behind them.
  5. 5
    "Optional"A section with this exact name marks links a tool can skip when it is short of space.
FigureAn llms.txt file for a two-attorney estate planning firm, annotated against the structure the proposal describes. Fictional firm.

The proposal also suggests that sites offer clean Markdown versions of important pages at the same address with .md added, so a tool can read the text without the page layout. Some sites also publish a longer companion file, often called llms-full.txt, containing the full text of key pages. Both are optional conventions and matter even less for a law firm than the main file.

Writing one for a law firm, step by step

If you decide to add one, it is a short job:

  1. Start with the firm name as an H1, exactly as it appears on your Google Business Profile and directories. See NAP consistency.
  2. Write a two-line summary: practice areas, city and state, and anything a reader must not get wrong (for example, that the firm handles only family law, or only represents employees).
  3. List practice area pages with a short note on each.
  4. List your best answer pages: the guides that answer real client questions about cost, process and timelines in your state.
  5. Add attorney bios if they carry real information (admissions, experience, languages spoken).
  6. Put “nice to have” pages under an “Optional” heading: firm history, community work.
  7. Upload it to the root of the site so it loads at https://yourdomain.com/llms.txt, and put a recurring reminder to update it when pages change.

Keep it accurate and dull. The same advertising rules that apply to your website apply here: no “best”, no “specialist” unless your state bar allows the claim, no implied outcomes.

The check that matters more: robots.txt

Before spending any time on llms.txt, look at your robots.txt. AI assistants that search the web need to fetch your pages, and robots.txt decides which crawlers may. Several AI companies run separate crawlers for training and for search, so blocking one is not the same as blocking the other.

example.com/robots.txt
User-agent: GPTBot
Disallow: /
BlockedOpenAI training crawlerA choice about model training. OpenAI documents a separate crawler for ChatGPT search.
User-agent: OAI-SearchBot
Allow: /
AllowedChatGPT searchUsed to show sites in ChatGPT search results. Blocking it can keep your pages out.
User-agent: PerplexityBot
Allow: /
AllowedPerplexity searchUsed to surface and link sites in Perplexity answers.
User-agent: Google-Extended
Disallow: /
BlockedGoogle AI model useA control for Gemini model use. Google says it does not affect inclusion in Google Search.
User-agent: *
Disallow: /intake-portal/
Mostly openEveryone elseKeeps a private area out; the public site stays open.
Check for this
User-agent: *
Disallow: /

Two lines that block every crawler from the whole site. They are sometimes left behind when a site moves from a staging server to the live one. Look for them before anything else.

FigureAn example robots.txt that opts out of model training but stays open to AI search crawlers. Crawler roles follow each company's public documentation; check the current documentation before copying rules.

Whether to allow training crawlers is a business decision for the firm. Blocking the search crawlers, usually by accident, is the costly mistake: a page the assistant cannot fetch is a page it is less likely to cite. Some hosting services, website platforms and security plugins offer one-click settings that block AI crawlers, so check what yours does.

Common mistakes

  • Treating llms.txt as a ranking lever. There is no public evidence that it changes which firms the assistants name.
  • Believing it controls AI use of your content. It does not grant or deny anything. That is what robots.txt rules are for.
  • Listing every page. That is the sitemap’s job. The value of llms.txt, if any, is in the selection.
  • Letting it go stale. A file that points to deleted pages or an old practice list sends the wrong signal to any tool that does read it.
  • Paying for it as a service. It is a short text file. If a vendor sells llms.txt as a headline deliverable, ask what else they are doing.

How to measure it

Check your server or hosting logs for requests to /llms.txt and note which user agents make them. That tells you whether anything reads your file at all. It will not tell you whether the file changed any answer, and with today’s evidence no one can show that it does.

Should a law firm add one?

It takes about twenty minutes and does no harm, so it is a reasonable “nice to have” once the basics are done. It should never come before the work that clearly affects what assistants say about law firms: robots.txt that lets search crawlers in, consistent firm details, schema markup that matches the page, strong directory profiles and reviews, and clear answer pages for the questions clients ask. See AI citations and AI search optimization.

If you want to know which of those basics your firm is missing, a free AI visibility scan shows what the assistants say today for your practice and city, and which sources they rely on.

Measure it on your own firm

A free scan asks ChatGPT, Gemini and Perplexity the questions your clients ask, and shows who they name instead of you.

Run a free scan