Launch a new site
Publish a minimal robots.txt that declares the sitemap and lets everything be crawled.
Configure Allow and Disallow rules, sitemaps, host and crawl delay, then copy a robots.txt file ready to publish.
Use * to apply the rules to every crawler.
One path per line, for example /public/.
One path per line, for example /admin/.
One absolute URL per line.
Optional, in seconds. Not every search engine supports it.
Optional directive recognized mainly by some search engines.
This generator writes a robots.txt file from a few fields: target crawler, allowed and disallowed paths, crawl delay, sitemaps and preferred host. It offers ready-made presets, normalises paths and warns you before producing a rule that would block the whole site.
The file starts with User-agent, followed by the Allow lines and then the Disallow lines. A path entered without a leading slash gets one (admin/ becomes /admin/) and duplicates are removed.
The crawl delay is written only if it is zero or a positive number; sitemap URLs must be absolute http or https addresses, otherwise a warning appears.
The preferred host is reduced to its domain name (https://www.example.com/ becomes www.example.com) and added in a Host line.
Presets fill in the fields: Allow the whole site (Allow: /), Block the whole site (Disallow: /) or Block private areas (/admin/, /account/, /api/private/).
Or start from Custom to enter everything yourself.
* for all crawlers, or a name such as Googlebot or GPTBot.
One path per line in Allowed paths and Disallowed paths, then add the sitemap URLs.
Copy the generated file and place it at the root of the domain: https://example.com/robots.txt.
Publish a minimal robots.txt that declares the sitemap and lets everything be crawled.
Stop crawlers spending time on the admin area, customer account or internal search results.
Prepare a block for a specific crawler, for example to refuse crawling by an AI training bot.
Allow reopens the API documentation inside a disallowed directory: at Google, the most specific rule wins. The sitemap is declared at the end of the file.
Input
Preset: Block private areas
Target crawler: *
Allowed paths: /api/private/docs/
Disallowed paths: /admin/, /account/, /api/private/
Sitemap URLs: https://example.com/sitemap.xmlResult
Generated file:
User-agent: *
Allow: /api/private/docs/
Disallow: /admin/
Disallow: /account/
Disallow: /api/private/
Sitemap: https://example.com/sitemap.xmlOnly GPTBot gets Disallow: /; the tool warns that this crawler will not crawl any page. Other crawlers are not affected by this block.
Input
Target crawler: GPTBot
Disallowed paths: /Result
Warning: Disallow: / asks the targeted crawlers not to crawl any page.
User-agent: GPTBot
Disallow: /At the root of the host, exactly at /robots.txt. Each subdomain and protocol has its own: blog.example.com/robots.txt does not apply to example.com.
Under RFC 9309, which Google follows, the rule with the longest path wins; on a tie, Allow wins. That is how you reopen a subfolder inside a disallowed directory.
The tool generates a block for one crawler at a time. Generate one block per crawler and combine them in the same file, separated by a blank line.
Yes, the tool copies them as they are. Google understands them: /*.pdf$ blocks every URL ending in .pdf. Check that the other search engines you target support them too.
No. It is generated in your browser; uploading it to your site is up to you.
Related tools
Tools similar or complementary to this one.
Create an XML sitemap from a list of URLs.
Compare two sitemaps or URL lists and identify added and removed URLs.
Create SEO, Open Graph and Twitter/X tags for a web page.
Use robots.txt correctly, understand what it can and cannot block, and avoid confusing crawl control with deindexing.
Check metadata, canonical, robots, structured data, URL, internal links and images before a page goes live.
Understand crawling, indexing, canonicals, metadata, structured data, performance and internal linking without confusing optimization with ranking.
A practical workflow to review SEO changes before publishing: sitemap, link relationships, redirects, keyword usage and structured data.