Free SEO tool
Generate your
robots.txt
Create rules for search engines and export your robots.txt in seconds.
- 100% free – no sign-up required
- Live preview with syntax highlighting
- Download or copy in one click
Build your Robots.txt
Set your rules, preview them live and download your robots.txt file.
Enter your domain to add your sitemap URL to robots.txt automatically.
No Allow rules. Click "+ Add" to allow specific paths.
No Disallow rules = allow all. Click "+ Add" to block paths.
Common questions
Everything you need to know about robots.txt
Robots.txt is a text file in the root of your website (e.g. example.com/robots.txt) that tells search engine crawlers which pages they may and may not crawl. It's part of the Robots Exclusion Protocol and is used by all major search engines, such as Google, Bing and Yahoo.
Yes, robots.txt can affect your SEO in several ways: - Positive: Saves "crawl budget" by preventing crawling of admin pages, duplicate content and irrelevant pages. - Negative: If you block important pages, they can still be indexed (without content) if they have backlinks, but show up poorly in search results. - Important: Robots.txt blocks crawling, not indexing. Use a noindex meta tag to prevent indexing completely. - Tip: Use Google Search Console to check that your most important pages aren't blocked.
1. Download the file with the "Download" button above 2. Connect to your web server via FTP/SFTP (e.g. FileZilla) 3. Upload the file to the root of your website (same folder as index.html/index.php) 4. Verify by visiting https://yourdomain.com/robots.txt WordPress users: Many SEO plugins (like Yoast or Rank Math) handle robots.txt for you in their settings.
User-agent: Specifies which bot the rules apply to. * means all bots. You can also name specific bots, such as Googlebot or Bingbot. Allow: Allows crawling of a specific path. Used to make exceptions to Disallow rules. Disallow: Blocks crawling of a specific path and everything below it. Empty Disallow: means "allow all". Order matters: Allow rules must come before Disallow rules for exceptions to work correctly.
No! Robots.txt is NOT a security measure. It's just a "polite request" to search engines. Anyone can still open the pages directly via their URL. To protect sensitive pages, use: - Password protection (htpasswd/authentication) - Access control via .htaccess or the server - Noindex meta tags to prevent indexing
What is robots.txt?
Robots.txt is a text file in the root of your website (e.g. example.com/robots.txt) that tells search engine crawlers which pages they may and may not crawl. It's part of the Robots Exclusion Protocol and is used by all major search engines, such as Google, Bing and Yahoo.
Does robots.txt affect my SEO?
Yes, robots.txt can affect your SEO in several ways: - Positive: Saves "crawl budget" by preventing crawling of admin pages, duplicate content and irrelevant pages. - Negative: If you block important pages, they can still be indexed (without content) if they have backlinks, but show up poorly in search results. - Important: Robots.txt blocks crawling, not indexing. Use a noindex meta tag to prevent indexing completely. - Tip: Use Google Search Console to check that your most important pages aren't blocked.
How do I upload the file to my website?
1. Download the file with the "Download" button above 2. Connect to your web server via FTP/SFTP (e.g. FileZilla) 3. Upload the file to the root of your website (same folder as index.html/index.php) 4. Verify by visiting https://yourdomain.com/robots.txt WordPress users: Many SEO plugins (like Yoast or Rank Math) handle robots.txt for you in their settings.
What do User-agent, Allow and Disallow mean?
User-agent: Specifies which bot the rules apply to. * means all bots. You can also name specific bots, such as Googlebot or Bingbot. Allow: Allows crawling of a specific path. Used to make exceptions to Disallow rules. Disallow: Blocks crawling of a specific path and everything below it. Empty Disallow: means "allow all". Order matters: Allow rules must come before Disallow rules for exceptions to work correctly.
Is robots.txt a security measure?
No! Robots.txt is NOT a security measure. It's just a "polite request" to search engines. Anyone can still open the pages directly via their URL. To protect sensitive pages, use: - Password protection (htpasswd/authentication) - Access control via .htaccess or the server - Noindex meta tags to prevent indexing
We're here if you have other questions.
More free tools
Useful tools for domains, DNS and website performance