Guides/Plugins and tools/Add llms.txt to your site

Add llms.txt to your site

Last reviewed on November 7, 2025

This guide explains how to set up an llms.txt file to help optimize your WordPress.com site for AI tools.

This feature is available on sites with the WordPress.com Business and Commerce plans. If you have a Business plan, make sure to activate it. For free sites and sites on the Personal and Premium plans, upgrade your plan to access this feature.

About llms.txt

An llms.txt file is a plain-text (Markdown-formatted) file, placed at the root of your domain (e.g. https://yourgroovydomain.com/llms.txt) that lists the most important pages on your website.

Adding an llms.txt file can help AI tools better understand your site. It gives them clear directions to your most important pages, instead of leaving them to guess what’s useful. While not all AI systems use llms.txt yet, setting it up now can prepare your site for the future if more tools start to recognize it. It’s quick to create and doesn’t negatively affect how your site works or appears to visitors.

Plugins like Yoast SEO and Rank Math can be used to deploy an llms.txt file to your site. You can follow the instructions provided by your chosen plugin to add an llms.txt file to your site. The remainder of this guide will show you how to create and publish an llms.txt file manually without using a plugin.

Create an llms.txt file

Here’s how to create your llms.txt file:

Step 1: Identify your high-value pages

First, decide which of your site’s pages you want to highlight for LLMs. Typically, this can include:

  • Pages about your services or products
  • About pages
  • Documentation guides to your products, if applicable
  • Policies (e.g. privacy, terms)
  • Blog posts or important articles

Step 2: Write your file in markdown

In a text editor, create a .txt file that includes full URLs and a short description of each URL. Don’t include too many links — aim for quality over quantity. Here’s a sample format:

# Your Site Name

> A short summary or description of your site.

## Products
- [Feature A](https://yourgroovydomain.com/feature-a): Summary of Feature A  
- [Feature B](https://yourgroovydomain.com/feature-b): Summary of Feature B  

## Company
- [About Us](https://yourgroovydomain.com/about): Who we are, our mission  
- [Pricing](https://yourgroovydomain.com/pricing): Plans & pricing details  

## Documentation
- [Getting Started](https://yourgroovydomain.com/docs/getting-started): Intro guide  
- [Reference](https://yourgroovydomain.com/docs/api): Full reference guide  

## Optional
- [Blog](https://yourgroovydomain.com/blog): Latest articles  
- [Contact](https://yourgroovydomain.com/contact): Get in touch  

Publish your llms.txt file

Now that you have created your llms.txt file, you can add it to your site using SFTP:

  1. Access your site’s SFTP credentials.
  2. Open an SFTP client such as FileZilla or Cyberduck, and use those details to connect.
  3. After connecting, add the file to the root directory (htdocs) of your WordPress.com site. Make sure the file name is exactly llms.txt (all lowercase):
The llms.txt file is shown in the root directory.
  1. Visit https://yourgroovydomain.com/llms.txt (replace yourgroovydomain.com with your site’s domain name) in your browser. If everything is set up correctly, the text contents of your file will be displayed.

Was this guide helpful for you?

Not quite what you're looking for? Get Help!

Copied to clipboard!