llms.txt

10-20 minBeginner

llm.txt is a new standard proposal for providing a clean, text-only version of your website specifically for Large Language Models (LLMs) and AI agents. It helps AI understand your site structure and content better than raw HTML.

Prerequisites

  • Access to your sitemap.xml
  • ChatGPT or Claude account (to generate the file)
  • FTP/File Manager access to upload the file
Easy Recommended

AI Generation Workflow (Recommended)

The easiest way to create this file is to let an AI convert your existing XML sitemap.

1

Get Your Sitemap

1

Go to yoursite.com/sitemap_index.xml

2

Copy the list of URLs (or the XML source code).

2

Generate with ChatGPT

1

Paste your sitemap into ChatGPT/Claude.

2

Use this prompt: 'Convert this XML sitemap into an llm.txt file. Format it as a simple list of Markdown links: - Page Title. Group them logically if possible.'

3

Copy the resulting text output.

3

Create & Upload File

1

Create a new file named llm.txt on your computer.

2

Paste the text content.

3

Upload this file to your WordPress root directory (public_html) using FTP or a File Manager plugin.

4

Verify at yoursite.com/llm.txt.

Best Practices

Do

  • Keep it simple and text-based
  • Group links by category (e.g. # Blog, # Services)
  • Update it when you add significant new sections

Don't

  • Include admin pages or login links
  • Make the file massive (focus on high-level navigation)
  • Use HTML tags (keep it Markdown/Text)

Verification Checklist

  • Go to yoursite.com/llm.txt and ensure it loads as plain text
  • Check that it contains your most important links
  • Validate that it is not blocked by robots.txt

Pro Tips

  • You can also add an `/llms.txt` (plural) as a redirect to `/llm.txt` to cover both standards.
  • Include a brief description of your site at the top of the file.

Common Issues & Fixes

Problem: File returns 404
Solution: If using the dynamic PHP method, you might need to flush permalinks. If static, ensure it's in the actual root folder, not a theme folder.