Robots.txt Generator
Generate a correct robots.txt for your website in seconds.
Runs in your browser. Nothing is uploaded Free, no sign-up Works on mobile
Paths to block (one per line)For example admin pages, cart, internal search results
Sitemap URL(s)
Crawl delay in seconds (optional)Google ignores this; Bing and others respect it
Generated code
User-agent: * Disallow: /admin/ Disallow: /cart Disallow: /checkout Disallow: /search? Sitemap: https://example.com/sitemap.xml
Upload robots.txt to the root of your site (example.com/robots.txt). robots.txt is not a security feature: blocked pages can still be visited and may be indexed if linked. Use noindex or passwords for private pages.
How to use Robots.txt Generator
- Choose whether crawling is allowed and list paths to block.
- Add your sitemap URL.
- Optionally block AI crawlers, then download robots.txt and upload it to your site’s root.
Frequently asked questions
Does robots.txt hide pages from Google?
It stops crawling, not indexing. A blocked page can still appear in search if other sites link to it. Use a noindex tag to keep a page out of results.
Can I block ChatGPT and other AI bots?
Yes. Tick the AI crawler option to add Disallow rules for GPTBot, ClaudeBot, Google-Extended, PerplexityBot, CCBot and others. Well-behaved bots respect it.
Related tools
All Web & SEO →- XML Sitemap Generator Build a sitemap.xml for a small website or landing pages without plugins or crawlers.
- Meta Tag Generator Create every meta tag a page needs for search results and social sharing, with live previews of how it will look.
- .htaccess Redirect Generator Create redirect rules for Apache web servers without memorising mod_rewrite syntax.
- UTM Link Builder Tag your links so you can see which campaign, post or ad brought each visitor.
- Schema Markup Generator Add structured data so search engines understand your business, products and content.
- Hreflang Generator Tell Google which language version of a page to show to which users, for example English, Hindi and Telugu versions.