Build a valid robots.txt file from Allow/Disallow rule groups, crawl-delay and sitemap URLs. Multiple user-agents supported. Copy and paste, entirely offline.
A robots.txt file is the first thing a well-behaved crawler reads before touching anything else on a domain, and its syntax is unforgiving: one Disallow: / left in from a staging environment quietly deindexes the whole site, and there is no warning when it happens. This tool builds the file from structured fields instead of raw text, so the output is always syntactically valid for whatever rules you actually intended.
Add one rule group per user-agent you need to target, list Allow and Disallow paths one per line, and optionally set a Crawl-delay and one or more Sitemap URLs. The output updates as you type and is ready to copy straight into a file named exactly robots.txt at your domain’s root.
Click Load Sample and the first rule group fills with user-agent * and 3 Disallow lines: /wp-admin/, /cart/, and /checkout/, plus a sitemap URL. The generated output is a single User-agent: * block with those 3 Disallow: lines, a blank line, then Sitemap: https://example.com/sitemap.xml — the exact shape most WordPress and e-commerce sites need out of the box. Pressing Load Sample again cycles to a group scoped to a single bot, Googlebot-Image, then to a group using wildcard query-string patterns (/*?*sort=) alongside Crawl-delay: 10.
wp-admin/ in the Disallow box outputs Disallow: /wp-admin/, since every real robots.txt path is relative to the domain root.User-agent: * block./sitemap.xml triggers “Sitemap URLs must be absolute (start with http:// or https://).” because the Sitemap directive has no domain context of its own to resolve against./robots.txt and read exactly which paths you consider sensitive enough to hide from crawlers.noindex meta tag or HTTP header, not robots.txt, to guarantee a page stays out of search results.User-agent: * Disallow: /wp-admin/ Disallow: /cart/ Disallow: /checkout/ Sitemap: https://example.com/sitemap.xml