Skip to main content
L
Loopaloo
Buy Us a Coffee
All ToolsImage ProcessingAudio ProcessingVideo ProcessingDocument & TextPDF ToolsCSV & Data AnalysisConverters & EncodersWeb ToolsMath & ScienceGames
Guides & BlogAboutContact
Buy Us a Coffee
L
Loopaloo

Free online tools for developers, designers, and content creators. Your files are processed in your browser and are never uploaded - no accounts required. A few network utilities (like What's My IP and Currency Converter) call public APIs to do their job and say so on their pages.

support@loopaloo.com

Tool Categories

  • Image Tools
  • Audio Tools
  • Video Tools
  • Document & Text
  • PDF Tools
  • CSV & Data
  • Converters
  • Web Tools
  • Math & Science
  • Games

Company

  • About Us
  • Contact
  • Blog
  • FAQ

Legal

  • Privacy Policy
  • Terms of Service
  • Disclaimer

Support

Buy Us a Coffee

© 2026 Loopaloo. All rights reserved. Built with privacy in mind.

Privacy|Terms|Disclaimer
  1. Home
  2. Web Tools
  3. Robots.txt Generator
Add to favorites

Robots.txt Generator

Create a robots.txt with presets for WordPress, shops and AI crawlers, test any URL to see which rule wins, and check existing files.

Runs locally in your browserMore web toolsJump to full guide
Related readingRobots.txt and Sitemaps: Guiding Search Engines Through Your Website9 min

Initializing in your browser…

You might also like

Favicon Generator

Create a favicon from text, an emoji or an image and download favicon.ico, every PNG size, a web manifest and the HTML tags in one zip.

Meta Tag Generator

Generate SEO, Open Graph and X card meta tags with safe escaping, checks for missing properties and broken images, and title previews for six platforms.

SRI Hash Generator

Create the integrity attribute and a ready-to-paste script or link element for a CDN file, or check an existing attribute against the file.

Robots.txt Generator: a worked example

A WordPress site is not being crawled as expected, and someone suggests the rules are in the wrong order. You paste the live file in and test the URLs that matter.

The live robots.txt

User-agent: *
Disallow: /wp-admin/
Allow: /wp-admin/admin-ajax.php
Sitemap: /sitemap.xml
What Robots.txt Generator produces

What the tester and the checks say

Testing /wp-admin/admin-ajax.php as Googlebot
  Allowed
  Allow: /wp-admin/admin-ajax.php is the most specific match at
  24 octets. Order in the file makes no difference: the standard
  says the most specific match wins, not the first one.

  Every rule that matched, most specific first
  Allow: /wp-admin/admin-ajax.php   (24 octets, wins)
  Disallow: /wp-admin/              (10 octets)

Testing /wp-admin/options.php
  Blocked
  Disallow: /wp-admin/ is the most specific match at 10 octets.

[error]   Sitemap: /sitemap.xml is not a full URL
[warning] Disallow: /wp-admin/ publishes that path rather than protecting it

The order was never the problem: the Allow rule wins for admin-ajax.php because it is longer, 24 characters against 10, and swapping the two lines gives the same answer. Other admin pages stay blocked. The real fault is the Sitemap line: a robots.txt is fetched on its own, so crawlers cannot resolve /sitemap.xml and ignore it. Write it as https://example.com/sitemap.xml instead.

About the Robots.txt Generator

Create a robots.txt file that tells search engines and AI crawlers which parts of your site to crawl. Start from a preset for WordPress, online shops or blocking AI training bots, test any URL to see which rule wins and why, and check an existing file against the robots.txt standard.

Key features

  • Six presets, including blocking AI training crawlers
  • Groups that cover several crawlers with one rule set
  • URL tester that shows every matching rule and the winner
  • Checks against the RFC 9309 robots.txt standard
  • Full-URL sitemaps built from your site address
  • Check and test an existing robots.txt by pasting it
  • Optional Crawl-delay per group
  • Shareable link with your whole configuration

How to use

  1. 1Pick a preset, or build crawler groups with Allow and Disallow rules.
  2. 2Add your sitemap and your site's address so the Sitemap line is a full URL.
  3. 3Test URLs against the rules for any crawler and read which rule wins.
  4. 4Review the checks and fix anything flagged.
  5. 5Copy or download robots.txt and upload it to the root of your site.

Writing a robots.txt that does what you expect

What robots.txt does. It is a plain text file at the root of your site, such as example.com/robots.txt, that well-behaved crawlers read before crawling. It is organised in groups: one or more User-agent lines naming crawlers, followed by Allow and Disallow rules for paths. A Sitemap line points crawlers to your sitemap. The rules are defined by RFC 9309, the standard Google, Bing and others follow.

The most specific rule wins. Crawlers do not read rules top to bottom. For any URL, the matching rule with the longest path wins, so Disallow: /wp-admin/ with Allow: /wp-admin/admin-ajax.php blocks the admin area but allows that one file, whichever order you write them in. When an Allow and a Disallow match equally, the Allow wins. The URL tester shows every matching rule and which one decided, so there is no guessing.

Presets for common sites. Allow All, Disallow All, Standard SEO, WordPress, E-commerce (keeping carts, checkout and account pages out of search) and Block AI Crawlers, which disallows GPTBot, ClaudeBot, CCBot, Google-Extended and other AI training crawlers while leaving search engines alone. Groups can name several crawlers at once.

Checks that catch real mistakes. The tool flags a sitemap given as a path instead of a full URL, which crawlers drop; directives the standard does not include, such as Crawl-delay, which Google ignores; rules a crawler will skip; and paths that reveal private areas. Paste an existing robots.txt to run the same checks and tests on it. Your settings are kept in the page link for sharing.

What it cannot do. robots.txt is a request, not a lock: anyone can read it, and bad bots ignore it. Blocking a page from crawling does not keep it out of search results either, since it can still be listed by its URL. Use authentication for private content and a noindex meta tag for pages that must not appear in search.

Examples

  • A WordPress site

    Use the WordPress preset: wp-admin is blocked but admin-ajax.php, which themes need, stays crawlable.

  • Opting out of AI training

    Use Block AI Crawlers to disallow AI training bots while search engines keep crawling everything.

  • A staging site

    Use Disallow All on a staging copy, and protect it with a password too, since robots.txt is only a request.

Tips & best practices

  • Always give the Sitemap line as a full URL, including https://.
  • Do not block CSS and JavaScript files; search engines need them to render your pages.
  • Test a few important URLs after any change, especially pages you want indexed.
  • Keep secret areas behind a login rather than listing them in robots.txt.

Frequently asked questions

Where does robots.txt go?

At the root of your domain, so it is reachable at https://example.com/robots.txt. Each subdomain needs its own file.

Does the order of rules matter?

No. Crawlers use the most specific matching rule, the one with the longest path, whatever its position. When an Allow and a Disallow are equally specific, the Allow wins.

Will Disallow remove a page from Google?

Not necessarily. A blocked page can still appear in results if other sites link to it, just without a description. To keep a page out of search, allow crawling and add a noindex robots meta tag.

Is robots.txt a security measure?

No. It is public and only polite crawlers obey it. Listing a private path even advertises it. Protect private areas with authentication.

Does Google respect Crawl-delay?

No, Google ignores it. Bing reads it. Google adjusts its crawl rate automatically and through Search Console.

How do I block AI crawlers?

Disallow their user agents, such as GPTBot, ClaudeBot, CCBot and Google-Extended, as the Block AI Crawlers preset does. Like all robots.txt rules, this relies on the crawler choosing to comply.

Related tools and how they differ

  • Meta Tag Generator: Writes the robots meta tag that keeps a page out of search results, which robots.txt cannot do.
  • Open Graph Preview: Checks how pages look when shared, once crawlers can reach them.
  • URL Safety Analyzer: Reads a URL's parts, handy when writing path rules.

Further reading

  • Robots.txt and Sitemaps: Guiding Search Engines Through Your Website9 min read

Private by design

This runs as client-side JavaScript. Keys, tokens, payloads, and other inputs never leave your device.