Robots.txt Generator (Robot Text File Maker)

Create a correct robots.txt with rules per crawler, crawl-delay, sitemap links and a one-click preset to block AI crawlers.

Loading Future Forge Tools…

Robots.txt Generator (Robot Text File Maker)

Create a correct robots.txt with rules per crawler, crawl-delay, sitemap links and a one-click preset to block AI crawlers.

A robots.txt generator builds the plain text file that tells search engines and AI crawlers which parts of your site they may crawl. You set a User-agent, Allow and Disallow paths and your Sitemap URL, then upload the file as robots.txt to your domain root, such as example.com/robots.txt.

How to use Robots.txt Generator

  1. Add a group for each user-agent you want to control.
  2. Enter Allow and Disallow paths and your sitemap URL.
  3. Copy or download robots.txt and upload it to your site root.

How this robots.txt generator works

Add one group per crawler (the * group covers every bot), enter the paths to allow or disallow one per line, set an optional crawl-delay and paste your sitemap URL. The file is built as you type, and the tool warns you if a path does not start with a slash. Copy it or download it as robots.txt. Nothing leaves your browser.

Two presets save time: Block AI crawlers adds Disallow rules for GPTBot, ChatGPT-User, CCBot, Google-Extended, anthropic-ai, ClaudeBot, PerplexityBot and Bytespider, and Block all closes the whole site, which is useful for staging servers.

Robots.txt directives

DirectiveWhat it doesExample
User-agentStarts a group and names the crawler it applies to. * means all crawlers.User-agent: Googlebot
DisallowBlocks crawling of paths that start with this value. Empty means nothing is blocked.Disallow: /admin/
AllowRe-opens a path inside a blocked folder. The longest matching rule wins.Allow: /admin/help/
SitemapPoints crawlers to your XML sitemap. Full URL, can sit anywhere in the file.Sitemap: https://example.com/sitemap.xml
Crawl-delaySeconds to wait between requests. Google ignores it; Bing and Yandex respect it.Crawl-delay: 10

Paths are case-sensitive, * matches any characters and $ marks the end of a URL, so Disallow: /*.pdf$ blocks every PDF.

Robots.txt examples you can copy

Allow everything

User-agent: *
Disallow:

Sitemap: https://example.com/sitemap.xml

WordPress

User-agent: *
Disallow: /wp-admin/
Allow: /wp-admin/admin-ajax.php

Sitemap: https://example.com/wp-sitemap.xml

This matches the virtual file WordPress serves by default. If an SEO plugin creates your sitemap, use its sitemap URL instead.

Block one folder

User-agent: *
Disallow: /private/
Disallow: /checkout/

Sitemap: https://example.com/sitemap.xml

Block AI crawlers, keep search engines

User-agent: GPTBot
Disallow: /

User-agent: CCBot
Disallow: /

User-agent: Google-Extended
Disallow: /

User-agent: *
Disallow:

Sitemap: https://example.com/sitemap.xml

Google-Extended only controls whether your content is used for Google's AI models. Blocking it does not affect Googlebot or your rankings. Respecting robots.txt is voluntary, so a badly behaved bot can still ignore it. More cases are in our robots.txt examples guide.

Robots.txt sitemap directive

The Sitemap: line is the easiest way to tell every crawler where your sitemap lives, including engines where you never submitted it. It does not belong to any user-agent group, it needs the full absolute URL, and you can list several sitemaps or one sitemap index. If an SEO audit reports "sitemap.xml not indicated in robots.txt", adding this line fixes it. Need the sitemap itself? Build one with the XML Sitemap Generator, and see how to add a sitemap to robots.txt.

Where robots.txt goes and how to test it

  1. Name the file exactly robots.txt, in lowercase, saved as plain UTF-8 text.
  2. Upload it to the root of the host: https://example.com/robots.txt. A file in a subfolder is ignored, and each subdomain needs its own.
  3. Open the URL in your browser to confirm it loads without a redirect or login.
  4. In Google Search Console, open Settings and then the robots.txt report. It shows the version Google fetched, when, and any parsing errors, and lets you request a recrawl after changes.
  5. Use the URL Inspection tool to check whether a specific page is blocked.

Google reads only the first 500 KiB of the file, so keep it short. Do not use robots.txt to hide private pages; the file is public, and blocked URLs can still appear in search if other sites link to them.

Common robots.txt mistakes

Frequently asked questions

What is a robot text generator?

It is a tool that writes your robots.txt file for you, the plain text file that crawlers read before visiting your site. You choose the rules and it outputs correctly formatted lines you can copy or download.

How do I add my sitemap to robots.txt?

Add a line such as Sitemap: https://example.com/sitemap.xml anywhere in the file. Use the full absolute URL, and add one line per sitemap if you have several.

Why does my SEO audit say sitemap.xml is not indicated in robots.txt?

Your robots.txt has no Sitemap line. Add one with the full URL of your sitemap or sitemap index, upload the file again and rerun the audit.

Should robots.txt and sitemap.xml list the same pages?

They should not contradict each other. Every URL in your sitemap should be crawlable, so never list a page in sitemap.xml that robots.txt blocks.

Does Google follow the Crawl-delay directive?

No. Google ignores Crawl-delay; Googlebot adjusts its crawl rate automatically. Bing and Yandex do read it.

Can robots.txt remove a page from Google?

No. Disallow stops crawling, but a blocked URL can still be indexed if other sites link to it. Use a noindex tag on a crawlable page, or password protection, to keep it out of search.

How do I block AI crawlers like GPTBot?

Click "Preset: block AI crawlers" to add Disallow rules for the major AI bots.

Where do I put robots.txt?

In the root of your domain, for example https://example.com/robots.txt.