Free robots.txt Tester — Check Any URL for Googlebot and AI Crawlers

Free robots.txt tester and validator: paste your file, test URLs for Googlebot, Bingbot and AI crawlers like GPTBot and ClaudeBot, and see the exact line that allows or blocks each one. Follows Google's matching rules, flags mistakes, compares two versions before you publish and shares results with a link. Runs in your browser.

Developer Tools Client-Side · Free · No sign-up

🤖 robots.txt

Browsers don't let one website read another site's files, so open your live robots.txt, copy it and paste it here. You can also drop the file onto the editor.

🔎 Test URLs

    Test your robots.txt the way Google reads it

    This free robots.txt tester shows you, line by line, which crawlers may visit which pages of your site. Paste your file, add a few URLs and see instantly whether Googlebot, Bingbot, GPTBot or any other crawler is allowed or blocked, and which rule decides it. It follows Google's published robots.txt rules, catches the mistakes that quietly hide pages from search, and runs entirely in your browser.

    Google removed its old robots.txt Tester from Search Console in late 2023. The robots.txt report that replaced it shows the file Google fetched, but you can't test a URL against a rule there, and it doesn't help with a draft you haven't published yet. Google's own help page points to third-party testers for exactly that. This tool fills the gap and adds what the old tester never had: every crawler side by side, AI crawlers, and a before-and-after comparison for changes.

    How to test a robots.txt file

    1. Add the file. Paste your robots.txt into the editor, drop the file onto it or load an example. To get your live file, type your domain and press Open live robots.txt, then copy and paste it.
    2. Add the URLs you care about. Full URLs or just paths, one per line: your home page, a product, a blog post, a search page, an image.
    3. Pick a crawler. Googlebot is selected first. Switch to Googlebot-Image, Bingbot, Applebot, an AI crawler or type any user-agent token.
    4. Read the verdict. Each URL shows Allowed or Blocked with the deciding line. Select a result to see every rule that matched and why one of them won, and the line lights up in the editor.
    5. Fix and retest. Results update as you type, so you can adjust a rule and watch the effect immediately.

    Built on Google's real matching rules

    A tester is only useful if it gives the same answer as the crawler. This one follows Google's robots.txt specification and the behavior of its open-source parser, including the cases most testers get wrong:

    • One group per crawler. A crawler uses only the most specific group that names it. If Googlebot has its own group, every rule under User-agent: * is ignored for Googlebot. The tool tells you which group each crawler follows.
    • Documented fallbacks. Googlebot-Image, Googlebot-Video and Googlebot-News follow the Googlebot group when they have none of their own, and Applebot does the same. AdsBot-Google and Mediapartners-Google ignore * completely.
    • Longest match wins. Rule order doesn't matter. The rule with the longest matching path decides, and when an Allow and a Disallow are equally long, the Allow wins.
    • Wildcards. * matches any run of characters and $ at the end means “end of the URL”, so /*.php$ blocks /page.php but not /page.php?id=1.
    • The details. Paths are case-sensitive, rules for the same crawler are merged, non-ASCII paths are compared in their percent-encoded form, /robots.txt itself is always allowed and Google stops reading after 500 KiB.

    Every crawler at a glance

    The All crawlers tab tests your whole URL list against Googlebot, Googlebot-Image, Bingbot, Applebot, AdsBot and the main AI crawlers at once, in one table. Add or remove crawlers with a click and select any cell to see the rule behind it. It's the quickest way to spot a page that is open to search engines but blocked for images, or blocked for ads by accident.

    Control AI crawlers with confidence

    AI companies use separate crawlers for different jobs, and the difference matters. Blocking a training crawler keeps your content out of future models; blocking an AI search crawler also removes you from AI answers and their links back to you. The AI crawlers tab shows, for any URL, which of these can visit:

    • Training: GPTBot, ClaudeBot, Google-Extended, Applebot-Extended, Meta-ExternalAgent, CCBot, Bytespider and Amazonbot.
    • AI search: OAI-SearchBot, Claude-SearchBot and PerplexityBot.
    • User fetchers: ChatGPT-User, Claude-User and Perplexity-User, which open a page when a person asks for it.

    One click adds ready-made rules to block AI training and keep AI search, block all AI crawlers or allow them all, and the tool warns you if an existing group would still override the new rules. Remember that robots.txt is a request: reputable crawlers respect it, but it can't lock anything.

    See what a change will do before you publish it

    A single character in robots.txt can hide a whole section of a site from Google. Under Compare versions, paste the edited file next to the current one and the tool lists every URL whose result changes, for every crawler you selected, such as “/search?q=shoes: blocked → allowed for Googlebot”. When you're happy, load the new version into the editor with one click.

    Finds the mistakes that cost traffic

    The Issues tab checks the file as you type and marks problem lines in the editor:

    • Rules placed before any User-agent line, which no crawler uses.
    • Paths without a leading slash and full URLs in Disallow, which never match.
    • Typos such as “Disalow” and missing colons that Google tolerates but other crawlers don't.
    • Crawl-delay (ignored by Google), Noindex (no longer supported) and other fields crawlers skip.
    • Blocked CSS or JavaScript, a whole-site Disallow: / and groups that silently override User-agent: *.
    • Relative sitemap URLs, HTML served instead of plain text, retired crawler names and files over the 500 KiB limit.

    Share results with your team

    Summary & export lists every group, the number of rules and your sitemaps. Copy a share link that opens the same file, URLs and crawler for a colleague or developer, download the cleaned-up robots.txt, or export all results as a CSV for a ticket or an audit. The link carries the data itself, so nothing is stored on a server.

    Common robots.txt examples

    GoalRules
    Allow everythingUser-agent: *
    Disallow:
    Block one folderUser-agent: *
    Disallow: /private/
    Block a folder but allow one file in itUser-agent: *
    Disallow: /wp-admin/
    Allow: /wp-admin/admin-ajax.php
    Block URLs with a parameterUser-agent: *
    Disallow: /*?sort=
    Block one file typeUser-agent: *
    Disallow: /*.pdf$
    Block AI training onlyUser-agent: GPTBot
    User-agent: ClaudeBot
    User-agent: Google-Extended
    Disallow: /

    Keep in mind that robots.txt controls crawling, not indexing. A blocked page can still appear in search results without a description if other sites link to it. To keep a page out of Google, allow crawling and add a noindex meta tag instead.

    Private by design

    Your file and URLs never leave your browser. Testing happens on your device, your last session is saved in this browser so you can continue later, and share links contain the data in the link itself rather than on a server. That makes it safe to test staging files and unreleased URLs.

    Frequently Asked Questions

    Is this the same as Google's old robots.txt Tester?

    It does the same job and more. Google removed the tester from Search Console in late 2023 and replaced it with a robots.txt report that only shows the file it fetched. Here you can test any URL against any crawler, including drafts you haven't published, and compare two versions of the file.

    Does it give the same results as Googlebot?

    It follows Google's published robots.txt specification and the behavior of Google's open-source parser: one group per crawler, merged groups, longest match wins, Allow wins ties, * and $ wildcards, percent-encoding and the 500 KiB limit. It was checked against every example in Google's documentation. For a final answer about a live page, Search Console's URL Inspection tool shows what Google actually did.

    Why can't the tool load my robots.txt directly?

    Browsers don't allow one website to read files from another site, and this tool runs entirely in your browser without a server in between. Type your domain, press Open live robots.txt, copy the file and paste it into the editor. That also means you can test drafts and staging files before they go live.

    Why does Googlebot ignore my User-agent: * rules?

    A crawler uses only the most specific group that names it. As soon as your file has a User-agent: Googlebot group, Googlebot follows that group alone and ignores everything under User-agent: *. Repeat any rules Googlebot should still follow inside its own group. The Issues tab points this out for you.

    Does the order of Allow and Disallow lines matter?

    Not for Google and other crawlers that follow the standard. The rule with the longest matching path wins, wherever it is in the group. If an Allow and a Disallow are equally long, the Allow wins. Select any result to see all matching rules and their lengths.

    How do * and $ work in robots.txt?

    * matches any sequence of characters, including none, and $ at the end of a rule means the URL must end there. Disallow: /*.pdf$ blocks /files/guide.pdf but not /files/guide.pdf?download=1. A $ anywhere else is an ordinary character, and a trailing * changes nothing.

    Which crawlers can I test?

    Googlebot and Google's other crawlers (Image, Video, News, Storebot, InspectionTool, GoogleOther, AdsBot and AdSense), Bingbot, Applebot, DuckDuckBot, YandexBot, Baiduspider and 14 AI crawlers from OpenAI, Anthropic, Perplexity, Google, Apple, Meta, Common Crawl, ByteDance and Amazon. Choose Custom user-agent to test any other crawler by its token.

    How do I block AI training without leaving AI search?

    Block the training crawlers (GPTBot, ClaudeBot, Google-Extended, Applebot-Extended, Meta-ExternalAgent, CCBot and others) and leave OAI-SearchBot, Claude-SearchBot and PerplexityBot allowed. In the AI crawlers tab, Block AI training, keep AI search adds those rules for you. Blocking Google-Extended doesn't affect Google Search.

    Will blocking a page in robots.txt remove it from Google?

    No. robots.txt controls crawling, not indexing. A blocked URL can still show up in results, usually without a description, if other pages link to it. To keep a page out of search results, let Google crawl it and use a noindex meta tag or X-Robots-Tag header.

    Why is AdsBot-Google allowed even though I disallowed everything?

    AdsBot-Google, AdsBot-Google-Mobile and Mediapartners-Google ignore the User-agent: * group by design. To control them, name them in their own group. The tool shows this when you pick one of them.

    Does Google support Crawl-delay or Noindex in robots.txt?

    No. Google only reads User-agent, Allow, Disallow and Sitemap. Bing and Yandex use Crawl-delay; Noindex in robots.txt hasn't worked at Google since 2019. The Issues tab flags both.

    How do I check that an edit won't break anything?

    Open Compare versions, paste the edited file next to the current one, and the tool lists every tested URL whose result changes for each selected crawler. If the list matches what you intended, load the new version into the editor and publish it.

    Is my robots.txt uploaded anywhere?

    No. Everything runs in your browser. The file and URLs are saved only in this browser so you can continue later. A share link carries the data inside the link itself, so nothing is stored on a server.

    Where must the robots.txt file be?

    At the root of each host, for example https://www.example.com/robots.txt. It applies only to that exact host, protocol and port, so subdomains such as shop.example.com need their own file, and Google ignores robots.txt files in subfolders.

    🔄 Changelog

    v1.0 (November 2026) - First release: robots.txt tester that follows Google's specification (groups, fallbacks, longest match, wildcards, percent-encoding, 500 KiB limit) - Editor with syntax highlighting, line markers and live validation - Test many URLs at once with the deciding rule and a full explanation - All crawlers table with Google, Bing, Apple, other search engines and 14 AI crawlers - AI crawler report with one-click rules for training and AI search - Compare two versions before publishing, share links, CSV export

    See all Developer Tools →

    Rate this tool

    No ratings yet — be the first.

    Click a star to rate this tool.

    Was this tool helpful?

    Comments

    No comments yet. Be the first to share your thoughts!

    Leave a Comment

    Share this tool

    📚 Related Articles

    Stay Updated

    Subscribe to our newsletter and get notified when we add new tools.