Robots.txt Generator
Per-crawler Allow/Disallow rules and sitemap links, ready to paste
Directive semantics that trip people up
- Specificity wins — a longer matching Allow beats shorter Disallow within one group; the preview annotates which rule fires.
- Grouping — blank lines end a group; accidental mixing disables rules after it (validated here).
- Crawl-delay — respected by Bing/Yandex, ignored by Google (noted in output comment).
- Sitemap lines — absolute URLs only; multiples allowed and emitted correctly.
Rules expressed the way crawlers parse them
User-agent groups, allow/disallow ordering, crawl-delay and sitemap declaration — assembled from checkboxes with a live file preview.
Three starting presets
Allow-all, block-all, and WordPress presets populate the rule groups instantly, each with the correct User-agent and Allow or Disallow lines for the intent.
Per-crawler rule rows
Every User-agent gets its own editable rows of Allow and Disallow paths, and Sitemap lines are appended from a separate field so they never mix with rules.
File rebuilds as you edit
The file text rebuilds with every change in a monospace output box, so the final robots.txt content is visible before you copy or download it.
Frequently asked questions
What does an empty Disallow line mean?⌄
A bare "Disallow:" with nothing after it means "disallow nothing" — i.e. this crawler is allowed everywhere. That's what the Allow-all preset generates.
Does robots.txt actually stop pages from being indexed?⌄
Not reliably by itself — it only asks well-behaved crawlers not to fetch a path. A page can still get indexed (e.g. if linked from elsewhere) even if disallowed. To truly keep a page out of search results, use a noindex meta tag or HTTP header instead.
Is my content uploaded anywhere?⌄
The file is generated from your own selections entirely client-side. Download it and place it at your site root - the tool never sees your domain unless you type it.
Does robots.txt remove pages from Google?⌄
No — Disallow blocks crawling, not indexing. Blocked URLs can still appear as bare links. For true removal use noindex or the removals tool.
Related tools
What Is a Robots.txt Generator?
robots.txt is a plain-text file at the root of a website that tells search-engine crawlers and other bots which parts of the site they may fetch. A typical file contains rule groups — a User-agent line followed by Allow and Disallow paths — and often a pointer to the sitemap. Hand-writing it is simple but easy to get subtly wrong, such as shadowing an Allow rule with a Disallow rule. This generator assembles the file from editable rule rows and presets, giving site owners and SEO professionals a correct starting point every time. The generated file follows the widely recognized robots.txt syntax, so it works with Google, Bing and the major crawlers out of the box.
What the generator builds
- 🤖 Per-crawler rule groups, from a specific bot to the catch-all *
- 🚫 Disallow and ✅ Allow multiple paths per group
- ⏱️ Optional Crawl-delay line
- 🗺️ One or more Sitemap lines
- 🧩 Presets to start from: allow all, block all, WordPress defaults
- 📋 Copy the finished file or download it directly
When you would write one
- Blocking a staging or preview environment from search results
- Stopping a specific scraper from hammering your site
- Setting up crawl rules for a fresh WordPress install
- Directing crawlers to your sitemap after a redesign
The file is assembled entirely in your browser; nothing is uploaded. Two things to know: you must upload the finished file to your site's root and confirm it is reachable, and robots.txt is a request, not an enforcement — well-behaved crawlers honor it, but it cannot force a bot to stop.
Related tools
Meta Tags Generator
Title, description, keywords, canonical and robots meta tags with a live Google search preview
SERP Previewer
See exactly how your title and description look in Google results — with pixel-accurate truncation warnings.
UTM Link Generator
Build clean, correctly-encoded campaign links in seconds — with one-tap presets for Facebook Ads, Google Ads and more.