Robots.txt Generator
Easily create your robots.txt file with live preview and smart presets.
Configuration
User-Agents
Sitemap
Host (optional)
Quick Presets
Live Preview
# robots.txt
Your data stays on your device. Nothing is sent to our servers.
What is robots.txt?
The robots.txt file is a text file placed at the root of your website that tells web crawlers (like Googlebot) which pages they can or cannot visit. It's an essential element of technical SEO that allows you to control how your site is indexed.
Features
Precise Control
Fine-tune access for different bots to your pages and directories.
Live Preview
Instantly visualize the generated robots.txt file with syntax highlighting.
Presets
Quickly apply common configurations with a single click.
100% Private
All processing is done locally. No data is sent to the server.
How to use?
Configure rules
Select user-agents and define which paths to allow or block.
Add your sitemap
Enter your XML sitemap URL to help with indexing.
Download the file
Copy or download the file and place it at your site's root.
Robots.txt Syntax
User-agent: *
Targets all bots or a specific one
Disallow: /path/
Blocks access to the specified path
Allow: /path/
Allows access (overrides Disallow)
Sitemap: url
Indicates the sitemap location
Frequently Asked Questions
Where should I place the robots.txt file?
The robots.txt file must be placed at your domain's root, accessible at https://yoursite.com/robots.txt. It won't work if placed in a subdirectory.
Do bots always respect robots.txt?
Legitimate bots like Googlebot and Bingbot respect robots.txt. However, malicious bots may ignore it. For real protection, use authentication or server rules.
What's the difference between Allow and Disallow?
Disallow blocks access to a path, while Allow explicitly permits it. Allow is useful for creating exceptions within a broader Disallow rule. More specific rules take precedence.
How do I block AI bots like GPTBot?
Use our "Block AI bots" preset or manually add User-agent groups for GPTBot, Claude-Web, and other AI bots with Disallow: /. Note that some bots may not respect these directives.
Does robots.txt affect my SEO?
Yes, because it controls which pages are crawled and potentially indexed. Blocking important pages can hurt your SEO. Use it to exclude pages with no value (admin, internal search results, etc.).