Free Robots.txt Generator
Create a custom robots.txt file to manage how supported web crawlers access your website. Choose a preset or build your own crawler rules, add your XML sitemap, and download the result.
Configure crawl rules
Presets replace the rule groups below. Review them before publishing.
Use full HTTP or HTTPS URLs of actual sitemap files.
Your entries stay in your browser. No server or API is used.
Generated robots.txt
Live preview updates as you edit. Check your rules before copying or downloading.
How to use your robots.txt file
Implementation
- Review and back up any existing robots.txt file.
- Download the generated file and publish it at your website origin's root, for example https://example.com/robots.txt.
- Check that the file is publicly accessible and returns HTTP 200.
- Review Google Search Console's robots.txt report and inspect important URLs after changes.
What the rules mean
- User-agent: the crawler the group applies to. Use * for a default group.
- Disallow: path that should not be crawled. A blank Disallow blocks nothing.
- Allow: an exception or permitted path. For Google, the most specific matching path wins; equally specific Allow wins.
- Sitemap: full URL of a sitemap. It applies across groups.
Crawler-specific groups can override the default group, so repeat any restrictions that must also apply to those crawlers. The generator checks basic input syntax, not the behaviour of every crawler or your actual website. Not all crawlers follow robots.txt.
Official guidance: Google robots.txt introduction · Robots.txt specification. More tools: WebHill Local SEO Toolkit.