Skip to content

Robots.txt Generator

Developer Tools•Client-Side & Private

Build a valid robots.txt in seconds — per-agent allow/disallow rules, sitemap URL, crawl-delay, plus toggleable allow/block rules for 9 AI crawlers.

Tool workspace

Search-engine rules

User-agent: *
Allow
/
Disallow
/admin//private/

Not all crawlers honour crawl-delay — Google ignores it.

AI crawler rules

9 allowed · 0 blocked · 0 omitted. Blocking stops the crawler from fetching your pages; it does not delete content a model has already trained on.

GPTBot

OpenAI — trains GPT models

OAI-SearchBot

OpenAI — Search / ChatGPT search

ChatGPT-User

OpenAI — ChatGPT browsing

ClaudeBot

Anthropic — trains Claude

Claude-SearchBot

Anthropic — Claude search

PerplexityBot

Perplexity — AI search

Google-Extended

Google — trains Gemini / AI features

Applebot-Extended

Apple — trains Apple Intelligence

CCBot

Common Crawl — open web corpus

robots.txt preview

Upload this file to the root of your site (https://yoursite.com/robots.txt). Robots.txt is a request, not a lock — polite crawlers obey it, bad actors ignore it.

Loading tool controls…

Files processed locally — never uploaded to our servers
Free Instant Private

Verify it yourself: press F12, open the Network tab, and use this tool — your files are never uploaded.

Robots.txt Generator at a glance

Price
Free
Account
Not required
File uploads
None — your files are never uploaded

Who uses Developer Tools?

Developers and engineers formatting JSON, testing regex, hashing data, encoding values or building API requests.

How to Use Robots.txt Generator

Follow these simple steps to get instant results in your browser.

1

Set the Default Rules

Edit the Allow and Disallow paths for User-agent: * — paths must start with /, and the tool validates each one as you add it.

2

Add Sitemap and Crawl-Delay

Enter your full sitemap URL (for example https://example.com/sitemap.xml) and an optional crawl-delay in seconds.

3

Choose the AI Crawler Rules

Set each of the nine AI crawlers to Allow, Disallow or Omit — or use Allow all / Block all / Omit all.

4

Download robots.txt

Copy the preview or download robots.txt, then upload it to the root of your site at https://yoursite.com/robots.txt.

💡

What is Robots.txt Generator & How Does It Work?

Robots.txt Generator builds a valid robots.txt for your site in seconds. Set per-agent allow and disallow rules — the default is User-agent: * with / allowed and /admin/ and /private/ disallowed — add more user-agents by name, set a sitemap URL and an optional crawl-delay, then copy or download the finished file.

The tool also carries toggleable rules for the nine major AI crawlers: GPTBot, OAI-SearchBot, ChatGPT-User, ClaudeBot, Claude-SearchBot, PerplexityBot, Google-Extended, Applebot-Extended and CCBot. Each one has its own Allow / Disallow / Omit switch, so you can welcome the AI search crawlers while blocking the training crawlers — or block all nine with one click.

The page is honest about what robots.txt can and cannot do. Blocking a crawler stops it fetching your pages again, but it does not delete content a model has already trained on, and robots.txt is a request polite crawlers obey — not a lock. Bad actors ignore it, so never rely on it to hide sensitive content.

⚡

Key Features & Capabilities

✓

Nine AI Crawlers

GPTBot, OAI-SearchBot, ChatGPT-User, ClaudeBot, Claude-SearchBot, PerplexityBot, Google-Extended, Applebot-Extended and CCBot — each toggleable.

✓

Per-Agent Rules

Allow and Disallow lists for User-agent: * plus any extra user-agent you add by name.

✓

Path Validation

Every path is checked as you add it — it must start with / (or be *).

✓

Sitemap and Crawl-Delay

A full sitemap URL (validated) and an optional crawl-delay in seconds.

✓

Copy and Download

The finished robots.txt is ready to upload to your site root.

Pro Tips

  • •Bookmark this tool for instant one-click access anytime.
  • •Drag and drop files directly onto the input surface for fastest handling.
  • •All processing happens in your browser session for maximum speed and data safety.

🎯 Common Use Cases

Blocking AI Training CrawlersDisallow GPTBot, ClaudeBot, CCBot and Google-Extended while keeping search crawlers welcome.
Hiding Admin and Private AreasDisallow /admin/ and /private/ so search engines do not index them.
Pointing Crawlers at the SitemapAdd the Sitemap: line so crawlers find every page without guessing.
Allowing AI Search but Blocking AI TrainingAllow OAI-SearchBot, Claude-SearchBot and PerplexityBot while blocking GPTBot, ClaudeBot and Google-Extended — search visibility without training use.
📐

Robots.txt Generator - Allow and Disallow Rules

Formula Equation:
User-agent: <name> + Allow: <path> / Disallow: <path> lines, plus one Sitemap: <url> line

A robots.txt file is a list of groups. Each group names a user-agent and then lists the paths that agent may (Allow) or may not (Disallow) fetch; the most specific matching rule wins. A Sitemap: line points crawlers at the sitemap. The file must live at the site root, /robots.txt.

✏️

Worked Example

  1. 1Default rules: User-agent: * — Allow: / — Disallow: /admin/ — Disallow: /private/
  2. 2AI rules: GPTBot Disallow: / — ClaudeBot Disallow: / — all others Allow: /
  3. 3Sitemap: https://example.com/sitemap.xml
  4. 4Result: every crawler may fetch the site except /admin/ and /private/, GPTBot and ClaudeBot may fetch nothing, and crawlers are pointed at the sitemap
📚

Sources & Further Reading

Frequently Asked Questions about Robots.txt Generator

Frequently asked questions

Nine: GPTBot, OAI-SearchBot, ChatGPT-User, ClaudeBot, Claude-SearchBot, PerplexityBot, Google-Extended, Applebot-Extended and CCBot. Each one has its own Allow / Disallow / Omit switch, so you can welcome some AI crawlers and block others.

No. Blocking stops the crawler from fetching your pages again, but it does not delete content a model has already trained on. The page states this plainly.

Upload robots.txt to the root of your site, so it is reachable at https://yoursite.com/robots.txt. That is the only location crawlers check.

Paths must start with / — for example /admin/ or /private/. The tool validates each path as you add it and rejects anything that does not start with / (or *).

No. It is a request that polite crawlers obey. Bad actors ignore it, so never rely on robots.txt to hide sensitive content — use authentication instead.

It starts with a “# Generated with PixelTools Robots.txt Generator” comment, then User-agent: * with Allow: / and Disallow: /admin/ and /private/, the nine AI crawlers each set to Allow, and a Sitemap line for https://example.com/sitemap.xml.

It is added to each search-engine rule group (User-agent: * and any agent you add by name) — the AI crawler groups do not get a Crawl-delay line. And Google ignores crawl-delay entirely, so it only slows the crawlers that honour it.

Complementary utilities for your workflow

View all →
You are here

Robots.txt Generator

Build a valid robots.txt with AI-crawler rules.

Current tool

HTML Minifier

Minify HTML and reduce file size with one click.

Try tool

JS Formatter

Beautify JavaScript with proper indentation.

Try tool

CSS Formatter

Beautify CSS with clean rules and indentation.

Try tool