Noma by Nurdd (NomaHQ)Noma
llms.txt

How to add llms.txt to your website (and what it does and does not do)

llms.txt is a proposed Markdown map of your site for AI tools: what the spec asks for, what Google says about it, and how to serve one in Next.js.

Sheetal ShakshiUpdated 5 min read
A zigzag folded paper strip stands upright on a purple platform surrounded by small cubes.

Check your llms.txt now: the free llms.txt checker tells you whether your site has one, whether it follows the llmstxt.org format and whether its links work.

What is llms.txt?

llms.txt is a Markdown file placed at the root of your domain, at /llms.txt. It was proposed by Jeremy Howard in September 2024, and the format is published at llmstxt.org. Where robots.txt tells crawlers what they may fetch, llms.txt gives a language model or an AI agent a short, curated map of your site: what it is, in a sentence, and links to the pages worth reading.

It is a proposal, not a standard: there is no RFC or W3C specification, and no major AI company has documented its answer engine using the file to decide what to say about a brand. Some tools do request it. Google's Lighthouse, for example, fetches it in its agentic browsing audits and flags a server error, though a missing file is not a failure because the file is optional, and AEO auditors, Noma's included, report whether a site has one.

Already have a file? Check your llms.txt against the format before reading on.

The format

The llmstxt.org spec sets out these parts, in this order:

  • An H1 with the name of the site or project. This is the only required part.
  • A blockquote with a short summary of what the site is.
  • Optionally, more detail in paragraphs or lists, without headings.
  • Any number of ## Section headings, each holding a list of links in the form [name](url): notes.
  • Optionally, a section headed ## Optional for links a tool can skip when it needs less context.

The spec sets no length limit; it asks only that the file stay small enough to fit in a model's context. It also suggests offering a clean Markdown copy of each page at the same URL with .md added, which is often the more useful half of the proposal.

A real example

Here is an llms.txt in that format for a hypothetical B2B SaaS company called Acme CRM:

# Acme CRM

> Acme CRM is a customer relationship management platform for B2B SaaS companies with 10 to 1,000 employees.

Acme CRM is built by Acme Software Ltd. Contact: hello@acmecrm.com

## Product
- [Features](https://acmecrm.com/features.md): pipeline management, email sequences and revenue forecasting
- [Pricing](https://acmecrm.com/pricing.md): Starter, Growth and Enterprise plans

## Docs
- [Getting started](https://acmecrm.com/docs/start.md): importing contacts and connecting email

## Optional
- [Blog](https://acmecrm.com/blog.md)

It names the product category, says precisely who the product is for, and points to the pages that hold the detail, rather than trying to restate all of it in one file.

What it does, and what it does not

Google Search does not use it. Google's guide to its generative AI features says you do not need to create AI text files such as llms.txt to appear in Google Search, including AI Overviews and AI Mode, because Google Search does not use them, and that creating one for other services will neither help nor harm your visibility in Google Search (Google Search Central).

Answer engines read your pages, not a summary file. When ChatGPT, Perplexity or Gemini search the web while answering, they read the pages their search returns. OpenAI, for instance, documents OAI-SearchBot for ChatGPT search and ChatGPT-User for visits a user triggers (OpenAI's crawler documentation). Whether you are named depends on what those pages, and the third-party pages about you, say.

Where it helps. Agents and developer tools that are pointed at a site, coding assistants reading documentation being the common case, can use the file to find the right pages quickly. Writing one is a useful exercise too: a one-sentence description of what you are and who you serve is the same sentence your home page, your Organization structured data and your listings elsewhere should carry.

So treat llms.txt as cheap and harmless, not as a lever on AI visibility. If you have an hour for AI visibility, the pages engines already read come first.

How to implement it in Next.js

In a Next.js app using the App Router, you can serve llms.txt from a route handler. Create the file at app/llms.txt/route.ts:

export async function GET() {
  return new Response(
    `# Your Brand

> Your Brand is a [category] for [target customer].

## Product
- [Features](https://yourbrand.com/features): what it does
- [Pricing](https://yourbrand.com/pricing): plans and prices

## Contact
- [Contact](https://yourbrand.com/contact): hello@yourbrand.com`,
    {
      headers: { "Content-Type": "text/plain; charset=utf-8" },
    }
  );
}

This serves the file at yourdomain.com/llms.txt as plain text. No additional packages, no configuration changes.

If your description lives in a CMS or a config file, the GET handler is just an async function: fetch what you need and build the response from it, so the file cannot drift from the site.

What to put in yours

Write for precision, not marketing. Phrases like "the leading platform" add nothing a model can use. Instead:

  • Name your exact product category (not "a powerful platform" but "a revenue intelligence platform")
  • Say who it is for by company size, stage, industry or use case
  • Link to the pages that hold the facts: features, pricing, docs, contact
  • Keep the facts in it the same as on those pages, and update both together

Noma's site audit checks whether a site has an llms.txt, alongside the structured data, FAQ markup and freshness signals on the pages engines actually read. To write a file from your sitemap, or check the one you have against the llmstxt.org format, use the free llms.txt generator and checker.

Read next: how to control Google AI training in robots.txt.

See what AI engines say about your brand

Free AI visibility checker · no account · or start a 3-day trial

Questions people ask

Is there an llms.txt checker?

Yes. Noma's free llms.txt checker at nomahq.app/tools/llms-txt tells you whether your site has an llms.txt, whether it follows the llmstxt.org format and whether its links work. The same tool can also build a file from your sitemap.

Does llms.txt replace robots.txt?

No. robots.txt tells crawlers which URLs they may fetch. llms.txt is a proposed Markdown file that gives AI tools a short summary of a site and links to its key pages. They do different jobs, and llms.txt grants or blocks nothing.

Do AI engines read llms.txt?

Google says Google Search, including AI Overviews and AI Mode, does not use llms.txt, and that having one neither helps nor harms visibility there. No other major answer engine has documented using the file to decide what to say about a brand. Some agents and developer tools read it, and Google's Lighthouse requests it in its agentic browsing audits, flagging a server error but not a missing file.

How long should llms.txt be?

The llmstxt.org spec sets no length limit; it asks only that the file be small enough to fit in a model's context. In practice that means an H1, a one-sentence summary and short lists of links to the pages that hold the detail.

← Back to the blog

Check your llms.txt free

Free, no signup. Opens our checker.

Check