Create a proper robots.txt file for your website without writing code from scratch.
This free tool helps you build the rules that tell search engine bots which parts of your site they can crawl and which areas they should skip. Fill in the options, generate the file, and upload it to your website’s root directory.
Robots.txt is a simple text file that sits in the root folder of your website (example: https://yoursite.com/robots.txt).
When search engines like Google visit your site, they look for this file to understand the crawling instructions provided for different bots.
You can use it to:
It does not hide pages from users and it is not a security tool. It only provides crawling instructions that compliant search engine bots may follow.
Not every small website needs a complex robots.txt, but it becomes useful when:
A well-written robots.txt file can help search engines focus their crawling on the areas of your website that you want them to access.

robots.txt.After uploading, open https://yourdomain.com/robots.txt in your browser and check that the file loads correctly. You can also use Google Search Console’s URL Inspection tool to check whether specific URLs can be accessed by Google. Remember that robots.txt controls crawling and does not directly remove a page from Google’s search results.
| Directive | What it does |
|---|---|
| User-agent | Specifies which bot the rule applies to. |
| Disallow | Blocks a page or folder from crawling. |
| Allow | Permits access to a page or path, which can be useful for exceptions. |
| Sitemap | Tells search engine bots where your XML sitemap is located. |
| Crawl-delay | Suggests a pause between crawler requests. Support can vary between search engines. |
Note
This generator creates a standard robots.txt file based on the options you select. Always review the final code carefully before publishing it. Incorrect rules can prevent search engines from accessing important content on your site.