Robots.txt Generator – animated preview

Robots.txt Generator

Robots.txt जनरेटर

  • 100% free
  • No sign-up
  • Private – runs in your browser
  • Works on mobile
Start from:
robots.txt
Test a URL

Put the file at the root of your domain (yoursite.com/robots.txt). robots.txt only asks crawlers not to visit pages – it does not hide them. To keep a page out of Google, use a noindex tag or a password instead. Google ignores Crawl-delay.

How to use the Robots.txt Generator

Create a correct robots.txt in a few clicks – block admin or search pages, block AI training crawlers, add your sitemap – and test any URL against the rules like Googlebot.

  1. Pick a starting point (allow all, WordPress, online shop or staging) and edit the Disallow and Allow paths.
  2. Optionally block AI training crawlers and add your sitemap URL.
  3. Test a few URLs with the built-in tester, then download robots.txt and upload it to the root of your domain.
See the steps as a picture
How to use Robots.txt Generator: 1. Pick a starting point (allow all, WordPress, online shop or staging) and edit the Disallow and Allow paths. 2. Optionally block AI training crawlers and add your sitemap URL. 3. Test a few URLs with the built-in tester, then download robots.txt and upload it to the root of your domain.

Supported formats: TXT

What robots.txt does

robots.txt is a small text file at the root of a website (yoursite.com/robots.txt) that tells crawlers which parts of the site they may visit. Search engines such as Google and Bing follow it; the rules are standardised in RFC 9309.

Important: robots.txt controls crawling, not indexing. A blocked page can still appear in Google (without a description) if other sites link to it. To keep a page out of search results, let it be crawled and add a noindex meta tag – or protect it with a password.

The rules in plain words

LineMeaning
User-agent: *The rules below apply to every crawler
User-agent: GooglebotRules only for Google's crawler (it then ignores the * group)
Disallow: /admin/Do not visit anything that starts with /admin/
Allow: /admin/helpException inside a blocked folder
Disallow: (empty)Nothing is blocked
* and $* matches anything, $ marks the end: Disallow: /*.pdf$ blocks PDF files
Sitemap:Full URL of your sitemap

When several rules match a URL, the longest (most specific) rule wins; if an Allow and a Disallow are equally long, Allow wins. The tester on this page follows exactly these rules.

Blocking AI training crawlers

Tick Block AI training crawlers to add rules for the published crawler names GPTBot (OpenAI), ClaudeBot (Anthropic), CCBot (Common Crawl), Google-Extended (Google's AI models – normal Google Search is not affected), Applebot-Extended, Bytespider and meta-externalagent. Well-behaved crawlers respect these rules; robots.txt cannot force a crawler that ignores it.

Common mistakes

  • Disallow: / under User-agent: * on a live site blocks everything – use it only on staging sites.
  • Blocking CSS and JavaScript files stops Google from seeing your pages properly.
  • Paths are case-sensitive: /Admin and /admin are different.
  • Google ignores Crawl-delay (Bing respects it).
  • Keep the file small – Google reads only the first 500 KiB.

Private

The file is built in your browser – your list of pages is not uploaded or stored anywhere.

Frequently asked questions

Will robots.txt remove my page from Google?

No. It only stops crawling. Use a noindex tag (and allow crawling) or remove the page, then use the Removals tool in Search Console for urgent cases.

Does blocking GPTBot hurt my Google ranking?

No. GPTBot, ClaudeBot and Google-Extended are separate from Googlebot, which runs Google Search.

Where must robots.txt be placed?

At the root of each host: https://www.example.com/robots.txt. A file in a sub-folder is ignored, and subdomains need their own file.

Can I test my existing robots.txt?

Yes – paste it into the robots.txt box on the right and use Test a URL.