Typical site
- Input
- Disallow /admin/ and /cart/, allow everything else
- Output
- User-agent: *\nDisallow: /admin/\nDisallow: /cart/
Private areas are kept out of the index while the rest of the site stays crawlable.
A robots.txt file sits at the root of your domain and tells crawlers which parts of your site they may request. This generator builds one from simple rules, warns about the mistakes that accidentally block a whole site, and lets you test any path against the result before you publish.
Runs entirely in your browser — nothing you type is uploaded.
One absolute URL per line. The most useful line in the file.
No sitemap listed. A Sitemap: line is the most useful thing robots.txt can carry.
Blocked — Matched by Disallow: /admin/ in the * group.
User-agent: *
Disallow: /admin/
Disallow: /cart/Save this as robots.txt at the root of your domain, reachable at /robots.txt.
How to
Start with a rule for all crawlers, then add groups for specific bots such as Googlebot or GPTBot.
Disallow the paths crawlers should not request, such as /admin/ or /cart/. Paths are matched from the start of the URL.
Point crawlers at your sitemap with its full absolute URL. This is the single most useful line in the file.
Check a few paths in the tester, then save the file as robots.txt at the root of your domain.
Examples
Private areas are kept out of the index while the rest of the site stays crawlable.
A single slash blocks everything. It is the most common and most damaging robots.txt mistake, so the tool flags it.
Named groups let you keep search crawlers while excluding AI training bots. Each group applies only to the agent it names.
Why use it
A bare Disallow: / on all agents deindexes a site. The tool warns before you copy anything that would do that.
Enter any URL path and see which rule matches and whether it is allowed, using the same longest-match logic crawlers use.
One click adds correctly spelled groups for Googlebot, Bingbot, GPTBot, ClaudeBot and others — misspelled agent names are silently ignored by crawlers.
Rules are grouped per user-agent with proper ordering, which is where hand-written files most often go wrong.
Everything runs in your browser and no account is needed.
Good to know
Summary
FAQ
Discover