Robots.txt Generator
Build a robots.txt file with sitemap and AI crawler rules. Free, private and instant.
How to use the Robots.txt Generator
- Enter your sitemap URL and list paths to block, one per line.
- Choose whether to allow, block or not mention AI crawlers.
- Copy the text into a file named robots.txt at the root of your site.
Example
Worked example (run through this tool)
- Input: Sitemap https://example.com/sitemap.xml, disallow /admin/ and /cart/, AI crawlers Allow
- Result: User-agent: * with Disallow lines for both paths, then Allow rules for GPTBot, OAI-SearchBot, ChatGPT-User, ClaudeBot and other AI crawlers, and the Sitemap line
Limitations
- robots.txt is a request, not security. Well-behaved crawlers follow it, but it does not hide pages and listing a path publicly shows where it is.
- Blocking a page in robots.txt can stop search engines reading its noindex tag, so use noindex for pages you want removed.
- Crawler names change, so review the list from time to time.
About this tool
Create a robots.txt that allows or blocks crawlers, lists disallowed paths and points to your sitemap. Optionally allow or block AI crawlers such as GPTBot and ClaudeBot.
Robots.txt Generator is part of ToolStack Hub's SEO & Marketing Tools. It runs entirely in your browser, which keeps your data private and makes results instant. There is nothing to install and no account to create. There is no usage limit.
Guides about this tool
Frequently asked questions
Is the Robots.txt Generator free?
Yes. Robots.txt Generator is completely free with no sign-up, limits or watermarks.
Is my data private when I use the Robots.txt Generator?
Yes. It runs in your browser, so your input is not uploaded to our servers.
Does it work on mobile?
Yes. ToolStack Hub tools work on phones, tablets and desktop browsers.
Keep going
Need this automated for your business?
Vantalume builds custom AI and web automation workflows so your team can stop doing repetitive work.