Robots.txt Generator (Robot Text File Maker)
Create a correct robots.txt with rules per crawler, crawl-delay, sitemap links and a one-click preset to block AI crawlers.
Create a correct robots.txt with rules per crawler, crawl-delay, sitemap links and a one-click preset to block AI crawlers.
A robots.txt generator builds the plain text file that tells search engines and AI crawlers which parts of your site they may crawl. You set a User-agent, Allow and Disallow paths and your Sitemap URL, then upload the file as robots.txt to your domain root, such as example.com/robots.txt.
Add one group per crawler (the * group covers every bot), enter the paths to allow or disallow one per line, set an optional crawl-delay and paste your sitemap URL. The file is built as you type, and the tool warns you if a path does not start with a slash. Copy it or download it as robots.txt. Nothing leaves your browser.
Two presets save time: Block AI crawlers adds Disallow rules for GPTBot, ChatGPT-User, CCBot, Google-Extended, anthropic-ai, ClaudeBot, PerplexityBot and Bytespider, and Block all closes the whole site, which is useful for staging servers.
| Directive | What it does | Example |
|---|---|---|
| User-agent | Starts a group and names the crawler it applies to. * means all crawlers. | User-agent: Googlebot |
| Disallow | Blocks crawling of paths that start with this value. Empty means nothing is blocked. | Disallow: /admin/ |
| Allow | Re-opens a path inside a blocked folder. The longest matching rule wins. | Allow: /admin/help/ |
| Sitemap | Points crawlers to your XML sitemap. Full URL, can sit anywhere in the file. | Sitemap: https://example.com/sitemap.xml |
| Crawl-delay | Seconds to wait between requests. Google ignores it; Bing and Yandex respect it. | Crawl-delay: 10 |
Paths are case-sensitive, * matches any characters and $ marks the end of a URL, so Disallow: /*.pdf$ blocks every PDF.
User-agent: *
Disallow:
Sitemap: https://example.com/sitemap.xmlUser-agent: *
Disallow: /wp-admin/
Allow: /wp-admin/admin-ajax.php
Sitemap: https://example.com/wp-sitemap.xmlThis matches the virtual file WordPress serves by default. If an SEO plugin creates your sitemap, use its sitemap URL instead.
User-agent: *
Disallow: /private/
Disallow: /checkout/
Sitemap: https://example.com/sitemap.xmlUser-agent: GPTBot
Disallow: /
User-agent: CCBot
Disallow: /
User-agent: Google-Extended
Disallow: /
User-agent: *
Disallow:
Sitemap: https://example.com/sitemap.xmlGoogle-Extended only controls whether your content is used for Google's AI models. Blocking it does not affect Googlebot or your rankings. Respecting robots.txt is voluntary, so a badly behaved bot can still ignore it. More cases are in our robots.txt examples guide.
The Sitemap: line is the easiest way to tell every crawler where your sitemap lives, including engines where you never submitted it. It does not belong to any user-agent group, it needs the full absolute URL, and you can list several sitemaps or one sitemap index. If an SEO audit reports "sitemap.xml not indicated in robots.txt", adding this line fixes it. Need the sitemap itself? Build one with the XML Sitemap Generator, and see how to add a sitemap to robots.txt.
robots.txt, in lowercase, saved as plain UTF-8 text.https://example.com/robots.txt. A file in a subfolder is ignored, and each subdomain needs its own.Google reads only the first 500 KiB of the file, so keep it short. Do not use robots.txt to hide private pages; the file is public, and blocked URLs can still appear in search if other sites link to them.
Disallow: / live after launch. Staging sites often ship with the whole site blocked. Check the file on launch day.* rules. A crawler that finds its own named group follows only that group, so repeat any shared rules there.It is a tool that writes your robots.txt file for you, the plain text file that crawlers read before visiting your site. You choose the rules and it outputs correctly formatted lines you can copy or download.
Add a line such as Sitemap: https://example.com/sitemap.xml anywhere in the file. Use the full absolute URL, and add one line per sitemap if you have several.
Your robots.txt has no Sitemap line. Add one with the full URL of your sitemap or sitemap index, upload the file again and rerun the audit.
They should not contradict each other. Every URL in your sitemap should be crawlable, so never list a page in sitemap.xml that robots.txt blocks.
No. Google ignores Crawl-delay; Googlebot adjusts its crawl rate automatically. Bing and Yandex do read it.
No. Disallow stops crawling, but a blocked URL can still be indexed if other sites link to it. Use a noindex tag on a crawlable page, or password protection, to keep it out of search.
Click "Preset: block AI crawlers" to add Disallow rules for the major AI bots.
In the root of your domain, for example https://example.com/robots.txt.