Robots.txt Tester (Paste)

Paste robots.txt rules and test your URLs — Allowed or Blocked, instantly.

Processed locally — files never leave your device
Works offline once loaded Uploaded: 0 bytes

A single wrong line in robots.txt can hide your whole site from Google, and a missing line can let crawlers wander through your admin area. The only safe way to know is to test real URLs against the real rules before the file goes live.

Paste your robots.txt file and the URLs you care about, and this tester shows Allowed or Blocked for each one, with the rule that matched. Pair it with the Robots.txt Generator to build a file first, and the XML Sitemap Validator (Paste) to check the sitemap it points to.

How to use

  1. Paste your robots.txt file into the first box, exactly as it will appear on your server.
  2. Enter the URLs to test, one per line, including the ones you expect to be blocked.
  3. Choose which user-agent to test as, or leave the default star for all crawlers.
  4. Click Test URLs and read Allowed or Blocked next to each URL, with the matching rule shown.

Why use Toolsvine

Server-side testers make you hand over your domain and wait for a crawl. This tester runs the matching rules in your browser, so you can check a file that does not exist yet, test a draft before publishing, or check a competitor's public file without any account or upload. The wildcard and end-of-line matching follows the standard every major crawler uses.

How does robots.txt matching actually work?

A crawler uses the group for its user-agent, or the star group if none matches, and compares the URL path against every rule in that group. The rule that matches the longest path wins, so a specific Allow can beat a general Disallow. When two rules match the same length, Allow wins over Disallow, how the admin-ajax exception works.

Rules support two wildcards: the star matches any sequence of characters, and the dollar sign anchors a rule to the end of the path, so Disallow: /*.pdf$ blocks every PDF. A path without a wildcard is a prefix match, so Disallow: /private blocks /private-file.html as well as /private/. That prefix behaviour surprises a lot of people and causes most accidental blocks.

Which user-agent group applies to a given crawler?

A crawler reads its most specific group. Googlebot looks for a Googlebot group first and falls back to the star group otherwise, and Bingbot does the same for its own name. Groups are case-insensitive, and the first matching group wins, so a Googlebot group earlier in the file is the one that counts, even if a star group follows.

That is why testing with the right user-agent matters: a URL that is allowed for the star group can still be blocked for Googlebot if a Googlebot group exists with its own rules. This tester lets you pick the agent before you run the check, so you test the same decision the crawler will actually make.

Worked example: testing the Lone Star Books file

Lone Star Books in Austin uses the file from the generator example: a star group that disallows /wp-admin/, /search?, /cart/ and /checkout/, with an Allow for /wp-admin/admin-ajax.php and a sitemap line. The table shows what this tester reports for five typical URLs against that file.

Test URLResultMatching rule
/books/the-great-gatsbyAllowedNo rule matches
/wp-admin/BlockedDisallow: /wp-admin/
/wp-admin/admin-ajax.phpAllowedAllow: /wp-admin/admin-ajax.php
/search?q=poetryBlockedDisallow: /search?
/checkout/paymentBlockedDisallow: /checkout/

The admin-ajax row is the instructive one: the Allow rule is longer than the Disallow, so it wins, and the file keeps working while the admin area stays blocked. Paste the same file and the same five URLs above to see all five results match.

Robots.txt tester worked example for Lone Star Books showing allowed and blocked URLs
Worked example: five URLs tested — two allowed, three blocked, each with its matching rule.

What mistakes should I avoid when testing?

The most common mistake is testing only the homepage and assuming the rest is fine. Test the blocked paths you care about, the exceptions that should stay open, and a few ordinary pages, because a single greedy rule can block far more than its author intended. Pay special attention to rules without a trailing slash.

Also remember that the tester checks crawling, not indexing. A blocked page can still appear in search results if it is linked elsewhere, and an allowed page is not guaranteed to rank. Use this tester to protect the crawl, and a noindex tag to control the index.

Frequently asked questions

Why is a URL blocked when no rule seems to match it?

Rules match by prefix, so Disallow: /private blocks every path that starts with those eight characters, including /private-file.html and /privateers. Wildcards widen this further: Disallow: /*.pdf$ blocks every PDF on the site. Look for the longest matching rule, because that is the one the crawler applies, and shorten or anchor the rule if it catches too much.

What happens if a URL matches both an Allow and a Disallow?

The longest matching rule wins, regardless of its type. An Allow for /wp-admin/admin-ajax.php beats a Disallow for /wp-admin/ because it is longer and more specific. If both rules are exactly the same length, Allow wins. This is the standard behaviour for Googlebot and Bingbot, and the tester applies it to every URL.

Do I need to test with Googlebot specifically?

Yes, if your file has a Googlebot group. Googlebot reads its own group first and only uses the star group as a fallback, so a test against the star group can give the wrong answer for Google. Pick Googlebot in the tester whenever a Googlebot section exists in the file, then repeat the test for the star group if you care about other crawlers too.

Can robots.txt block a page that is already indexed?

Blocking the crawl does not remove the page from the index, and it can actually freeze it there, because Google can no longer visit the page to see a noindex tag. To remove a page, leave it crawlable, add noindex, and wait for the next crawl. Only add a robots.txt disallow after the page has dropped out of the index.

Why does my file work in the tester but not in Google Search Console?

Check that the live file is identical to the one you tested, including case, trailing slashes and the user-agent group order, and that it really sits at yourdomain.com/robots.txt. Search Console caches the file for up to a day, so a fresh edit takes time to show, and a cached redirect or old file at the server can quietly serve different rules.