A tiny file with big consequences
robots.txt tells crawlers where they can go. One wrong line can hide your whole site from Google. It happens more than you'd think, usually after a staging file gets copied to production.
This tester takes your file, a URL and a user-agent, and says whether the URL is allowed. No guessing, no waiting for a crawl.
How matching works
Google picks the most specific rule, meaning the longest matching path. If Disallow: /shop/ and Allow: /shop/sale/ both match, the longer Allow wins. If two rules tie in length, Allow wins.
Wildcards help. The star matches any run of characters, and a dollar sign anchors the end of the URL. Disallow: /*.pdf$ blocks PDFs and nothing else.
The tool follows these rules and shows which line decided the result. That's the useful part. You see why, not just yes or no.
Disallow: / versus Disallow: /*
Both block everything for that agent in practice, but they read differently, and an empty Disallow allows everything. Mixing them up is a classic mistake. Test the exact lines you wrote.
Batch checks
Paste a list of URLs and test them all at once. Run your key templates: home, category, product, blog, search, login. Add a few that should be blocked, like admin paths. If any result surprises you, fix the file before deploying.
What robots.txt doesn't do
It stops crawling, not indexing. A blocked URL can still appear in results if other pages link to it, just without a description. To keep a page out of the index, use a noindex tag, and let crawlers see it.
If the file is missing, crawlers assume everything is open. Don't block CSS or JavaScript that pages need to render, since Google uses them to understand layout.
After every deploy
Make testing a habit. A stray Disallow: / on a live site is a classic disaster. Check the live file, not your local copy. Your input stays in your browser.