Free robots.txt generator for any website
A correctly configured robots.txt file is the foundation of technical SEO. It controls how Googlebot, Bingbot, and AI crawlers like GPTBot and ClaudeBot spend their crawl budget on your site — which sections they read, which they skip, and where to find your sitemap. This robots.txt creator builds a syntactically valid file in seconds, with no login required.
How to use this robots.txt creator
- Choose a user-agent — select
*to apply rules to every crawler, or target a specific bot such as Googlebot, Bingbot, or GPTBot. - Add Allow and Disallow rules for the paths you want to open or block (for example
Disallow: /admin/). - Set an optional crawl-delay if you need to slow down aggressive bots on a small server.
- Add your sitemap URL so crawlers can discover every indexable page.
- Click Generate, copy the output, and save it as
robots.txtin the root of your domain.
Common robots.txt examples
Allow everything (the safest default for most sites):
User-agent: *
Disallow:
Block an admin area but allow the rest:
User-agent: *
Disallow: /admin/
Disallow: /cart/
Sitemap: https://example.com/sitemap.xml
Opt out of AI crawlers while keeping search engines:
User-agent: GPTBot
Disallow: /
User-agent: ClaudeBot
Disallow: /