Skip to content
Understanding

Write an llms.txt file for your store

· 5 min read
Short answer

Publish a Markdown file at https://your-domain.com/llms.txt that starts with an H1 (# Your store name), follows with a one-line summary in a blockquote, and lists your most important pages as Markdown links under H2 sections.

Why it matters

llms.txt is a proposal published at llmstxt.org for giving language models a curated, plain-text map of a site. HTML pages carry navigation, scripts and layout; an llms.txt file gives a model the store’s name, what it sells and where the authoritative pages are, in a format it can read in one request.

The format is simple and ordered. An H1 with the site name is the only required section. After it come an optional blockquote summary, optional paragraphs or lists with details, and optional H2 sections, each a list of links in the form [name](url) with optional notes after a colon. An H2 named Optional holds links a model can skip when it needs less context.

llms.txt is optional. It is a proposal, not a standard that AI vendors have committed to read. Google says files like it neither help nor harm Search, an Ahrefs study of 137,210 domains found that 97% of valid files received no requests in a month, and an SE Ranking study of about 300,000 domains found no link to AI citations. That is why a missing file is shown as information and does not change your score.

If you do publish one, keep it clean. We only score the file when it exists, and only as a low-weight warning for HTML tags or escaped markup, a file over 100 KB, or more than 20% of link descriptions ending with the same words.

We fetch /llms.txt from your site root. If it does not return 200, or returns an HTML page (a common soft-404), we show it as optional and move on. If the file exists we warn when it is empty, does not start with an H1, contains no Markdown links, or has the hygiene problems above.

How to fix it

  1. List the pages that answer buyer questions

    Pick 10 to 30 pages: main categories, best-selling products, shipping, returns, sizing or product care, contact and about. Use canonical URLs that return 200.

  2. Write the file in Markdown

    Start with the H1 on the first line. Keep the summary factual: what you sell, to whom, where you ship.

    Markdown
    # Example Linen Co.
    
    > Example Linen Co. sells linen bags, aprons and table linen, made in Portugal and shipped to the US, UK and EU.
    
    Prices are in USD on the US store. Orders ship within 2 business days.
    
    ## Shop
    
    - [Bags](https://your-domain.com/collections/bags): totes, market bags and pouches
    - [Kitchen](https://your-domain.com/collections/kitchen): aprons, tea towels and napkins
    
    ## Policies
    
    - [Shipping](https://your-domain.com/policies/shipping-policy): rates and delivery times by country
    - [Returns](https://your-domain.com/policies/refund-policy): 30-day returns, conditions and fees
    
    ## Optional
    
    - [About us](https://your-domain.com/pages/about)
    - [Care guide](https://your-domain.com/pages/linen-care)

  3. Serve it as plain text at the root

    Upload it so that https://your-domain.com/llms.txt returns the file with status 200, ideally as text/plain or text/markdown. Platforms that do not allow arbitrary root files often support a redirect or proxy rule; check that the final URL still returns the Markdown, not an HTML page.

  4. Keep it current

    Update the file when you add a major category or change a policy URL. A link that returns 404 sends a model to a dead end.

How to verify

  • Run the free check at citeto.com/check. The llms.txt item shows the number of links we found and any issue such as a missing H1; it never lowers your score for a missing file.

  • Run curl -sI https://your-domain.com/llms.txt for the status, then curl -s https://your-domain.com/llms.txt | head -3 and confirm the first line starts with # .

Common pitfalls

  • A catch-all route that returns your HTML homepage or 404 page with status 200 for /llms.txt.

  • Putting a comment, front matter or blank heading before the H1. The H1 must be the first content line.

  • Listing pages as bare URLs instead of Markdown links.

  • Copying marketing copy into the summary. A model needs facts: products, markets, policies.

FAQ

No. robots.txt controls which URLs crawlers may fetch. llms.txt is a reading guide: it points a model to your best pages. It does not grant or deny access.

The proposal only requires the H1. Our check also asks for at least one Markdown link, because a file without links gives a model nowhere to go. The blockquote summary and H2 link lists are what make the file useful.

The proposal allows files at subpaths such as /docs/llms.txt for that section. We check the root file, which is the one that describes the whole store.

Sources

  1. [1]llmstxt.org: The /llms.txt filellmstxt.org
  2. [2]AnswerDotAI/llms-txt: proposal repositorygithub.com
  3. [3]Google Search Central: optimizing for generative AI featuresdevelopers.google.com
  4. [4]Ahrefs: llms.txt studyahrefs.com
  5. [5]SE Ranking: llms.txt studyseranking.com
Write an llms.txt file for your store