An llms.txt file helps AI assistants like ChatGPT, Claude, and Perplexity understand what your WordPress site is about — increasing the chances they'll recommend you in AI-generated answers. This guide covers all three ways to add one to WordPress.
Contents
Step 1: Generate Your llms.txt File
Before uploading anything, you need a proper llms.txt file. The file follows a specific Markdown format with required sections. The easiest way is to use our free generator:
- Go to llmsgenerator.com
- Enter your WordPress site's URL and click "Fetch from URL"
- The tool auto-fetches your site structure, pages, and posts
- Review the generated file and make any edits
- Click "Download llms.txt"
Important: Save the downloaded file with the exact name llms.txt (all lowercase). The filename cannot be changed — AI crawlers look for this specific file at your site's root.
Method 1: Plugin (Easiest)
If you want the simplest approach with no FTP access needed, a file management plugin lets you upload directly through the WordPress admin dashboard.
Install a file manager plugin
In your WordPress admin, go to Plugins → Add New and search for "File Manager." Install and activate any reputable file manager plugin (search results will show options with thousands of active installs).
Navigate to the root directory
Open the file manager. Navigate to your site's root directory — the folder where you see wp-config.php, wp-content/, and wp-includes/. This is the same level where robots.txt lives.
Upload llms.txt
Click the upload button in the file manager toolbar. Select your downloaded llms.txt file and confirm the upload.
Method 2: FTP Upload
FTP is the most direct method and works regardless of your hosting provider.
Connect with an FTP client
Use FileZilla (free) or any FTP client. Connect to your server using the FTP credentials from your hosting control panel (usually found under "FTP Accounts" or "File Access").
Navigate to public_html (or your root folder)
On most shared hosts, your WordPress root is at /public_html/. On some hosts it may be /www/ or /htdocs/. Look for the folder containing wp-config.php.
Upload the file
Drag llms.txt from your computer into the root folder on the server. The transfer should complete in seconds.
Method 3: Hosting File Manager (cPanel / Plesk)
Most shared hosting providers include a browser-based file manager in their control panel. No software to install.
Log into your hosting control panel
Go to your hosting provider's dashboard (usually at yourdomain.com/cpanel or a separate URL your host provided).
Open the File Manager
Look for "File Manager" in your cPanel or Plesk dashboard. Open it and navigate to public_html/ (or your WordPress root directory).
Upload llms.txt
Click "Upload" in the toolbar. Select your llms.txt file from your computer and upload it. Confirm it appears in the file list.
Verifying It Works
After uploading by any method, verify the file is publicly accessible:
- Open a browser (or an incognito window)
- Go to
https://yourdomain.com/llms.txt - You should see the plain text content of your llms.txt file
If you see a 404 error, double-check that the file is in the correct root directory (the same level as robots.txt). If your site uses a subdirectory installation (e.g., WordPress installed at /blog/), place llms.txt at the domain root, not inside the subdirectory.
llms.txt Template for WordPress Sites
Here's a minimal llms.txt template you can customize for a typical WordPress site:
# Your Site Name
> One or two sentences describing what your site is about and who it's for.
## About
- [About Us](/about): Learn about our team and mission.
## Blog
- [Blog Home](/blog): Guides, tutorials, and industry news.
- [Post Title](/post-slug): Brief description of this post.
## Products & Services
- [Product Name](/product): Description of your main product or service.
## Optional
- [Contact](/contact): How to reach us.
- [Privacy Policy](/privacy-policy): Our data and privacy policies.
The format uses Markdown. The first H1 is your site name, the blockquote is your site description, and each section lists your key pages as Markdown links with brief descriptions.
Generate a customized llms.txt for your WordPress site
Auto-fetch your site's structure from URL. No signup, no data sent to our servers.
Generate llms.txt Free →