Pick a platform preset to get a smart starting point instantly. You can fine-tune everything in the Advanced Builder.
/wp-admin/admin-ajax.php so live search and AJAX-powered features keep working for crawlers.
/ to block everything.
Add custom rules for specific crawlers. Rules here are merged into the final output alongside the global rules in Advanced Builder.
Googlebot) take priority over wildcard (*) rules. Among rules for the same bot, the longest matching path wins.
# Click "Generate robots.txt" in any tab to see your output here
robots.txt to your website root (same level as your homepage). Then paste the URL into Google Search Console → URL Inspection to verify Googlebot can access it correctly.
How This Robots.txt Generator Works
Everything runs in your browser. Nothing is sent to any server — your domain and rules stay private.
What Makes a Good Robots.txt File in 2026?
A robots.txt file is one of those things that's easy to set up and easy to get catastrophically wrong. At its best, it quietly saves your crawl budget and keeps bots focused on your most important pages. At its worst, a single mistyped line can block Googlebot from your entire site — and you might not notice for weeks.
A well-structured robots.txt does three things well. First, it protects internal pages that serve no purpose in search — admin areas, login pages, internal search result URLs, shopping cart pages, and duplicate parameter-based URLs that would just dilute your index. Second, it explicitly allows anything that Googlebot needs to render your pages correctly — CSS files, JavaScript bundles, web fonts, and image directories. Third, it points crawlers directly to your sitemap, which speeds up discovery of new and updated content.
What's changed in recent years is the rise of AI training bots. Crawlers like GPTBot (OpenAI), ClaudeBot (Anthropic), Google-Extended, and PerplexityBot now actively crawl the web to build training datasets. If you don't want your content used for AI training, robots.txt is the correct mechanism to opt out — and this generator includes a one-click toggle to block them all.
Crawl Budget: Why It Matters More Than You Think
Google allocates a limited number of crawls to each website based on its authority and server response times. If Googlebot wastes those crawls on admin pages, login flows, and URL parameter duplicates, it has fewer crawls left for your actual content. For large e-commerce sites or content-heavy sites, this is a real ranking factor — not a theoretical one.
Use the Disallow rules in this generator to block low-value URL patterns like /tag/, /search/, /?s=, and /page/ where they generate infinite or near-duplicate pages. This is especially important for WordPress sites running lots of taxonomy pages.
5 robots.txt Generation Mistakes That Kill Rankings
Sitemap: /sitemap.xml instead of the full https:// URL. The robots.txt specification requires an absolute URL. This generator always produces the correct absolute format.
/sitemap.xml) are technically invalid per the Robots Exclusion Protocol. Enter your full domain in the generator to get correct absolute sitemap references every time.
noindex tag on the page itself.
Robots.txt Directives — What Each One Does
Understanding each directive helps you generate rules that actually do what you intend, rather than guessing and hoping for the best.
* means all bots. Named agents like Googlebot override wildcard rules./search/* blocks all paths starting with /search/ regardless of what follows./*.pdf$ blocks only URLs ending in .pdf.Frequently Asked Questions About Generating robots.txt
/wp-admin/ while allowing /wp-admin/admin-ajax.php (needed for live search and AJAX), and blocks tag/search/author archive pages that commonly create duplicate content. Add your domain and sitemap URL, then download the file and upload it to your site root — replacing any existing robots.txt.https://yourdomain.com/robots.txt. Upload it via FTP, cPanel File Manager, or your hosting panel to the public_html folder (or whatever your web root is). For WordPress, this is the same folder that contains wp-config.php. After uploading, visit the URL in your browser to confirm it's live.Disallow: / rules for GPTBot (OpenAI), ClaudeBot (Anthropic), Google-Extended, PerplexityBot, FacebookBot, and Bytespider. These opt-outs are voluntary — compliant AI crawlers respect them, though not all do. This is currently the only legitimate mechanism to signal your content preference to AI companies./wp-admin/. It doesn't block SEO-wasteful URLs like search pages, tag archives, or URL parameters. For serious SEO work, generating a custom file with this tool and uploading a physical robots.txt gives you far more control. The physical file always takes precedence over WordPress's virtual one.