A robots.txt file decides which pages crawlers may visit, and a single wrong line can hide your whole site from Google. Our free Robots.txt Tester lets you check the rules before they cause harm: fetch a site's live file or paste your own, choose a crawler, list the URLs you care about and see for each one whether it is Allowed or Blocked, which rule decided it and on which line.
This guide covers every part of the page, shows a worked example with its real output, and explains how to read the answers when something looks wrong. If you still need to write the file, start with the Robots.txt Generator and its guide.
What Robots.txt Tester does
It reads robots.txt the way Google does. It follows the rules in RFC 9309 and Google's documented behaviour: the best-matching group for the crawler is chosen, the longest matching rule wins, Allow beats Disallow when two rules are equally long, * matches any characters and $ anchors the end of the URL.
It also shows the numbers behind the file (groups, rules, sitemaps, errors, warnings), a table of the groups, the sitemap lines it found, and a list of syntax warnings.
It does not crawl your site, it does not tell you whether a page is indexed, and it cannot see rules that come from a firewall or a noindex tag. It answers one question: does this robots.txt allow this crawler to fetch this URL?
How to use Robots.txt Tester, step by step
- Open Robots.txt Tester.
- In "1. Load robots.txt", type your website address in "Website URL" and press "Fetch robots.txt". Or skip this and edit the text in "2. robots.txt content". The box starts with a sample so you can try the page at once.
- In "3. Test URLs", choose the Crawler (user agent). Pick "Custom…" to type any name, such as AhrefsBot.
- Enter the URLs or paths to test, one per line.
- Read the "Results" table: each row shows the URL path, an Allowed or Blocked label and the matching rule with its line number.
- Scroll down to "Syntax warnings" and fix anything listed.
The results update as you type, after a short pause of about 0.2 seconds.
Every option explained
Website URL and Fetch robots.txt
The tool always requests /robots.txt from the root of the site, so https://example.com/blog/post and example.com both fetch https://example.com/robots.txt. If you leave out https://, it is added for you. The fetched text replaces what was in the editor, and a status line shows the final address, the HTTP status, how many redirects it followed, the size and a warning if the file was served as an HTML page.
The editable box
You can type anywhere in the box. This is the safe way to try a change: edit the rules here, watch the results, and only then upload the file. Under the box you see the line count and size. If the text is over 500 KiB, a note says it is over Google's limit, because Google ignores everything after the first 500 KiB.
Crawler (user agent)
The list has Googlebot, Googlebot-Image, Googlebot-News, Bingbot, GPTBot (OpenAI), ClaudeBot (Anthropic), CCBot (Common Crawl), Google-Extended, "* (any other crawler)" and "Custom…". An information note under the form says which group applied, for example "Rules for GPTBot come from the group on line 6". The Googlebot specialists (Googlebot-Image, Googlebot-News) use the Googlebot group first, and the * group only if there is no Googlebot group.
URLs or paths to test
Paste paths like /admin/settings or complete addresses. Only the path and query string are matched, and anything after a # is dropped. The tester handles up to 500 lines at once.
Results, groups and warnings
Under the results you get a Stats row (Groups, Rules, Sitemaps, Errors, Warnings), a Groups table showing each group's line, user agents, number of allow and disallow rules and any Crawl-delay, the Sitemaps found, and the warnings table with line numbers.
A worked example
The sample file in the box is:
User-agent: *
Disallow: /admin/
Disallow: /*?sessionid=
Allow: /admin/public/
User-agent: GPTBot
Disallow: /
Sitemap: https://example.com/sitemap.xml
With the default test list and Googlebot selected, the results are:
| Path | Result | Matching rule |
|---|---|---|
/ |
Allowed | No rule matches (allowed by default) |
/admin/settings |
Blocked | Disallow: /admin/ (line 2) |
/admin/public/help |
Allowed | Allow: /admin/public/ (line 4) |
/products?sessionid=42 |
Blocked | Disallow: /*?sessionid= (line 3) |
The third row shows the "longest rule wins" idea. Both /admin/ and /admin/public/ match, but the Allow rule is longer, so it decides. Now switch the crawler to GPTBot and every row turns Blocked by Disallow: / on line 7. The * group is not used for GPTBot at all, because GPTBot has its own group.
Bangla and other non-English paths work too. The tester converts both your rule and the URL to the same percent-encoded form, so a rule written as /বাংলা/ matches the encoded address your browser actually requests.
What happens when robots.txt returns an error
After a fetch, the tool applies the same fallback as Google:
- 2xx: the rules are used as normal.
- 4xx (for example 404): there is no robots.txt, so everything is allowed. The note is amber, because a missing file is not usually what you want.
- 5xx or 429: Google treats this as "disallow everything" and pauses crawling. The tester marks every URL Blocked and explains that an error lasting more than 30 days makes Google fall back to a cached copy or to no robots.txt.
- Other codes: shown as an unexpected status, and the site is treated as unreachable.
- More than 5 redirects: the note says Google follows up to 5 hops and then treats robots.txt as missing.
If you edit the text after a fetch, the status rules switch off and your edited rules are tested on their own.
What it accepts and its limits
- Fetching works for public sites on ports 80, 443, 8080 and 8443. Private, local and internal addresses are refused, and so are web addresses containing a username or password.
- A fetched file is read up to 500 KiB. A longer file is cut and a note tells you so.
- You can run up to 20 fetches a minute per visitor. If you hit the limit the page counts down and retries.
- Pasted rules have no length limit other than your browser's memory, but only the first 500 KiB matters to Google.
Privacy
Fetching is done by our server, not your browser. When you press "Fetch robots.txt", the website address you typed is sent to our server, which requests /robots.txt from that site, identifying itself as TechSolutionPointBot, and returns the result to your page. Everything after that happens in your browser: the parsing, the testing, your edits and the URL list are never sent anywhere. If you paste a file instead of fetching, nothing leaves your device.
Tips to work faster
- Test the pages that earn you money first: the home page, a category page, a product or article page.
- Always test with at least two crawlers, Googlebot and the one you are trying to restrict.
- Add a test line for each rule you write. A rule with no test is a guess.
- When a Googlebot group exists, copy any
*rules you still want into it. The group is used on its own. - Use "Custom…" to test a bot you found in your server logs.
Common problems and how to fix them
"Invalid line (no "directive: value" pair)"
A line has no colon and is not a known directive. Check for typos, stray text or a copy-paste from a web page that added extra characters.
"Disallow rule appears before any User-agent line, so crawlers ignore it"
Rules must sit under a User-agent line. Move the rule below one, or add User-agent: * above it.
"Missing colon" or "is a misspelling of"
Google accepts Disallow /admin/ and even Dissallow:, but other crawlers may not. The tester warns so that you can fix the spelling for everyone.
"Path should start with "/" or "*""
A rule such as Disallow: admin is treated as /admin. Write the slash yourself so the file says what you mean.
Everything shows Allowed but you expected a block
Check the note under "3. Test URLs". If it says no group matches the crawler and there is no User-agent: * group, everything is allowed. Also check the case of the path, because /Admin/ and /admin/ are different.
The fetch says HTTP 403 or 404 but the file exists in your browser
Some security tools and CDNs block automated visitors. Our server may be turned away even though browsers and Googlebot are not, and the tester then reports "no robots.txt". Paste the file text in by hand to test it, and check headers with the Redirect Checker if you suspect a redirect.
Related tools
- Robots.txt Generator: build a new file from presets.
- XML Sitemap Validator: check the sitemap that your Sitemap line points to.
- Redirect Checker: follow the redirect chain if robots.txt answers with a redirect.
- SEO Tools: the rest of our SEO utilities.
Quick checklist
- Fetch the live file, then edit a copy in the box.
- Test with Googlebot and with any bot you are trying to restrict.
- Remember that a specific group replaces the
*group. - Fix every warning, even the ones Google tolerates.
- Re-test after each upload.



