An llms.txt file is a short Markdown file at the root of your site that tells AI tools what your site is and where its most useful pages are. Think of it as a signpost written for language models: a summary, then a list of links with a line about each.
It was proposed by Jeremy Howard of Answer.AI in September 2024, and the spec lives at llmstxt.org. It’s optional, it’s small, and it takes about ten minutes to write. Below is the format, three examples you can adapt, and an honest answer on whether it helps.
The format
The spec is deliberately simple. In order, an llms.txt file has:
- An H1 with the name of your site or business. This is the only required part.
- A blockquote with a one- or two-sentence summary.
- Optional paragraphs or lists with any extra context (no H1 or H2 headings here).
- One or more H2 sections, each with a list of links. Every link is written as
Page name, optionally followed by a colon and a short note.
The file goes at https://yoursite.com/llms.txt. That’s the whole format.
Example 1: a local business
# Crumb & Co Bakery
> Independent bakery in Leeds making wedding and celebration cakes, sourdough and pastries. Open Tuesday to Sunday, 8am to 4pm.
Orders for celebration cakes need at least two weeks' notice. We deliver within 10 miles of LS6.
## Cakes and ordering
- [Wedding cakes](https://crumbandco.example/wedding-cakes): Sizes, flavours, prices and tasting appointments
- [Birthday cakes](https://crumbandco.example/birthday-cakes): Designs, prices and how far ahead to order
- [Ordering and delivery](https://crumbandco.example/ordering): Lead times, delivery area and payment
## About
- [Visit us](https://crumbandco.example/visit): Address, opening hours and parking
- [Allergens](https://crumbandco.example/allergens): What each product contains
Example 2: a software product
# Invoicely
> Invoicing software for freelancers and small agencies. Create invoices, take card payments and send reminders automatically.
## Product
- [Features](https://invoicely.example/features): What the app does, by task
- [Pricing](https://invoicely.example/pricing): Plans, limits and the free tier
- [Integrations](https://invoicely.example/integrations): Stripe, PayPal, Xero and QuickBooks
## Help
- [Getting started](https://invoicely.example/docs/start): Set up an account and send a first invoice
- [API reference](https://invoicely.example/docs/api): Endpoints, authentication and rate limits
Example 3: a service business or agency
# Northwind Studio
> Web design and SEO studio for dentists, clinics and other healthcare practices in the UK.
## Services
- [Web design for dentists](https://northwind.example/web-design-for/dentists): What's included, timelines and prices
- [SEO for clinics](https://northwind.example/seo-for-clinics): Monthly SEO packages and reporting
## Proof
- [Case studies](https://northwind.example/work): Results for named clients, with dates
- [About the team](https://northwind.example/about): Who does the work and their background
A few rules of thumb across all three: keep the summary factual, link to the pages that answer real questions (pricing, services, contact, help), and leave out anything you wouldn’t want quoted.
How to add llms.txt to WordPress
You have three options:
- Upload it. Save the file as
llms.txtand upload it to the root folder of your site with your host’s file manager or SFTP, next towp-config.php. - Use your SEO plugin. Several WordPress SEO plugins can now generate an llms.txt file from your pages. Check the plugin’s settings before adding a second one by hand.
- Let a tool write it. OnPage Agent builds an llms.txt file in the llmstxt.org format from your site’s key pages and serves it through its WordPress plugin, if your site doesn’t already have one.
Then open yoursite.com/llms.txt in a browser to check it loads as plain text.
Does llms.txt help with Google?
No, and Google says so. Its guidance on generative AI features states that you don’t need machine-readable or AI text files to appear in Google Search, and that llms.txt files neither help nor harm your visibility there. Google’s John Mueller has compared it to the old keywords meta tag.
Where it can help is with AI tools that fetch pages on demand, such as coding assistants and agents that look up documentation, and some assistants that read a site’s llms.txt when they browse. It’s cheap insurance rather than a ranking factor, so add one if it takes you ten minutes, but don’t expect it to change your traffic. For what does move AI visibility, see how to rank in Google’s AI Overviews.