A live read of the file every crawler checks first
Most site owners set up a robots.txt file once, paste in a few rules from a forum answer, and never look at it again. That works until the day a deploy copies the staging file to production, a plugin rewrites the rules, or a new AI crawler you meant to allow is caught by an old wildcard. This robots.txt tester, also called a robots.txt checker or validator, fetches the live robots.txt for the domain you enter, straight from the origin with no cache, and runs the URL you entered through every rule for a long list of real crawlers.
You get two tables. The first covers search engines: Googlebot, Googlebot-Image, Bingbot, DuckDuckBot, YandexBot, Baiduspider and Applebot. The second covers AI crawlers, including GPTBot, OAI-SearchBot, ChatGPT-User, ClaudeBot, Claude-SearchBot, PerplexityBot, Google-Extended, Applebot-Extended, Meta-ExternalAgent, Bytespider, Amazonbot and CCBot. For each one you see whether it may fetch the exact URL you tested, plus the Sitemap lines declared in the file and a list of syntax problems.
Crawl control, not index control
Robots.txt is a plain text file at the root of a host, at yoursite.com/robots.txt. It is built from groups: one or more User-agent lines naming crawlers, followed by Allow and Disallow rules for those crawlers. Sitemap lines can sit anywhere in the file and apply to everyone. Since 2022 the format has been a formal standard, RFC 9309, which is the behaviour this tool follows.
The part that trips people up is that robots.txt is a request about fetching, not a switch for search results. A disallowed URL can still be indexed if other pages link to it, and Google will show it with no description because it was never allowed to read the page. If you need a page out of results, use a noindex in the page or in the headers and leave the page crawlable so the noindex can be seen. Our indexability checker confirms that side of the job.
Field names such as User-agent and Disallow are not case sensitive, and neither are crawler names. Path values are. Disallow: /Admin does not block /admin, which is a common reason a rule silently fails to match.
What the syntax report flags
Alongside the bot tables, the tool lints the file line by line and points to the line number of each problem. It flags a User-agent: * group with Disallow: / as critical, because that blocks every crawler without its own group from the whole site. It warns about lines with no colon, misspelled or unknown directives, Allow or Disallow rules that appear before any User-agent line (crawlers ignore them), paths that do not start with a slash, Sitemap lines that are not full URLs, a file with no User-agent at all, and files over 500 KiB, the most Google reads.
It also explains directives that look valid but do nothing for Google. Noindex: inside robots.txt has not been supported by Google since 2019. Crawl-delay is ignored by Googlebot, though Bing and Yandex respect it. Host: is a Yandex-only directive. And if there is no Sitemap line at all, you get a nudge to add one.
A sample file and how the tester reads it
Here is a common pattern for a site that wants full search visibility, wants to stay in ChatGPT search answers, but does not want its pages used for OpenAI model training:
# Search engines: crawl everything except internal search and carts
User-agent: *
Disallow: /search
Disallow: /cart/
Allow: /
# OpenAI training crawler: opt out of model training
User-agent: GPTBot
Disallow: /
# ChatGPT search results: stay visible
User-agent: OAI-SearchBot
Allow: /
Sitemap: https://www.example.com/sitemap.xmlTest a blog URL against this file and every search engine shows as allowed, GPTBot shows as blocked, and OAI-SearchBot shows as allowed. Test /search?q=shoes and every crawler that falls back to the wildcard group is blocked. GPTBot and OAI-SearchBot each have their own group, so they ignore the wildcard rules entirely; that is how the standard works, and it is why a named group needs to repeat any shared rules you still want applied.
AI crawlers: training bots versus answer bots
Robots.txt is now also where you decide how AI companies may use your pages, and the bots split into two jobs. Training crawlers collect text for future models: GPTBot (OpenAI), ClaudeBot (Anthropic), CCBot (Common Crawl), Bytespider (ByteDance) and Meta-ExternalAgent. Search and answer crawlers fetch pages to cite in live answers: OAI-SearchBot for ChatGPT search, Claude-SearchBot, and PerplexityBot. User-triggered fetchers such as ChatGPT-User and Perplexity-User visit a page when a person asks the assistant to open it.
Two tokens are often misunderstood. Google-Extended is a robots.txt product token only, not a separate crawler. Blocking it tells Google not to use your content for Gemini model training and grounding, but it has no effect on Google Search rankings, indexing or AI Overviews, which rely on normal Googlebot. Applebot-Extended works the same way for Apple's AI training. Blocking GPTBot does not remove you from ChatGPT search; that depends on OAI-SearchBot. For a focused view of just the AI side, use the AI Bot Robots Checker.
Status codes that change the verdict
What the server returns for /robots.txt matters as much as the rules inside it. A 404 or other 4xx means there is no file, and crawlers treat the whole site as allowed, which is usually fine. A 5xx server error is different: Google treats it as a full disallow until the file recovers, so the tester reports every crawler as blocked in that case rather than pretending all is well.
Some single-page apps answer /robots.txt with their HTML homepage. That is not a robots file, and the tester treats it as missing. Subdomains are another blind spot: blog.yoursite.com and shop.yoursite.com each need their own robots.txt at their own root, and rules on the main domain do nothing for them. Test every hostname you actually serve.
Mistakes worth catching before they ship
The classic disaster is a staging file that reads User-agent: * and Disallow: / reaching production. Pages keep loading for visitors, but crawlers stop fetching them, and over the following weeks rankings and snippets degrade. A subtler problem is blocking CSS or JavaScript folders. Google renders pages like a browser, and has asked sites not to block these files since 2014, because a page it cannot render properly is harder to assess.
Another frequent error is using robots.txt to hide sensitive URLs. The file is public, so Disallow: /private-reports tells anyone where to look. Use authentication for anything private. Wildcards cause the rest: Disallow: /*? blocks every URL with a query string, including filtered pages you may want crawled. To check a tricky path, enter that exact URL in the tester above and see whether each search bot is allowed to crawl it.
Editing robots.txt on common platforms
WordPress
WordPress serves a virtual robots.txt until you add a real file. Yoast SEO (Tools, File editor) and Rank Math (General Settings, Edit robots.txt) both let you edit it from the dashboard. A physical robots.txt uploaded to the site root overrides the virtual one. Also check Settings, Reading: the "Discourage search engines" box adds a noindex to every page, separate from robots.txt.
Shopify
Shopify generates robots.txt for you. To change it, add a robots.txt.liquid template in the theme code editor and edit the rules there, keeping Shopify's defaults for checkout and cart paths.
Nginx or Apache
On your own server, place the file in the web root so it is served as text/plain with a 200 status. Make sure no rewrite rule sends /robots.txt to your app's catch-all route, which is how HTML ends up where the rules should be.
After you change the file
Retest here to confirm the new rules behave as expected. Google caches robots.txt for up to 24 hours; the robots.txt report in Search Console (Settings) shows the version Google last fetched and lets you request a recrawl after an urgent fix. Then check that the sitemap URLs you advertise are not caught by the new rules with the Robots.txt vs Sitemap Conflict Checker. Our robots.txt and llms.txt guide covers the wider strategy for search and AI bots.