AI search

How to create an llms.txt file

An llms.txt file takes about fifteen minutes to write. Here's a step-by-step process, a template you can copy, and a generator that builds the file for you.

llms.txt is a plain Markdown file that gives AI tools a short, clean summary of your website and links to your best pages. If you're new to the idea, start with what is llms.txt. If you're ready to make one, this guide walks through it.

Generate your file

The generator on this page builds a valid llms.txt from your site name, summary and links. Fill in the fields, preview the Markdown and copy the result.

Free tool

llms.txt Generator

Fill it in from your site in one click, or write it yourself. Edit the sections, then copy or download your llms.txt.

Free, no sign-up. Everything runs in your browser.

Open the full llms.txt Generator page →

Step 1: Write the title and summary

Start with an H1 containing your site or product name, then a one- or two-sentence summary in a blockquote:

# Example Co

> Example Co makes waterproof outdoor gear for hikers and trail runners, sold online in the US and Canada.

Write the summary for someone who has never heard of you. Say what you do, for whom, and anything an assistant would need to answer questions correctly (where you operate, what you don't do).

Step 2: Add key facts

Below the summary, add a few short paragraphs or bullet points with facts people often ask about: pricing model, shipping regions, support hours, return policy, supported platforms.

Step 3: Choose the pages

Pick the 10 to 30 pages that best explain your site. Good candidates:

  • Product or service overviews.
  • Pricing.
  • Getting-started guides and documentation.
  • FAQs and policies.
  • Your most useful guides or articles.

Leave out pages that don't help someone understand you: tag archives, login pages, thin blog posts.

Step 4: Group them into sections

Use H2 headings for groups, and Markdown links with a short description:

## Docs

- [Quick start](https://example.com/docs/start): set up an account in five minutes
- [API reference](https://example.com/docs/api): every endpoint with examples

## Policies

- [Returns](https://example.com/returns): 60-day free returns

## Optional

- [Company history](https://example.com/about)

The Optional section is for links an AI tool can skip if it's short on space.

Step 5: Upload it to your site root

The file must load at https://yourdomain.com/llms.txt, as plain text.

PlatformHow to add it
Static site, Cloudflare, Netlify, VercelPut llms.txt in the public or root folder
WordPressUpload via FTP or file manager to the site root, or use a plugin
ShopifyShopify doesn't allow root files directly; use an app or a redirect from a page
Any serverPlace it next to robots.txt

Step 6: Check it

Run your site through the llms.txt checker to confirm the file loads, the structure is valid and every link works.

Optional extras

  • Markdown versions of pages: the proposal suggests serving a clean .md copy of each page at the same address plus .md.
  • llms-full.txt: one file containing the full text of your key pages, which some developer tools prefer.

Keep it up to date

Review the file whenever you launch a product, change pricing or restructure your site. An out-of-date llms.txt can lead AI tools to give people wrong answers about you.

Questions

Where do I put llms.txt?

At the root of your domain, so it loads at https://yourdomain.com/llms.txt, served as plain text.

What should llms.txt include?

An H1 with your name, a short summary in a blockquote, key facts, and H2 sections listing your most useful pages as Markdown links.

How long should llms.txt be?

Short. A summary and 10 to 30 well-chosen links is plenty for most sites.

Does llms.txt need special formatting?

It's plain Markdown. The only required element is the H1 title; the summary, sections and links are recommended.

See what to fix on your website today.

Free plan, no credit card. Your first fixes in about a minute.