Robots.txt Generator
Build a robots.txt file by filling in a few fields. The result updates as you type.
Start from:
Rule group 1
2 lines
User-agent: * Disallow:
Save it as robots.txt and upload it to the root of your site, so it loads at yoursite.com/robots.txt.
About this tool
A robots.txt file tells search engines and other crawlers which parts of your site they can visit. You'll need one when you launch a site, hide an admin area from Google, or stop AI companies from scraping your content. The syntax is simple but easy to get wrong, like a missing slash or a Disallow in the wrong group. This tool builds the file for you and shows the result live, so you can copy it or download it right away.
Presets for allow all, block all, WordPress, and Next.js
Separate rules for each bot, with Allow, Disallow, and crawl delay
One checkbox to block common AI crawlers like GPTBot and ClaudeBot
Add one or more sitemap URLs
Copy to clipboard or download as robots.txt
Runs entirely in your browser, nothing leaves your device