User-Agent Configuration
Use * for a general group or a crawler token such as Googlebot or Bingbot.
Google ignores Crawl-delay. Only enable it for crawlers that document support.
Create a robots.txt file for your website with this free robots.txt generator. Set crawler-specific User-agent groups, add Allow and Disallow rules, and include sitemap URLs. Preview the output, check common syntax errors, then copy or download a ready-to-publish plain-text file.
Choose a preset or create individual crawler groups and path rules.
Enter the website where the file will be published.
Used to show the publishing address. The generated file applies only where you actually deploy it.
https://example.com/robots.txtStart with a common configuration or preserve your custom rules.
Assign Allow or Disallow paths to each user-agent group.
Use * for a general group or a crawler token such as Googlebot or Bingbot.
Google ignores Crawl-delay. Only enable it for crawlers that document support.
Reference sitemap files using absolute URLs.
Enter one complete HTTP or HTTPS URL per line. Duplicate URLs are removed from the generated output.
Adjust optional output details when needed.
Preview changes immediately. Click Generate to validate the current configuration.
Review the generated directives and check for input errors before saving the file.
Robots.txt is a publicly available text file that communicates crawling instructions to automated clients following the Robots Exclusion Protocol. A search crawler checks the file associated with an origin to determine whether particular URL paths can be requested.
The file is especially relevant when a website contains areas that should not receive routine crawler attention, such as selected administrative routes, internal search paths or specific URL patterns. The appropriate rules depend on the website structure.
Creating a robots.txt file requires care because incorrect restrictions can prevent important pages and resources from being crawled. The generator helps format the instructions, but final publishing decisions remain with the website owner.
Last updated: October 23, 2026
Follow these four stages to prepare a configuration for your website.
Add the website origin and select a suitable starting configuration.
Choose crawler groups and specify their Allow or Disallow paths.
Add sitemap references and enable crawler-specific options only when needed.
Generate the text, resolve errors, download robots.txt and deploy it at the root.
Configure, review and export crawler instructions without manually arranging every directive.
Create separate instructions for named crawlers or the default wildcard group.
Write path-based crawling instructions and more specific exceptions.
Reference one or more absolute sitemap URLs in the generated file.
Catch malformed fields and review warnings before exporting.
See an automatically updated text representation of your rules.
Save a robots.txt file suitable for deployment to your website root.
Understand what each directive means and whether Google recognizes it.
| Directive | Purpose | Example | Support |
|---|---|---|---|
| User-agent | Selects the crawler group. | User-agent: Googlebot | Core REP directive |
| Disallow | Requests that matched URLs not be crawled. | Disallow: /admin/ | Core REP directive |
| Allow | Permits matching URLs, including exceptions. | Allow: /public/ | Core REP directive |
| Sitemap | Provides an absolute sitemap URL. | Sitemap: https://example.com/sitemap.xml | Supported by Google |
| Crawl-delay | Suggests a request interval for supporting crawlers. | Crawl-delay: 10 | Not supported by Google |
| Host | Non-standard preferred-host instruction. | Host: example.com | Not supported by Google |
This example permits ordinary public crawling while requesting that a sample internal folder not be crawled.
User-agent: *
Disallow: /internal-search/
Allow: /
Sitemap: https://example.com/sitemap.xmlReplace the example sitemap URL and review the restricted path. An empty or unnecessary restriction is not automatically beneficial for SEO.
Inspect the exact instructions you plan to publish instead of making direct changes to a live server.
Separate default policies from crawler-specific instructions when a site has different crawling needs.
Use the plain-text output in your deployment repository so future changes can be reviewed.
Evaluate whether a path should be crawlable before blocking it, especially for public pages or rendering resources.
Evaluate whether certain filter or parameter combinations create unnecessary crawling. Avoid blocking pages that should be discoverable.
Consider the crawling requirements of administrative directories while preserving access to needed public assets.
Review internal search or application routes that are not intended as search landing pages.
Configure named crawler groups when an operator supports the applicable robots.txt rules and product token.
Check these problems before placing new rules on a production website.
Adding Disallow: / under the default group can stop compliant crawlers from requesting every page.
A blocked page may still be indexed based on external links, even if its content cannot be crawled.
Restricting CSS or JavaScript assets can prevent crawlers from rendering public pages correctly.
A file placed at /files/robots.txt does not replace the standard /robots.txt location.
Uncooperative crawlers can ignore the file and its contents are visible publicly.
Learn the important distinctions behind crawler matching, URL patterns and deployment.
Robots.txt belongs to a particular scheme, host and port. The file for https://example.com does not automatically govern https://blog.example.com or http://example.com. Deploy separate files where needed.
Use * for a general policy and named crawler product tokens for specialized policies. A crawler generally selects the most specifically matching applicable group; it does not simply apply every group in sequence.
Use root-relative path prefixes. Supported matching syntax includes * as a wildcard and $ as an end marker. Rule specificity affects which permission is applied when paths overlap.
Robots.txt answers whether a crawler may request a URL. A noindex directive communicates an indexing preference, but the crawler usually needs access to the page or response to discover that directive.
After deployment, confirm that /robots.txt returns readable UTF-8 plain text and the intended directives. Recheck the file after migrations, domain changes and major website restructuring.
Consult these sources for crawler behavior and the Robots Exclusion Protocol.
The generator builds the robots.txt content from your form settings directly in the browser. The live preview, validation and plain-text download are performed by the component without submitting your rules to a remote generation API.
Your downloaded file is created locally from the current configuration. Publishing it to a server remains a separate step under your control.
Answers about crawler permissions, indexing, sitemap references and common publishing problems.
A robots.txt file contains instructions that tell cooperating web crawlers which URL paths they may request. It is published at the root of the relevant host, such as https://example.com/robots.txt.
Choose a starting template, configure User-agent groups, add Allow or Disallow paths, optionally include sitemap URLs, and click Generate Robots.txt. Review validation messages before downloading and publishing the file.
Upload the UTF-8 plain-text file to the root of the specific host and protocol you want to control. For example, https://example.com/robots.txt applies to that origin. A separate subdomain normally needs its own file.
The asterisk selects the default group for compliant crawlers that do not match a more specific user-agent group. Rules for a specifically matched crawler can take precedence over the default group.
Disallow requests that a crawler avoid matching URL paths. Allow permits matching paths, including more specific exceptions inside restricted areas. For Google, the most specific matching rule is used, and Allow wins a matching tie.
It asks crawlers matching that group not to crawl any URL path on the origin. Using it for User-agent: * can block compliant search crawlers from the entire website.
Not necessarily. Robots.txt controls crawling, not guaranteed indexing. A blocked URL may still appear in search results if Google discovers it through links. For removal, use an appropriate noindex directive on a crawlable page or another supported removal method.
No. The file is public and can reveal restricted-looking paths. It does not enforce authentication or authorization. Protect sensitive content through server access controls.
Yes. Enter one absolute HTTP or HTTPS sitemap URL per line. The generator writes a separate Sitemap directive for each distinct valid URL.
No. Google does not support Crawl-delay in robots.txt. Some other crawlers may recognize it. Use the directive only when the intended crawler documents support for it.
Usually not for Google. Host is outside the core Robots Exclusion Protocol and Google ignores it. This tool keeps the option for compatibility with crawlers that may support it.
Yes, for crawlers that support matching Allow rules. For example, Disallow: /folder/ together with Allow: /folder/public-file.html can permit that specific file when the longer Allow rule applies.
Confirm the correct robots.txt is published on the exact origin, the crawler group matches, the path pattern is correct, and the file is publicly accessible. Search engines may cache robots.txt temporarily, so changes may not apply immediately.
You can add crawler-specific User-agent groups for identified AI crawlers, but effectiveness depends on whether each crawler recognizes and follows robots.txt. Check the crawler operator’s official documentation for its product token and supported behavior.