Skip to content

Llms.txt: How to Optimise Your Website for AI

Author: Matteo Pellegrini

Artificial intelligence (AI) and large language models (LLMs) are changing the way people find information.

AI systems such as ChatGPT, Google Gemini, Claude and others aim to process complex web content to give faster, more accurate answers in context. However, complex HTML structures, unnecessary code and robots.txt blocks can get in the way of these systems.

This is where llms.txt comes in: a new standard for how AI crawls web content.

What Exactly Is Llms.txt?

Llms.txt is a special text file that helps AI systems and LLMs understand your website's content more effectively.

Where does it go? In the root directory of your site (https://yoursite.com/llms.txt).

The file helps AI tools such as ChatGPT or Google Gemini process information more precisely and efficiently, improving how easily language models can crawl and index your content.

Origins of Llms.txt

Llms.txt was proposed by Jeremy Howard, an Australian technologist, in September 2024.

The aim? To get around the limits of complex HTML and create a clearer, more transparent and more efficient way to provide content to AI systems.

How Does Llms.txt Work?

Llms.txt works in a similar way to robots.txt files or XML sitemaps, with some substantial differences:

  • It allows AI systems to crawl more effectively.
  • It reduces the computing load during crawling.
  • It lets you select and present the content you want LLMs to process.

You can include:

  • URLs of relevant pages
  • Descriptive summaries
  • Full texts (in Markdown format)

Differences Between Llms.txt and Robots.txt

1. Purpose of the Files

  • Llms.txt:
    • Helps language models understand the site's content better.
    • Presents the most relevant information simply and clearly.
    • Goal: optimisation for AI (GEO, Generative Engine Optimisation) and presentation of knowledge.
  • Robots.txt:
    • Controls how search engine bots crawl the site.
    • Allows or blocks crawling of specific pages.
    • Goal: search engine optimisation (SEO).

2. Who the Files Are For

  • Llms.txt:
    • Intended for LLM-based systems such as ChatGPT, Gemini, Claude and Microsoft Copilot.
  • Robots.txt:
    • Intended for search engine bots such as Google, Bing and Yandex.

3. File Format

  • Llms.txt:
    • Written in Markdown, readable by both humans and machines.
    • Markdown lets AI read and understand the content faster.

Example:

# Title

> Optional description goes here

Optional details go here

## Section name

- [Link title](https://link_url): Optional link details

## Optional

- [Link title](https://link_url)
  • Robots.txt:
    • Written in plain text with specific rules for bots.

Example:

User-agent: Googlebot
Disallow: /nogooglegbot/

User-agent: *
Allow: /

Sitemap: https://www.example.com/sitemap.xml

4. Relationship with SEO

  • Llms.txt:
    • Contributes to optimisation for LLM systems, improving visibility in generative engines.
  • Robots.txt:
    • Part of traditional SEO, regulating how search engines crawl the site.

Why Llms.txt Matters for SEO and GEO

Having control over how AI models interact with your content matters, and a completely flattened version of your website can make extraction, training and analysis by AI much simpler. Here is why:

  • Protecting proprietary content
    It can stop AI from using original content without permission, but only for the language models that choose to respect the directives.
  • Managing brand reputation
    In theory it gives companies some control over how their information appears in AI-generated answers.
  • Linguistic and content analysis
    With a flattened version of the site that AI can read easily, you can run advanced analyses that would normally need dedicated tools:
    • Keyword frequency
    • Taxonomy analysis
    • Entity analysis
    • Internal link analysis
    • Competitor analysis
  • Better interaction with AI
    llms.txt helps LLMs interact more effectively with your site, so they can retrieve accurate, relevant information. You do not need a standardised format for this: a clean, well-structured file with the site's full content is enough.
  • Greater content visibility
    By steering AI systems towards specific content, llms.txt can optimise your site for AI indexing and potentially improve its visibility in generative search results. As with SEO there are no guarantees, but any preference an LLM shows for llms.txt is a step forward.
  • Better AI performance
    The file ensures language models can reach the most relevant and valuable content on your site, which leads to more accurate AI answers when users interact with chatbots or AI-powered search engines. The full version of llms.txt is often more useful than summaries or lists of URLs.
  • Competitive advantage
    As AI technology keeps evolving, having an llms.txt file can give your website an edge by making it better prepared for interaction with AI.

How to Add an Llms.txt File to Your Site

The appeal of llms.txt lies in its simplicity: it reduces the site to its linguistic and textual core, which makes it much easier to analyse for AI, and also for SEO tools, researchers, copywriters and analysts.

It also gives site owners a standard way to state explicitly what AI models can (or cannot) use.

Support for the initiative is growing among developers, SEO specialists and tech companies, as it works as a "text handshake" between the site's content, the AI and the user.

Here are the practical steps to add it:

  1. Prepare the llms.txt file in Markdown format.
  2. Upload it to the root directory of your website.
  3. (Optional) Add a reference to llms.txt in your robots.txt.
  4. Check that the file can be opened in a browser (e.g. yoursite.com/llms.txt).
  5. Set the permissions needed for AI bots.
  6. Update the file regularly as the site changes.

For WordPress:

  • You can upload the file manually to the public_html folder.
  • Or use a WordPress plugin to generate and manage it.

Other methods:

  • Apify : a generator developed by Jakub Kopecký
  • FireCrawl : one of the first tools built to create llms.txt files

Important: always check the security of any tool before using it, especially if it asks for access to your site or generates files you will upload to your server.

Llms.txt file examples

Here are some llms.txt files already live:

The Future of Llms.txt and AI Content Governance

As AI adoption grows, so does the need for transparency and control over online content. Llms.txt could become a key standard for:

  • Creating a clearer dialogue between content and AI
  • Protecting intellectual property
  • Optimising generative indexing
  • Making SEO more resilient as traditional search engines lose ground

Get Your Site Ready for AI

Llms.txt is a promising tool for optimising your website with AI in mind.

Although adoption is still at an early stage, implementing it now can bring concrete benefits:

  • Content protection
  • Better visibility in generative results
  • Better understanding by chatbots

Want to Make Your Website More "AI-friendly"?

Start today by creating and implementing your llms.txt file.
Try the available generators, prepare a clear Markdown structure and give AI a fuller view of your content.

Matteo Pellegrini

Matteo Pellegrini

I’m a Business Developer, and at Visilay I focus on developing data-driven SEO, Google Ads, and CRO strategies. I love historical museums, have been practicing Karate for as long as I can remember, and on weekends I enjoy exploring Italian villages in search of authentic local food.