SEO Tools

Robots.txt Generator

Generate a valid robots.txt file for your website. Configure search engine crawler access, Allow and Disallow directives, sitemap URLs, and optional crawl-delay settings.

Quick Configuration Presets

Website & Sitemaps

Used to auto-suggest sitemap locations. Robots.txt must be published at root: https://example.com/robots.txt.
Declaring sitemaps helps search bots discover all your published pages faster.

Crawler Directives & Rules

Advanced & Custom Directives

Supported primarily by Yandex. Google and Bing ignore the Host: directive.

Generated robots.txt

Live Preview & Editor
Auto-Generated
Essential Security Notice
A robots.txt file is crawler guidance, not an access-control mechanism. Malicious bots or scrapers can ignore it. Never rely on robots.txt to secure sensitive directories, passwords, or customer data — use password protection and server authentication.

Inspect Existing robots.txt File

Analyze your live published robots.txt file by URL or paste raw directives for immediate health check and syntax validation.

How to Generate and Install Your robots.txt File

Step 1: Configure Rules

Select your target search bots, set up Allow and Disallow paths, and add your XML sitemap URL using our preset templates.

Step 2: Download the File

Click Download robots.txt to save the plain text configuration directly to your local computer without any formatting clutter.

Step 3: Upload to Root

Upload the file to the exact root directory of your website domain via FTP, cPanel, or Git so it is live at /robots.txt.

Robots.txt Directive Reference Guide

Directive Purpose & Syntax Crawler Support & Notes
User-agent: Identifies which search crawler the following block of instructions applies to. Example: User-agent: * or User-agent: Googlebot. Universal. Supported by all search engine crawlers and web robots.
Disallow: Instructs the specified crawler not to request or crawl pages beginning with this path. Example: Disallow: /admin/. Universal. Supported by Google, Bing, Yahoo, Yandex, DuckDuckGo, Baidu.
Allow: Explicitly allows access to a subfolder or file within an otherwise disallowed directory. Example: Allow: /wp-admin/admin-ajax.php. Supported by Google, Bing, and most modern search engines. Overrides broader Disallow paths.
Sitemap: Specifies the absolute URL of your XML sitemap to assist crawlers with site discovery. Example: Sitemap: https://example.com/sitemap.xml. Universal. Can be placed anywhere in the file; standard practice is at the bottom.
Crawl-delay: Requests that crawlers wait a specified number of seconds between successive requests. Example: Crawl-delay: 5. Supported by Bing, Yandex, and Baidu. Ignored by Googlebot (manage crawl rate in Google Search Console).

Frequently Asked Questions (FAQ)

A robots.txt file is a plain-text document placed at the root directory of a website that tells search engine crawlers and automated bots which pages, folders, or files they are permitted or forbidden to request and crawl on your site.

A robots.txt generator provides a clean visual interface to create valid robots.txt directives, select targeted search bot user agents, configure Allow and Disallow rules, declare sitemaps, and prevent critical indexing mistakes before downloading the file.

Your robots.txt file must always be uploaded to the top-level root directory of your website host. For example, if your website is https://example.com, the file must be directly accessible at https://example.com/robots.txt. Subdomains (e.g., blog.example.com) require their own individual robots.txt files.

Disallow tells web crawlers not to visit the specified directory or URL path. Allow gives permission to crawl a specific file or subfolder located inside an otherwise blocked directory (e.g. allowing /wp-admin/admin-ajax.php while disallowing /wp-admin/).

To block all compliant crawlers from your entire website (such as during staging or private development), use: User-agent: * followed by Disallow: /. Warning: This will stop search engines from discovering and indexing your pages.

To allow all web crawlers unrestricted access to your entire website, use: User-agent: * followed by Allow: / and Disallow: (leaving Disallow completely empty).

Yes. You can declare multiple Sitemap: lines in your robots.txt file. For example, you can list a post sitemap, page sitemap, and category sitemap: Sitemap: https://example.com/sitemap-posts.xml and Sitemap: https://example.com/sitemap-pages.xml.

No. Robots.txt controls crawling, not indexing. If external websites link to a blocked URL with descriptive anchor text, Google may still index the URL and display it in search results without crawling the page content. To completely prevent indexing, use a <meta name="robots" content="noindex"> tag instead.

No! Robots.txt is publicly viewable by anyone on the internet by browsing to /robots.txt. Malicious bots and bad actors regularly scan robots.txt to discover hidden admin and sensitive paths. Always protect private areas with secure server-side password authentication.

Crawl-delay requests that search bots wait a specified number of seconds between consecutive page requests to reduce server load during heavy crawling. For example, Crawl-delay: 10 instructs the crawler to pause 10 seconds between requests.

No. Googlebot does not support or obey the Crawl-delay directive in robots.txt. If you need to manage or reduce Google\'s crawl rate, use Google Search Console settings.

Yes. You can declare multiple User-agent blocks in the same robots.txt file. For example, you can allow search engines like Googlebot and Bingbot full access while disallowing AI scrapers like GPTBot or CCBot.

Yes. Search engine crawlers treat subdomains as distinct hostnames. If you operate app.example.com or blog.example.com, each subdomain must host its own robots.txt at app.example.com/robots.txt.

You can use the built-in Robots.txt File Analyzer tab on this page to validate your syntax, check for high-risk blocking rules, and verify sitemap declarations. You can also use Google Search Console\'s Robots Testing tool after uploading.

Yes! The PaceTools Robots.txt Generator is 100% free with no registration, no hidden limits, and no server tracking.

Explore Related SEO Tools