Robots.txt Generator
FREE TOOL

Robots.txt Generator

Visually configure search engine crawler rules 鈥?generate standard robots.txt files in one click

馃敀 100% Local Processing 路 Data Never Leaves Your Browser 路 Secure & Private
Quick presets:
鈿欙笍 Basic Config
馃搵 Crawl Rules
馃搫 robots.txt Output

Related Tools

馃摉 Robots.txt Generator Guide

What is Robots.txt?

Robots.txt is a text file placed in the root directory of a website that tells search engine crawlers which pages they can and cannot crawl. It's the fundamental way websites communicate with search engines and an essential part of SEO optimization. Properly configured robots.txt helps search engines crawl your site more efficiently.

Key Features

Common Use Cases

New site launch: quickly generate a standard robots.txt file. SEO optimization: control crawl scope to concentrate ranking weight. Admin protection: block crawlers from admin and sensitive pages. Bandwidth savings: block crawling of images, CSS, JS and other static resources. Multi-site management: quickly generate configs for different websites.

How to Use

Select the crawler (User-agent) to configure 鈥?default is all crawlers. Add Disallow (block) or Allow (permit) rules and enter paths. Optionally configure crawl delay and Sitemap URL. The robots.txt content is generated in real-time on the right. Click "Copy" or "Download" to get the file and upload it to your website root directory.

Pro Tips

Frequently Asked Questions

Where do I put robots.txt?

Robots.txt must be placed in the root directory of your website with the lowercase filename robots.txt. For example: https://www.example.com/robots.txt. Search engine crawlers automatically visit this address to get crawl rules.

What's the difference between Disallow and Allow?

Disallow tells crawlers not to crawl specified paths. Allow tells crawlers they can crawl specified paths. Allow takes priority over Disallow, often used for "block entire directory but allow one file" scenarios. E.g., Disallow: /admin/ but Allow: /admin/login.php.

Can robots.txt completely prevent indexing?

No. Robots.txt tells crawlers not to crawl, but if other pages link to those pages, search engines may still index their URLs. To completely prevent indexing, use the noindex meta tag or X-Robots-Tag response header instead.

What is Crawl-delay for?

Crawl-delay tells crawlers how many seconds to wait between each fetch, reducing server load. However, Googlebot does not support this directive 鈥?Google crawl speed must be set in Search Console. Other crawlers like Bing and Yandex do support it.

Do paths support wildcards?

Yes. * matches any sequence of characters, $ matches the end of a URL. For example, Disallow: /*.pdf$ blocks all PDF files, Disallow: /?* blocks URLs with query parameters. Note that not all crawlers fully support wildcards.