robots.txt checker

This robots.txt checker finds errors in the content of an existing file, shows the groups in it, and tells you whether a path is open to crawling for a given crawler, and which rule decides it.

The file is checked in the browser, which needs JavaScript. A fixed example is shown.

Check an existing file
Paste the content of the file. It is checked against RFC 9309, and the file is not loaded from the site.
Groups: 1. Rules: 2. Errors: 0. Warnings: 0.
Findings
  • No syntax problems were found.
Groups in the file Each group shows the crawlers it applies to and the number of its rules.
  1. User-agent: *

    Allow rules: 1. Disallow rules: 1. The group starts at line 1.

Test a path
A path that starts with a slash (/), for example /admin/settings, or a full address. The path is tested against the robots.txt content in the check field.
The crawler name only (product token), for example Googlebot. The name is not case-sensitive. When no group has the crawler name, the * group applies.

The path /admin/settings is blocked from crawling. Blocked

Group that applies: *. Deciding rule: Disallow: /admin (line 2).

Everything runs in your browser; nothing is sent or stored.

  • Paste the full content of the file, as it is published on your site, into the "robots.txt content to check" field.
  • The "Findings" list shows errors, warnings, and notes, with the line number of each finding.
  • The "Groups in the file" section shows, for each group, the crawlers it applies to, its number of rules, and the line where it starts.
  • In the "Test a path" section, enter a path or a full address and the crawler name, for example Googlebot.
  • Below the fields, you see whether the path is allowed or blocked, which group applies to the crawler, and which rule decides. When several rules match the path, the longest rule applies. When an Allow rule and a Disallow rule of the same length match the path, the Allow rule applies.

How the check decides whether a path is open to crawling

The check first finds the group that applies to the crawler, and compares the path with the rules in that group only. Of the rules that match the path, the longest one applies, so the rule Allow: /shop/sale overrides the rule Disallow: /shop for paths that start with /shop/sale. When no rule matches the path, the path is allowed, and the path /robots.txt is always open to crawling, even when the whole site is blocked.

Testing after you change the file

After every change to the file, check that the important pages of your site, such as the home page, product pages, and content pages, are open to crawling for Googlebot and for Bingbot. A rule that is too short may block more than you intended, because each rule applies to every path that starts with it. Also make sure that the CSS and JavaScript files of your site are not blocked, because search engines use them to see the page the way visitors see it.

What the robots.txt file does not do

The file sets which paths crawlers may crawl, but it does not keep a page out of search results. A page that is blocked from crawling may appear in the results without a description when other sites link to it. To remove a page from the results, add the noindex tag to the page and allow the page to be crawled, because a crawler that does not crawl the page does not see the tag. You can create the tag with the "Meta tag generator" tool.

The file is not a security measure either: anyone can read it, and crawlers that do not follow the standard ignore it. Listing sensitive paths in the file, such as the path to your admin area, reveals them to anyone who opens the file.

The asterisk, the $ sign, and the scope of the file

An asterisk (*) in a rule matches any sequence of characters, and a $ sign at the end of a rule marks the end of the path. For example, the rule Disallow: /*.pdf$ blocks addresses that end with .pdf, but does not block /file.pdf?v=2. The file applies only to the domain, protocol, and port where it is published, so a subdomain such as shop.example.com needs a file of its own. You can create a new file with the "robots.txt generator" tool.

Common errors and warnings

  • Disallow /adminA line without a colon after the directive name is not valid, and crawlers ignore it.
  • Disallow: adminThe path does not start with a slash (/) or an asterisk (*), so crawlers may ignore the rule.
  • Sitemap: /sitemap.xmlThe sitemap address must be a full address that starts with https://, not just a path.
  • Noindex: /privateThe directive is not part of the standard, and crawlers ignore it. The noindex tag works only when it appears on the page itself.

robots.txt checker FAQ

How do I check the file that is published on my site?

The check does not read the file from your site, so open the /robots.txt address of your site in the browser, for example https://example.com/robots.txt, and copy all of its content into the check field. The field accepts up to 1,000,000 characters. A file larger than 500 KiB is marked with a warning, because crawlers must read at least the first 500 KiB and may ignore the content after it.

Why is a path shown as allowed despite a Disallow rule?

The reason is usually one of three cases: the path differs from the rule in upper or lower case, for example /Admin versus the rule Disallow: /admin; a longer Allow rule matches the path and overrides the Disallow rule; or the crawler has a group of its own and does not follow the group for all crawlers. The path test shows the group that applies and the deciding rule, so you can tell which of these cases applies.

Which group applies to a crawler that has no group under its full name?

In the check, a crawler whose name includes a hyphen, such as Googlebot-Image, follows the Googlebot group when the file has no group under its full name. When there is no such group either, the group for all crawlers (User-agent: *) applies to it. A crawler that appears in several groups in the file follows the rules of all its groups together.

Why is there a warning about a crawler name with extra characters?

Crawlers compare only the name itself (the product token), which consists of Latin letters, hyphens, and underscores. When a User-agent line has extra characters after the name, such as a slash and a version number, crawlers recognize only the first part, and the warning shows the name that was read. In a User-agent line, write the crawler name only.

Can I test a path with non-ASCII characters?

Yes. You can enter a path with non-ASCII characters, such as /café, as is or in percent-encoding, and the check treats both forms as the same path. A rule written in the file with such characters also applies to the encoded path. You can also enter a full address, and then the path and the query parameters of the address are tested.

Shopping cart

Your cart is emptyYou can start with one of our popular plans.

Site search

Accessibility

Text size
100%
Accessibility statement