QREndless

Robots.txt Generator

Crawler rules with sensible presets, ready to ship.

100% on-device
User-agent Groups
#1
Crawl-delayseconds between requests (optional)
Sitemap URLs
Generated robots.txt
188 chars · 13 lines
Free online robots.txt generator creating crawler rules with allow, disallow, and sitemap directives

The Best Robots.txt Generator

Crawler-Grade Output

Outputs standard robots.txt syntax — User-agent groups, Allow/Disallow path rules, Crawl-delay, and Sitemap directives that Googlebot, Bingbot, and other crawlers understand natively.

100% Private

Everything is generated in your browser. No server calls, no signup, no upload. Your crawler rules and sitemap URLs never leave your device.

Live Preview

The output textarea updates instantly as you add rules, groups, or sitemaps. Copy to clipboard or download as robots.txt with a single click.

11+ Common Bots

Built-in suggestions for Googlebot, Googlebot-Image, Bingbot, DuckDuckBot, Slurp (Yahoo), Baiduspider, YandexBot, AhrefsBot, SemrushBot, GPTBot — plus free-text for any custom UA.

How to Use It in 3 Steps

  1. Add Crawler Groups

    Create a User-agent group per bot you want to control — Googlebot, Bingbot, GPTBot, or the wildcard * for everyone. Suggestions for 11+ common crawlers are built in.

  2. Write Allow / Disallow Rules

    Add path rules per group, toggle Allow/Disallow with one click, and set an optional Crawl-delay. Wildcards (*) and end anchors ($) work exactly as crawlers expect.

  3. Download and Deploy

    Copy the file or download robots.txt and upload it to your site root — https://example.com/robots.txt. Add Sitemap: lines so crawlers find your XML sitemap instantly.

Robots.txt Generator for Every Need

Site Owners & SEOs

Ship a correct robots.txt on day one: allow the crawlers you want, block /admin/ and /cart/, and point every bot at your sitemap in one file.

E-commerce Stores

Keep faceted nav, filters, cart, and checkout URLs out of the crawl — Disallow: /*?sort=, /checkout/, and /cart/ preserve crawl budget for products that sell.

Staging & Dev Sites

A staging host should never compete with production. One “User-agent: * / Disallow: /” group keeps pre-release content out of every search index.

AI Crawler Control

Decide how AI trainers may crawl: allow GPTBot on public blog posts, block it on premium content — or block it entirely with a single Disallow: / group.

Crawl-Budget Tuning

Throttle aggressive bots with per-group Crawl-delay values so SEO tools and scrapers stop hammering a small server during traffic spikes.

Sitemap Discovery

Every Sitemap: line tells crawlers where your XML sitemap lives — up to 1,000 sitemaps can be declared — so new pages get discovered without backlinks first.

Complete Guide

Robots.txt Generator: The Complete A-to-Z Guide

How robots.txt works, how crawlers parse user-agent groups and wildcards, what it can and cannot do, and how to write rules for SEO, staging, and AI bots.

What Is robots.txt and Where Does It Go?

robots.txt is a plain-text file at the very root of your domain — https://example.com/robots.txt — that tells well-behaved crawlers which parts of your site they may fetch. It is part of the Robots Exclusion Protocol, a convention every major search engine has honored since the 1990s. One file, one location: a robots.txt in a subfolder is ignored, and there can be only one per hostname (subdomains each get their own).

Crawlers typically check robots.txt before (and periodically during) a crawl. If the file blocks a path, the bot skips it. If the file does not exist, the crawler assumes everything is allowed — which is why a missing robots.txt is fine for simple sites, and a deliberate one is better for anything with admin areas, filters, or duplicate content.

How Crawlers Read It: User-Agent Groups

The file is a sequence of groups. Each group starts with one or more User-agent: lines and applies its rules to exactly those bots — and only the most specific matching group is used. That last part surprises people: if Googlebot matches both a * group and a Googlebot: group, it obeys only the Googlebot group and ignores the wildcard one entirely.

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

In this example Googlebot may crawl everything — including /private/ — because its own group wins and contains no Disallow. When you generate groups here, double-check that each bot’s effective group says what you intend.

Allow, Disallow, and Wildcard Patterns

Rule values are path prefixes with two wildcards: * matches any sequence of characters and $ anchors the end of the URL. Common patterns:

  • Disallow: /admin/ — blocks /admin/ and everything below it.
  • Disallow: /*?sort= — blocks any URL whose query string contains sort= (faceted navigation).
  • Disallow: /*.pdf$ — blocks PDFs only (the $ stops the match at .pdf).
  • Allow: /public/ — re-permits a subfolder inside an otherwise disallowed tree; in Google’s implementation the more specific (longer) path wins.
  • Disallow: / with an empty rule value means “allow everything” — the generator emits Allow: / instead, which is clearer.

What NOT to Do: robots.txt Is Not a Security Tool

robots.txt is a request, published in public. Anyone can read it — which makes it, ironically, a map of where you keep the private stuff. Malicious crawlers ignore it completely, and URLs that are disallowed but linked from elsewhere can still appear in search results without a snippet. The rules that matter:

  • Protect with authentication — logins, htaccess, or server rules; never with Disallow.
  • Hide from the index, not the crawl — use a noindex robots meta tag, which requires the page to be crawlable (do not also block it in robots.txt).
  • Do not block CSS and JS — old advice said to save bandwidth; today blocking render-critical assets breaks Google’s rendering and hurts rankings.

Crawl-Delay: When to Throttle Crawlers

Crawl-delay: 10 asks a bot to wait 10 seconds between requests. Bingbot, Yandex, and DuckDuckBot honor it; Googlebot ignores it (Google manages rate in Search Console instead). Use it for small or cheap-hosting sites getting hammered by SEO tools, and keep values modest — a huge delay can push a patient bot to sample your site less often. Set it per group, since one size rarely fits all bots.

The Sitemap Directive

Sitemap: https://example.com/sitemap.xml is unrelated to the allow/disallow rules above it — it is a global line telling crawlers where your XML sitemap lives. Unlike User-agent rules, it is always processed, and you can list multiple sitemaps (and a sitemap index) on separate lines. Bing, Google, and others pick up new URLs faster from a declared sitemap than from link discovery alone, so this line is one of the highest-value things in the file.

Blocking AI Crawlers (GPTBot and Friends)

AI companies publish their own user agents — OpenAI’s GPTBot, Anthropic’s ClaudeBot, Common Crawl’s CCBot, and more. Blocking them is a normal robots.txt operation: create a group for the bot and Disallow: /. Many publishers allow AI bots on public marketing content but block them on premium or user-generated pages, using targeted Disallow paths rather than a blanket ban. Whichever stance you take, put it in writing in the file — silence means “crawl away”.

Step-by-Step: Using the Robots.txt Generator

  1. Keep “Allow all crawlers by default” on for typical public sites — it emits User-agent: * / Allow: /.
  2. Add a group per bot that needs different treatment. Pick a suggestion from the datalist or type any custom user agent.
  3. Add path rules and click the Allow/Disallow badge to flip a rule’s type. Use wildcards for query-string and file-type patterns.
  4. Set Crawl-delay only for bots that are actually over-crawling, and only where they honor it.
  5. Add your sitemap URL — the full absolute https:// address of sitemap.xml.
  6. Download robots.txt and upload it to your web root. Test it live at yourdomain.com/robots.txt, then validate in Search Console’s robots report.

Ready to Generate Your robots.txt?

You know how groups and wildcards really match, why Disallow is not security, when Crawl-delay works, and why the Sitemap line matters. Scroll back up, add your rules, and download a crawler-grade robots.txt in a minute — everything generated locally in your browser.

Jump back to the robots.txt generator above ↑

Frequently Asked Questions

Everything you need to know about robots.txt generator.
What is a robots.txt file?

robots.txt is a plain-text file placed at the root of your website (e.g. https://example.com/robots.txt) that tells web crawlers which pages they may or may not crawl. It is a public file — anyone can read it — and it is advisory, not a security boundary.

Is robots.txt a security control?

No. robots.txt is a polite request, not a security enforcement. Malicious crawlers can ignore it. Never use it to hide sensitive pages — protect those with authentication instead. If a URL is linked from anywhere public, search engines may still index the URL (without crawling the content).

What is the difference between Allow and Disallow?

`Allow:` explicitly permits a path, `Disallow:` blocks it. Path matching uses a simple pattern language: `*` matches any sequence, `$` anchors the end. For example, `Disallow: /*?q=` blocks any URL containing `?q=`.

What does Crawl-delay do?

Crawl-delay asks the crawler to wait N seconds between requests. It is honored by some crawlers (Bingbot, Yandex) but ignored by Googlebot. Set it sparingly — most sites do not need it.

Do I need a Sitemap line?

A `Sitemap:` line tells crawlers where your XML sitemap lives. It is optional but recommended — it helps crawlers discover all your pages faster. Each sitemap URL goes on its own `Sitemap:` line.

Is there a daily limit?

No. Generate as many robots.txt files as you want. The tool is 100% free, no signup, no API calls — everything happens in your browser.

Ready to use the Robots.txt Generator?

Open the tool