Robots.txt Generator & Tester
Build a robots.txt file and test which URLs it blocks.
Loading tool…
Runs entirely in your browser — nothing you enter is uploaded or stored on a server.
How to use it
Create robots.txt rules for all crawlers or specific bots such as Googlebot and AI crawlers, add your sitemap, and test any path against the rules to see whether it is allowed — using Google's longest-match logic.
- Start from a preset or add a group per user agent.
- Add allow and disallow paths and your sitemap URL.
- Test a URL path, then copy or download robots.txt.
DevelopersMarketers
Questions
Does disallow remove a page from Google?
No. It stops crawling, not indexing — a blocked page can still appear if other sites link to it. Use a noindex tag on a crawlable page to keep it out.
Which rule wins when allow and disallow both match?
Google uses the most specific (longest) matching rule. If they are the same length, allow wins.
Can I block AI crawlers?
Well-behaved ones such as GPTBot, ClaudeBot, Google-Extended and CCBot respect robots.txt. The AI preset adds a disallow group for each.