How do I create a robots.txt file?
Pick a preset or fill in the fields, and the file is generated as you type. The default example produces five lines: a User-agent: * group (all bots), Disallow rules for /admin/ and /login, an Allow rule for the root, and a Sitemap line pointing to https://example.com/sitemap.xml. That is three rules in one bot group. Copy the output or download it as robots.txt, then upload it to the root of your domain so it is reachable at https://yourdomain.com/robots.txt. The file must sit at the root; a robots.txt in a subfolder controls only that subfolder, and search engines only look for it at the root.
What do allow, disallow and crawl-delay mean?
Disallow tells a bot not to crawl matching paths: Disallow: /admin/ blocks that folder and everything under it. Allow carves out exceptions, and the more specific rule wins, so Allow: /wp-admin/admin-ajax.php inside a blocked /wp-admin/ still lets that one file be fetched, which WordPress needs. Crawl-delay asks a bot to wait that many seconds between requests; Bing and several other crawlers respect it, while Google ignores it entirely and manages crawl rate itself. Paths must start with a slash, and the generator warns about any that do not. A single Disallow: / blocks the whole site for that bot group, so the tool warns before you ship that by accident.
How do I block AI crawlers but keep search engines?
Use the "Block AI crawlers, allow search" preset. It creates a Disallow: / group for each of eight known AI crawlers: GPTBot (OpenAI), ClaudeBot (Anthropic), CCBot (Common Crawl), Google-Extended (Gemini training), Bytespider, Amazonbot, Applebot-Extended and Meta-ExternalAgent, then a final User-agent: * group allowing everything else, nine bot groups in total. Search crawlers like Googlebot and Bingbot fall under the wildcard group and keep crawling normally. The Sample button loads exactly this preset with a sitemap line. Blocking Google-Extended opts out of Gemini training use without affecting Google Search indexing, which is governed by Googlebot rules.
Where should the sitemap line go?
Anywhere in the file; the generator places sitemap URLs after the rule groups, one Sitemap: line per URL, which is the convention most sites follow. The sitemap must be a full absolute URL, not a path. Listing your sitemap in robots.txt helps every crawler discover it, including ones you have never submitted to. You can list several sitemaps, one per line, for example a main sitemap plus a news or image sitemap. The sitemap line is not part of any user-agent group, so it applies even to bots you have otherwise restricted, and it works even if your file is otherwise empty.
Does robots.txt protect private pages?
No, and this is the most common misunderstanding. Robots.txt is a polite request that well-behaved crawlers honor; it is not access control. Anyone can read your robots.txt, so listing /secret-admin/ actually advertises the path, and malicious bots ignore the file completely. Disallowed pages can also still appear in search results as bare URLs if other sites link to them, because blocking crawling is not the same as blocking indexing. For real privacy, use password protection or server rules; for keeping pages out of search results, use a noindex meta tag or header, which requires the page to remain crawlable so the tag can be seen.
Is it free and private?
Yes. The robots.txt generator is free, with no signup, no account and no limits. Your paths, sitemap URLs and rules never leave your browser; nothing is sent to a server, stored or logged. For site owners, SEOs and developers setting up a new domain, this page does the job in seconds.