Skip to Content
How to add an llms.txt to your site

How to add an llms.txt to your site

An llms.txt is a small plain-text file you publish at the root of your website — at yoursite.com/llms.txt. It gives AI assistants like ChatGPT, Claude, Gemini, and Perplexity a concise, structured summary of what your site is and which pages matter most, so when a machine describes you it works from your words instead of guessing.

The free llms.txt generator  drafts one from your site in seconds. This guide covers the last step: getting that file live at your site’s root.

New to the format? Read The complete guide to llms.txt  for the why and the full spec.

1. Generate and review your file

  1. Go to the llms.txt generator , enter your site URL and email, and generate.
  2. Review the draft in the editable preview — tighten the summary, trim pages, sharpen the descriptions.
  3. Download the file (or copy it). The download is named llms.txt — keep that exact name.

2. Put it at your site’s root

The file must be reachable at https://yoursite.com/llms.txt — the root, not a subfolder. How you upload it depends on your platform:

  • WordPress — use a plugin that serves files from the root (or an SEO plugin’s file editor), or upload llms.txt into your site’s root directory over SFTP/your host’s file manager (the same directory as robots.txt).
  • Shopify — Shopify doesn’t expose the true root for arbitrary files; publish the file via an app that serves root-level files, or host it on your primary domain if you control DNS/hosting. (Placing it under /pages/ will not work — it must be the root path /llms.txt.)
  • Webflow / Framer / Squarespace — use the platform’s “custom code / hosted file” or redirect feature to serve /llms.txt, or point the path at the file via your CDN.
  • Static sites (Next.js, Astro, Vite, Hugo, plain HTML) — drop llms.txt into your public/ (or static/) folder so it’s served at the root.
  • Any host with file access — upload llms.txt to the same directory as your index.html / robots.txt via FTP/SFTP or your hosting control panel.

3. Verify it’s live

Open https://yoursite.com/llms.txt in your browser. You should see your file as plain text. If you get a 404, the file isn’t at the root — check the path and the exact filename (llms.txt, lowercase).

4. Keep it current

Regenerate and re-upload when your site changes meaningfully — new key pages, a repositioning, a new product. The file is a summary; it’s only useful while it’s accurate.