AI Search Optimization

How to Create llms.txt for AI Search Engines

llms.txt helps AI search engines like ChatGPT, Perplexity, and Gemini understand your site. Learn how to write, deploy, and maintain it with real examples.

5 min read2026-04-05

llms.txt is a text file that efficiently communicates your site's information to AI search engines like ChatGPT, Perplexity, and Gemini. Think of it as robots.txt for AI — placed in your site's root directory.

What Is llms.txt?

llms.txt is a Markdown file designed to help AI systems understand your site. Placed at your site's root (/llms.txt), it provides a summary of your site, links to key pages, and document structure for AI consumption. The specification was published by llmstxt.org in 2024 and is rapidly gaining adoption.

robots.txt

Controls crawler access. Tells bots which pages to crawl or skip.

llms.txt

Provides site information to AI. Tells AI agents what your site is about and where to find key content.

Why Does llms.txt Matter Now?

As AI search grows, optimizing for AI-generated responses (GEO: Generative Engine Optimization) is becoming as important as traditional SEO. AI systems prefer structured Markdown text over parsing HTML. llms.txt bridges that gap.

10%

Percentage of sites with llms.txt (as of 2025)

3.7x

AI citation probability with structured data

74.2%

AI-cited content in list or table format

How to Write llms.txt

llms.txt is written in Markdown format. The llmstxt.org specification defines the following elements.

H1 title (required)

Start the file with your site name as an H1 heading.

blockquote for site overview (recommended)

Write a site description using a blockquote (>) block. This is what AI reads first.

H2 sections for categories

Create sections like ## Docs, ## Blog, ## Services to organize your content.

Link format for page listings

List pages as - [Page Name](https://absolute-url): Description. Relative URLs are not supported.

llms.txt
# Example Company

> AIマーケティングプラットフォームを提供する企業です。
> コンテンツ最適化・SEO分析・パフォーマンス計測ツールを提供しています。

## ドキュメント

- [はじめに](https://example.com/docs/getting-started): セットアップガイド
- [APIリファレンス](https://example.com/docs/api): エンドポイント一覧
- [料金プラン](https://example.com/pricing): プラン比較表

## ブログ

- [SEO最適化の基本](https://example.com/blog/seo-basics): 2024年最新ガイド
- [構造化データの活用](https://example.com/blog/schema): Schema.org実装方法

How to Deploy llms.txt

1

Place the file at /llms.txt

Deploy llms.txt to your site root so it's accessible at https://yourdomain.com/llms.txt. In Next.js, placing it in /public/llms.txt serves it automatically.

2

Also place at /.well-known/llms.txt (recommended)

It is recommended to also place the file in /.well-known/. Some AI agents reference this path as well.

3

Create llms-full.txt for the full document version (optional)

llms-full.txt contains concatenated Markdown content of all pages. Useful when you want to provide detailed information to AI. Especially effective for large sites.

Common Mistakes to Avoid

Writing it in HTML

llms.txt must be written in Markdown. Using HTML tags prevents AI from parsing it correctly. Use plain Markdown only.

Missing the H1 title

The specification requires an H1 (#) with your site name at the top of the file. Without it, the file is not considered compliant with the llmstxt.org specification.

Using relative paths for links

Links must use absolute URLs like https://yourdomain.com/docs/guide, not relative paths like /docs/guide.

Not updating when the site changes

Failing to update llms.txt when pages are added or removed means you're feeding outdated information to AI. Sync it through your CI/CD pipeline or regular maintenance.

Check Your Site's llms.txt Settings

Enter a URL to instantly check your llms.txt status, structured data, and SEO score for free. See how AI-search-ready your site is right now.

今井政和

Written by

今井政和

SEO Director / Frontend Developer

SEO Director with 20+ years of web industry experience. Creator of SEO_CHECK and the official WordPress plugin "ORECTIC SEO CHECK." Author of a book on web strategy inspired by Edo-era merchant principles.

@imai_director

FAQ

Apakah llms.txt benar-benar efektif?
Belum ada bukti jelas mengenai peningkatan jumlah kutipan. Namun, seiring standarisasi pencarian AI yang semakin cepat, adopsi awal menawarkan keuntungan besar dengan biaya implementasi yang rendah. Kami merekomendasikan untuk memasangnya sebelum spesifikasi llmstxt.org menjadi standar industri.
Apa perbedaan antara llms.txt dan robots.txt?
robots.txt mengontrol akses crawler ke situs Anda. llms.txt menyediakan ringkasan konten situs dalam format Markdown agar sistem AI dapat memahaminya dengan lebih baik. Keduanya ditempatkan di direktori root, tetapi memiliki tujuan yang sepenuhnya berbeda.
Apa perbedaan antara llms.txt dan llms-full.txt?
llms.txt adalah file ikhtisar navigasi yang pertama kali dirujuk oleh AI agent. llms-full.txt adalah file komprehensif yang berisi semua dokumen dari situs Anda. Praktik terbaik adalah mulai dengan llms.txt, kemudian secara opsional tambahkan llms-full.txt.
Sistem AI mana yang membaca llms.txt?
Belum dikonfirmasi secara resmi bahwa platform AI utama (ChatGPT, Perplexity, Gemini) membaca llms.txt. Namun, AI agent yang mendukung Model Context Protocol (MCP) semakin banyak yang merujuk llms.txt, dan standarisasi yang lebih luas diharapkan akan segera terwujud.
Bagaimana cara menambahkan llms.txt ke WordPress?
Ada dua cara. Pertama, upload file llms.txt langsung ke direktori root WordPress (lokasi yang sama dengan wp-config.php) melalui FTP atau file manager. Kedua, gunakan plugin khusus seperti 'LLMs.txt for WordPress' yang dapat memperbarui file secara otomatis seiring perubahan situs Anda.