Robots.txt Generator
Create a valid robots.txt with a visual editor and live preview. This free robots.txt generator handles crawler rules, AI-bot access and your sitemap — and everything runs in your browser.
Start from a preset
Crawler rules
Seconds between requests. Google ignores Crawl-delay; Bing and Yandex respect it.
AI crawlers
Choose one mode, then pick the bots. Block to keep your content out of AI training and answers (IP protection), or allow to be quotable in AI answers (AEO visibility).
Custom / advanced directives
Anything you paste here is added verbatim, including comment lines starting with #. Use it for directives the form does not cover.
Live preview
User-agent: *
Disallow:Already have a robots.txt live? Test it with the Robots.txt Tester →
robots.txt controls crawling, not indexing
A common misconception is that Disallow removes a page from Google. It does not. robots.txt only asks crawlers not to fetch a URL — but a blocked URL can still be indexed if other pages link to it, usually shown without a description because the crawler never read it.
To keep a page out of the index, let it be crawled and add a noindex meta tag (or an X-Robots-Tag header) instead. Blocking it in robots.txt actually prevents Google from seeing that noindex, so the two techniques should not be combined on the same page.
Where the file goes and how paths work
The file must be named robots.txt and live at the root of your domain — example.com/robots.txt, not in a subfolder. Each set of rules starts with a User-agent line, followed by Disallow and Allow paths. Paths are case-sensitive: /Folder/ and /folder/ are different.
Do not block your CSS or JavaScript: Google renders pages like a browser and needs those files to judge layout and content. Keep robots.txt for genuinely private or low-value areas, and remember it is a public file anyone can read at your-domain.com/robots.txt.
For the full specification, see Google's introduction to robots.txt: Google Search Central – robots.txt intro.
Frequently asked questions
What is a robots.txt file?
Does robots.txt stop a page from being indexed?
What is the difference between Disallow and noindex?
Should I block or allow AI crawlers?
What is Crawl-delay and does Google respect it?
Where does the robots.txt file have to be?
Should I block CSS or JavaScript?
What is the difference between robots.txt and an XML sitemap?
Related tools
Robots.txt Tester
Check and validate a robots.txt: test URL access per crawler, AI-bot status, syntax warnings. Free.
AI Search Readiness Checker
Score how ready your site is for ChatGPT, Perplexity and AI Overviews.
llms.txt Generator
Generate a ready-to-use llms.txt file for your website from any URL.
SERP Snippet Preview
Preview your Google snippet and check title & description pixel width.
Schema Markup Validator
Validate a live URL or JSON-LD code: SEO score, errors, warnings and rich-results readiness.
IBAN Validator
Check whether an IBAN is valid, instantly and for free.
