Robots.txt Generator
The Robots.txt Generator builds a valid robots.txt file from simple allow and disallow choices, so you can tell search engine crawlers which parts of your site they may visit.
- 100% Free
- No Registration
- Works in Your Browser
This tool's workspace loads here.
How to Use
- Choose which user-agents (crawlers) the rules apply to.
- Add the paths you want to disallow or allow.
- Add your sitemap URL if you have one.
- Copy or download the robots.txt file and place it in your site's root.
About This Tool
The Robots.txt Generator builds a valid robots.txt file from simple allow and disallow choices, so you can tell search engine crawlers which parts of your site they may visit. Choose rules for all bots or specific ones, add your sitemap address, and copy or download the finished file. You then place it in your website's root folder yourself.
Frequently Asked Questions
Where does the robots.txt file go?
In the root of your domain, so it can be opened at yourdomain.com/robots.txt. The generator creates the file; uploading it is done through your hosting or site settings.
Does robots.txt remove pages already on Google?
No. It controls future crawling. Pages already indexed may need removal through your Search Console or a noindex tag instead.
Can I have different rules for different bots?
Yes. Add a separate block for a specific user-agent such as Googlebot with its own allow and disallow lines.