SEO and marketing tools

Robots.txt Tester and Validator

Paste a robots.txt and a list of URLs, pick a crawler, and see allowed or blocked for each URL with the rule that decided it, matched the way RFC 9309 and Google describe.

  • Free foreverNo trial, no paywall, no usage limits.
  • No sign-upOpen the page and start. We never ask for an email to use a tool.
  • PrivateEverything runs in your browser. Your input is never uploaded or stored on our servers.
  • Works offlineOnce the page has loaded, the tool keeps working without a connection.
Pick a crawler, or choose Custom and type a product token or paste a full User-Agent header. Some crawlers fall back to another group: Applebot and Googlebot-Image obey Googlebot's rules when robots.txt has none for them.

Search and AI answersGoogle Search's main crawler; its preferences also cover Discover, Google Images, Google Video and Google News.

robots.txt

Paste the file's contents (open https://your-site/robots.txt and copy it). Lines are read exactly as RFC 9309 and Google describe.
Clear
An empty robots.txt allows every URL.

URLs to test

One per line: full URLs, or paths such as /blog/post. The query string counts; #fragments are ignored.
Clear
Results update as you type.

Results

Each URL is matched against the group this crawler obeys: the longest matching rule wins, and Allow wins a tie.

Add URLs to see which ones this crawler may fetch.

Want an honest look at your site's SEO? Talk to our team

Quick answer

A robots.txt tester shows whether a crawler may fetch a URL under a site's robots.txt rules. Paste the file into Playxoft's free robots.txt tester, add URLs or paths one per line, and pick a crawler such as Googlebot or GPTBot. Each URL is marked allowed or blocked with the deciding rule and its line, using RFC 9309 matching: the longest matching rule wins, and Allow wins a tie.

  • Deciding rule highlighted
  • Any user agent
  • RFC 9309 matching
  • Documented fallbacks
  • Bulk URL testing
  • Line-level checks
  • Copy results

How to use the Robots.txt Tester

  1. 1Open https://your-site/robots.txt, copy everything and paste it into robots.txt, or click Open for a saved file.
  2. 2Paste the URLs to test, one per line. Full URLs and paths both work.
  3. 3Choose the Crawler, or pick Custom user agent and type a token or paste a full User-Agent header.
  4. 4Read the Results. Click a row to see which group applied, every rule that matched and the one that decided.
  5. 5Fix anything flagged in Checks, using its Line button to jump to it.

How does a crawler decide whether a URL is blocked?

RFC 9309 and Google's documentation describe the same four steps, and the tester follows them exactly:

  1. Pick the group. Find the group whose User-agent equals the crawler's product token, ignoring case. Several groups for the same token are merged. If none matches, use the * group; if there is no * group either, everything is allowed.
  2. Match the path. Compare each rule with the URL's path and query, from the first character. Paths are case-sensitive.
  3. Longest rule wins. The most specific match, the rule with the most characters, decides.
  4. Allow wins a tie. When an Allow and a Disallow match with equal length, the URL is allowed.

With the file below, Googlebot may fetch /admin/settings (its own group has no rule for it) but not /drafts/post, while any other crawler may open /admin/help/start (Allow: /admin/help/ is longer than Disallow: /admin/) but not /admin/settings:

User-agent: *
Disallow: /admin/
Allow: /admin/help/

User-agent: Googlebot
Disallow: /drafts/

/robots.txt itself is always allowed, and an empty Disallow: allows everything.

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

Because only one group applies to a crawler. Once a group names Googlebot, the * group no longer applies to it: Google says groups for a specific user agent and the global group are never combined. It is the most common surprise in a robots.txt audit. If Googlebot should follow your general rules too, repeat them in its group.

Some crawlers fall back to another group before *. Google lists Googlebot-Image with two tokens, so with no group of its own it obeys Googlebot's. Apple says Applebot follows Googlebot's rules when robots.txt doesn't mention Applebot. The tester applies these documented fallbacks when you pick those crawlers.

Google also reads only the product token: User-agent: Googlebot/2.1 and User-agent: googlebot* both mean googlebot. User-agent lines don't support wildcards, so User-agent: *bot matches no crawler at all.

How do * and $ work in robots.txt rules?

* matches any run of characters, including none, and a $ at the end anchors the rule to the end of the URL. Everything else is a plain prefix match:

RuleBlocksDoesn't block
/shop/shop, /shop/cart, /shopping/Shop, /en/shop
/shop//shop/, /shop/cart/shop, /shopping
/*.pdf$/menu.pdf, /a/b.pdf/menu.pdf?v=2, /menu.pdfx
/*?sessionid=/cart?sessionid=4/cart?id=4
/$/ only/about

A trailing * changes nothing: /shop* matches the same URLs as /shop. Use $ with care: /*.pdf$ lets /menu.pdf?download=1 through, because the query string is part of what is matched.

How are encoded and non-ASCII URLs matched?

RFC 9309 compares rules and URLs in the same percent-encoded form. The tester normalizes both before matching:

  • Non-ASCII characters are encoded as UTF-8, so Disallow: /café/ and Disallow: /caf%C3%A9/ are the same rule.
  • Encoded letters, digits and - . _ ~ are decoded, so /%62log/ matches a rule for /blog/.
  • Encoded reserved characters stay encoded: %2F is not a path separator, so /a%2Fb doesn't match /a/b.
  • To match a literal * or $ in a URL, write it as %2A or %24 in the rule.

When a URL is compared in a different form than you typed it, the detail panel shows the normalized path.

Can I test robots.txt in Google Search Console?

Search Console no longer has its old robots.txt Tester. Its robots.txt report shows which files Google found for your top 20 hosts, when it last crawled them, and any warnings or errors, and it can request a recrawl after an urgent fix. To check one live URL, the URL Inspection tool says whether crawling is allowed.

Neither lets you try a change before you publish it or compare crawlers, which is what this tester is for: paste a draft, test the URLs that matter, then upload. To write a new file from scratch, start with the robots.txt generator.

Frequently asked questions

Open https://your-site/robots.txt to confirm it loads as plain text, then paste its contents into this tester with the URLs that matter and pick the crawler you care about. Each URL shows allowed or blocked and the rule that decided it. Search Console's robots.txt report also shows whether Google could fetch the file.
Find the group that names the crawler (or the * group if none does), then find every Allow and Disallow rule that matches the start of the page's path. The longest matching rule decides, and Allow wins a tie. This tester does that for you and highlights the deciding rule.
Partly. Field names such as Disallow and user-agent names such as Googlebot are not case sensitive, but paths are: Disallow: /Private does not block /private. The file name itself must be robots.txt in lowercase.
The longer rule wins, measured in characters of the rule's path. If both are the same length, Allow wins, because RFC 9309 and Google both use the least restrictive rule in a tie.
Rules are prefixes. Disallow: /blog blocks /blog, /blog/ and also /blog-tips or /blog.html. End folder rules with a slash, such as Disallow: /blog/, or add $ to match one exact URL.
No. Each host, protocol and port has its own robots.txt. Rules at https://example.com/robots.txt do not apply to https://shop.example.com or to http://example.com.
Yes. The file and URLs you paste are tested in your browser and never uploaded or fetched. Analytics on this page records only that the tool was used.

Last updated by the Playxoft engineering team.

From the team behind this tool

Doing the SEO checklist and still not getting traffic?

Meta tags and sitemaps are the floor, not the strategy. We build fast websites that rank, fix the technical SEO that holds pages back and run campaigns you can measure. Send us your site and get a free, honest audit of what would move the needle.

More free tools

See all tools

Meta Tag Generator

New

Write title, description, Open Graph and X tags with live Google and share previews.

Open tool

Open Graph Preview

New

See how a link looks on Facebook, X, LinkedIn, Slack, Discord, WhatsApp and iMessage.

Open tool

QR Code Generator

Make QR codes for links, text, email, calls and texts, with a logo, colors, PNG and SVG.

Open tool

Robots.txt Generator

New

Build a valid robots.txt with presets, AI crawler opt-outs and live RFC 9309 checks.

Open tool

XML Sitemap Generator

New

Turn URL lists or CSV into sitemap.xml with lastmod and hreflang, or validate a sitemap.

Open tool

UTM Builder

Build campaign URLs with UTM tags, see the GA4 channel they land in, and tag links in bulk.

Open tool