SEO & Marketing Tools
Robots.txt Generator
Robots.txt Generator is part of Toolspire and is ready as soon as this page loads. Build a correct robots.txt in a minute — keep private paths out of search, choose which AI and SEO crawlers may visit, add your sitemap — then check any robots.txt and test URLs the way Googlebot reads them.
On this page
What you can do here
Correct by construction
Groups, paths and sitemap lines are written the way Google, Bing and AI crawlers expect, with full sitemap URLs.
AI crawler control
Opt out of AI training without disappearing from ChatGPT, Claude or Perplexity search answers — or block AI completely.
Smart presets
WordPress, online shop, staging and AI presets give a sensible starting point in one click.
Validator with line numbers
Finds the mistakes that silently break robots.txt — and jumps to the line.
URL tester
See which crawlers may fetch a page and which rule decides, before you upload the file.
Check any live site
Load a website’s robots.txt to audit it, or to start editing your own.
The sequence
How to create a robots.txt file
- 1
Pick a starting point
Choose a preset such as WordPress or Block AI training, or start from Allow everything.
- 2
Add your rules
List paths to keep out of search (like /admin/), allow or block specific crawlers, and add your sitemap URL.
- 3
Test it
Click Test a URL against this file to check important pages are still crawlable.
- 4
Upload
Download robots.txt and upload it to your site’s root so it opens at example.com/robots.txt.
Worth knowing
- Robots.txt Generator on Toolspire: generates robots.txt from simple choices: default access, paths to block with exceptions, an optional Crawl-delay and your sitemap URLs.
- Lets you allow or block 26 named crawlers in four groups — search engines, AI search assistants (OAI-SearchBot, Claude-SearchBot, PerplexityBot), AI training bots (GPTBot, ClaudeBot, Google-Extended, CCBot …) and SEO crawlers (AhrefsBot, SemrushBot …).
- Presets for WordPress, online shops, staging sites, and blocking AI training while staying in search and AI answers.
- Validates any robots.txt with line numbers: rules outside a group, unsupported noindex, misspellings, relative sitemaps, blocked CSS and JavaScript, and Google’s 500 KiB limit.
- Tests a URL against every crawler using Google’s matching rules (RFC 9309): the most specific user-agent group, the longest matching path, Allow winning ties — and shows the line that decided.
- Loads a site’s live robots.txt for checking — directly from your browser when the site allows it, otherwise through Jina Reader. Building and testing happen on your device.
robots.txt rules at a glance
| Line | Meaning | Example |
|---|---|---|
| User-agent | Which crawler the following rules are for; * means all | User-agent: GPTBot |
| Disallow | Paths the crawler must not fetch | Disallow: /admin/ |
| Allow | An exception inside a disallowed path | Allow: /admin/help/ |
| * | Matches any characters | Disallow: /*?sort= |
| $ | Marks the end of the URL | Disallow: /*.pdf$ |
| Sitemap | Full URL of a sitemap, anywhere in the file | Sitemap: https://example.com/sitemap.xml |
What robots.txt can and can’t do
robots.txt controls crawling, not indexing. A blocked page can still appear in Google as a bare link if other sites link to it, and Google can’t see a noindex tag on a page it isn’t allowed to fetch. To keep a page out of search results, allow crawling and add <meta name="robots" content="noindex"> instead.
It is also public and voluntary: well-behaved crawlers such as Googlebot, Bingbot, GPTBot and ClaudeBot obey it, but it is not access control. Never list secret paths in it, and protect private areas with a login.
FAQ
Questions about Robots.txt Generator
Where does Robots.txt Generator run?
Where do I put robots.txt?
How do I block ChatGPT and other AI bots?
Will blocking Google-Extended remove my site from Google Search?
Does Google follow Crawl-delay?
Why does the validator say noindex isn’t supported?
Is blocking CSS and JavaScript a problem?
Keep going
Related tools
Last updated Report a problem or suggest a feature