Robots.txt Generator

Build a robots.txt file without touching code. Pick which bots to target, add Allow and Disallow rules and your sitemap, check the live preview, and download the finished file.

Free · no sign-up

Generator

Live preview


          

How it works

Choose a user-agent — Googlebot, GPTBot, Bingbot, or any bot on the list, plus a custom one if you need it. Add Allow and Disallow paths, drop in your sitemap URL, or start from a preset (Allow all, Block all, WordPress recommended) and tweak it from there. The live preview shows the exact file as you build it; copy it or download robots.txt and upload it to your site's root (yoursite.com/robots.txt). A few things robots.txt can and can't do: Google supports user-agent, allow, disallow, and sitemap directives. Crawl-delay is included here because some crawlers honor it, but Googlebot ignores it completely — it won't slow Google down. And robots.txt controls crawling, not indexing: a page you disallow can still get indexed if other pages link to it; use a noindex tag if you need to keep a page out of search results. This tool is free and runs in your browser — nothing you build here is saved on our end.

Frequently asked questions

Not by itself. robots.txt blocks crawling, not indexing. A disallowed page can still appear in search results if Google finds it another way (like an inbound link). Use a noindex meta tag to keep a page out of the index.
No. Googlebot ignores Crawl-delay entirely. Some other crawlers respect it, which is why it's still an option here, but don't rely on it to control Google's crawl rate.
user-agent, allow, disallow, and sitemap. Stick to these for rules aimed at Google; anything else may be ignored.
At the root of your domain, so it's reachable at yoursite.com/robots.txt. Subfolder paths like yoursite.com/blog/robots.txt won't be read by crawlers.

Show clients results with Ranki

Rank tracking, keyword research, and AI search visibility in one place.