Robots.txt Generator
Create a valid robots.txt file with presets for allow all, block all, or basic WordPress — free, instant, no sign-up.
Build a correct robots.txt file for your site without memorizing the syntax. Start from a preset — allow everything, block everything, or a sensible WordPress default — then adjust the rules to fit your site.
How to Use Robots.txt Generator
- Pick a preset, or start from scratch.
- Adjust the Allow and Disallow rules as needed.
- Add your sitemap URL if you have one.
- Generate, then copy or download robots.txt and upload it to your site's root.
Key Features
- One-click presets: allow all, block all, basic WordPress
- Custom allow and disallow rules, one per line
- Optional sitemap URL and crawl-delay
- Runs entirely in your browser
Who It's Useful For
- Site owners setting up robots.txt for the first time
- Developers launching a new WordPress site
- Anyone who needs to block a staging site from being crawled
- SEOs auditing or rebuilding an existing robots.txt
Practical Examples
- Block a staging or development site from all crawlers
- Allow everything except admin and login pages on WordPress
- Point crawlers to your sitemap.xml
Tips for Better Results
- robots.txt controls crawling, not indexing — use a noindex meta tag to keep a page out of search results
- Always test rules on a staging copy before publishing to a live robots.txt
- List your sitemap URL so crawlers can find it quickly
FAQ
Will this guarantee pages are removed from Google?
No. robots.txt only controls crawling. To remove a page from search results, use a noindex meta tag or remove the page entirely.
Where do I put the file?
Upload it as robots.txt in your site's root directory, e.g. example.com/robots.txt.
Can one rule apply to only one search engine?
Yes, set the User-agent field to that crawler's name instead of *.
Related Tools & Guides
More SEO Tools tools
Keyword Density Checker
SEO ToolsAnalyze word count, unique words, keyword occurrences and density, plus top words and phrases — instantly, in your browser.
SERP Snippet Preview
SEO ToolsSee how your title, URL and meta description might look in Google search results, on desktop and mobile.
Open Graph Meta Tag Generator
SEO ToolsGenerate Open Graph and Twitter/X Card meta tags so your links look right when shared on social media.