Skip to content
Free, no sign-up, in your browser

Robots.txt Generator: create a robots.txt file for free

Create your robots.txt file in two modes with the Robots.txt Generator: set individual Allow and Disallow rules by path and bot, or configure each of 14 crawlers, from Googlebot to AI crawlers like GPTBot and ClaudeBot. Enter your sitemap URL, then copy the result or download it as robots.txt. Everything runs in your browser.

Built by Rugile Rutkauskaite

Site configured? Take it online with fast, reliable web hosting.

Quick Create and Pro Bot are separate configurations. They are not combined; each generates its own robots.txt.

robots.txt

User-agent: *
Allow: /

Why this tool

Robots.txt Generator features

What the Robots.txt Generator does for your robots.txt file.

Two modes: Quick Create and Per Bot

“Quick Create” creates individual Allow/Disallow rules per path and bot; “Per Bot” sets a default rule plus a setting for each crawler. Each mode generates its own robots.txt.

Search engines and AI crawlers

Choose from 14 crawlers, from Googlebot and Bingbot to the AI crawlers GPTBot, Google-Extended, CCBot, ClaudeBot, and PerplexityBot.

WordPress templates

One click blocks /wp-admin/ and /cgi-bin/ while allowing /wp-admin/admin-ajax.php; another allows /wp-content/uploads/. If a path is missing its leading slash, the tool adds it.

Crawl-delay with notice

In Per Bot mode, choose 1, 5, 10, or 20 seconds. Google and Yandex ignore Crawl-delay, but some other crawlers, such as Bing, take it into account.

Sitemap line

Enter the full URL of your sitemap, and the tool will append it as a Sitemap line at the end of the robots.txt file.

Generated in your browser

The robots.txt is generated live in your browser; your input is not sent to a server. Copy the contents or download them as a robots.txt file.

Guide

How to create a robots.txt file with the generator

From choosing a mode to uploading: your robots.txt in six steps.

Step 1

Select mode

Choose “Quick Create” for individual Allow/Disallow rules or “Per Bot” to configure search engines and AI crawlers individually.

Step 2

Add rules

In “Quick Create,” select Allow or Disallow for each row, enter a path such as /wp-admin/, and select “All bots (*)” or a specific bot. Add more rows and templates for important files and images with a click.

Step 3

Control bots individually

In “Per Bot,” choose whether all bots are allowed or disallowed by default, optionally set a Crawl-delay, and set individual crawlers such as GPTBot to Default, Allow, or Block.

Step 4

Add a sitemap

Enter the full URL of your sitemap, for example https://deine-seite.de/sitemap.xml.

Step 5

Copy or download

Check the preview and click “Copy” or “Download.” The downloaded file is already named robots.txt.

Step 6

Upload and check

Upload the robots.txt file to your domain's root directory and open yourdomain.com/robots.txt in your browser to check that it's online.

Examples

Robots.txt examples from the generator

Four typical files, exactly as the Robots.txt Generator produces them with the settings described.

Allow everything

This is what the generator outputs if you don't add any rules in “Quick Create”: all crawlers can crawl the entire website.

User-agent: *
Allow: /

Block the entire website (Disallow all)

“Per Bot” with the default set to “Not allowed.” Caution: search engines that follow robots.txt will no longer crawl any pages on your website.

User-agent: *
Disallow: /

Block AI crawlers

“Per Bot” with GPTBot, Google-Extended, CCBot, ClaudeBot, and PerplexityBot set to “Block.” All other bots remain on Default and can continue crawling.

User-agent: *
Allow: /

User-agent: GPTBot
Disallow: /

User-agent: Google-Extended
Disallow: /

User-agent: CCBot
Disallow: /

User-agent: ClaudeBot
Disallow: /

User-agent: PerplexityBot
Disallow: /

WordPress with a sitemap

“Quick Create” with the templates for important files and images, plus a sitemap URL.

User-agent: *
Disallow: /wp-admin/
Allow: /wp-admin/admin-ajax.php
Disallow: /cgi-bin/
Allow: /wp-content/uploads/

Sitemap: https://deine-seite.de/sitemap.xml

Syntax

What's in a robots.txt file

The robots.txt file is a public text file in your domain's root directory. It tells crawlers which paths they can crawl. The generator writes these directives:

InstructionMeaningIn the generator
User-agentSpecifies which crawler the following rules apply to. An * stands for all bots.The tool writes a separate block for each selected bot.
DisallowPrevents a path from being crawled. Disallow: / blocks the entire website.For each rule in “Quick Create,” or by selecting “Block” in “Per Bot.”
AllowExplicitly allows a path, for example as an exception within a blocked area.For each rule, or by selecting “Allow” in “Per Bot.” With no rules in “Quick Create,” the tool writes Allow: / for all bots.
SitemapSpecifies the full URL of your XML sitemap.In both modes, use the Sitemap field to add it as the last line of the file.
Crawl-delayAsks crawlers to pause between requests. Google ignores this setting.Only in “Per Bot,” with a choice of 1, 5, 10, or 20 seconds, including in each individually configured bot block.

Choose from these 14 crawlers in the generator

In “Per Bot,” each crawler has its own setting; in “Quick Create,” you select one for each rule. On the right, you'll see the User-agent that the tool writes to the robots.txt file.

  • GoogleGooglebot
  • Google ImagesGooglebot-Image
  • BingBingbot
  • YandexYandexBot
  • BaiduBaiduspider
  • DuckDuckGoDuckDuckBot
  • YahooSlurp
  • AppleApplebot
  • Facebookfacebookexternalhit
  • GPTBot (OpenAI)GPTBot
  • Google-Extended (Google AI)Google-Extended
  • CCBot (Common Crawl)CCBot
  • ClaudeBot (Anthropic)ClaudeBot
  • PerplexityBotPerplexityBot

Discover more

More tools

FAQ

Robots.txt Generator: frequently asked questions

Brief answers about robots.txt and this tool.

A Robots.txt Generator creates a robots.txt file from your settings, so you don't have to write the syntax yourself. This one has two modes: “Quick Create” for individual Allow/Disallow rules by path and bot, and “Per Bot” for a default rule plus a setting for each crawler. The modes aren't combined; each generates its own robots.txt file. The tool is free, requires no sign-up, and generates the file in your browser.

At a minimum, you need a User-agent line for the bot, followed by Allow or Disallow rules: Disallow blocks a path, while Allow explicitly permits one—for example, to block /wp-admin/ but allow /wp-admin/admin-ajax.php. You can optionally add a Sitemap line with the full URL, including https://. If you don't add any rules in “Quick Create,” the generator outputs User-agent: * and Allow: /.

Upload it to your domain's root directory, not a subfolder, for example via FTP/SFTP or your hosting file manager. You can then access it at your-domain.com/robots.txt. The file downloaded from the generator is already named robots.txt.

In “Per Bot” mode, set GPTBot, Google-Extended, CCBot, ClaudeBot, or PerplexityBot to “Block.” The generator writes a separate User-agent block with Disallow: / for each of these crawlers. You can leave search engines like Google and Bing on Default. Note that robots.txt is a request followed by reputable crawlers, not a technical barrier.

In “Per Bot,” set the default for all bots to “Not allowed.” This produces User-agent: * with Disallow: /. Search engines that follow robots.txt will then stop crawling your entire website. Only use this intentionally, for example for a test environment.

No. Google ignores Crawl-delay, and so has Yandex since 2018. Only some other crawlers, such as Bing, take it into account. In “Per Bot” mode, you can choose 1, 5, 10, or 20 seconds. The value appears in the block for all bots and in each bot block you've individually set to Allow or Block.

Not reliably. A robots.txt file only controls crawling. A blocked URL can still be indexed if other pages link to it. To keep a page out of search results, use a noindex meta tag or password protection. This generator doesn't create noindex rules, and robots.txt isn't suitable for protecting private content.

No. The Robots.txt Generator only creates new files; it doesn't check a robots.txt file that's already online. To view a live file, open deine-domain.de/robots.txt in your browser. The robots.txt report in Google Search Console shows whether Google can retrieve it.

Any more questions?

Contact Support
Your website needs a home

Looking for hosting for your website?

Whether it's WordPress, a shop, or your own project, ZAP-Hosting offers fast, reliable web hosting with full SSH access.

4.4/5 Trustpilot32,000+ Active serversSince 2010

No setup. No risk. Online in seconds.

Flexible TermCancel anytimeOnline in 60 seconds

Looking for more tools? View all developer tools