Robots.txt Tester
Paste the contents of a robots.txt file, type the page path you want to test and choose a crawler, and the tester tells you whether that crawler is allowed or blocked and which rule decided it. It also lists syntax errors, unknown directives and the sitemap lines it finds. It works only on the text you paste and never fetches your live file.
What you enter
- robots.txt contents
- Page path or address to test
- Crawler
- Crawler name
What you get
- Result
- Deciding rule
- Group used
- Errors
- Warnings
- Sitemap lines
How it works
- Open yourdomain.com/robots.txt in your browser, copy the text and paste it into the first box.
- Enter the path of the page you want to test, for example /blog/post or /private/report.pdf. You can paste a full address and the tool keeps the path.
- Choose a crawler, or pick Other and type its name. The tester uses the group written for that crawler, or the group for * when there is none.
- Read the verdict and the rule that decided it, then fix any errors listed in the table.
How crawlers read a robots.txt file
A robots.txt file is a list of groups. Each group begins with one or more User-agent lines that name the crawlers it addresses, followed by Allow and Disallow lines that give path patterns. A crawler picks the group that names it most specifically, ignores every other group and applies the rules inside it.
Rules match the beginning of the path, including the query string. Disallow: /shop blocks /shop, /shop/ and /shopping-guide alike, because all of them start with /shop. If you mean only the folder, write /shop/ with the closing slash.
Mistakes that cost traffic
The most expensive mistake is Disallow: / left in place after a launch. It is common on staging sites and survives the move to the live domain, and it asks every compliant crawler to stay away from the whole site. The tester flags a rule that blocks everything so you can confirm it was intended.
The next group of mistakes are typing errors. A misspelt directive such as Disalow is ignored without a warning, which means the page you meant to protect stays open. A rule that does not begin with a slash, or a relative sitemap address, is also ignored. Checking the file after every edit catches these before a crawler does.
Tips
- A crawler uses only the most specific group written for it. If you add a group for Googlebot, that crawler ignores every rule under User-agent: *, so repeat any rules it still needs.
- Blocking a page in robots.txt stops crawling, not indexing. A blocked page can still appear in results if other pages link to it. Use a noindex tag on a page the crawler is allowed to read.
- Do not block your CSS and JavaScript files. Search engines need them to see the page the way a visitor does.
- Test the paths that matter most, such as your home page, a product page and your sitemap, every time you change the file.
Frequently asked questions
How does the tester decide between Allow and Disallow?
It collects every Allow and Disallow rule in the matching group whose pattern fits the start of the path, then picks the rule with the longest pattern. If an Allow and a Disallow match with the same length, Allow wins. If no rule matches, the path is allowed. For example, with Disallow: /admin/ and Allow: /admin/help, the path /admin/help/page is allowed because the Allow rule is longer.
What do * and $ mean in a rule?
An asterisk matches any run of characters, and a dollar sign at the end of a pattern means the path must end there. So Disallow: /*.pdf$ blocks addresses that end in .pdf, but not /file.pdf?download=1, because that address does not end with .pdf.
Which crawler group does it use?
First a group that names your crawler exactly, for example Googlebot. Image and video crawlers such as Googlebot-Image fall back to Googlebot when they have no group of their own. If there is none, the group for * is used, and if that is missing too, everything is allowed.
Does it test my live robots.txt?
No. It reads only what you paste, so what it shows is only as current as your copy. Fetch the live file yourself and paste it to test what search engines will see.
Is this the same as Google's own tester?
It follows the same published matching rules, the longest match and the * and $ wildcards, but it is an independent tool and does not cover every edge case such as unusual encodings. Check important changes in Google Search Console as well.
Related: Robots.txt generator, Sitemap checker, Canonical tag checker.
Start a 7-day free trial or see all free tools. On We.Inc you get a 7-day free trial, not a free plan: card needed, $0 today, cancel before it ends and you pay nothing. AI building is on paid plans from $20 a month.
More in Free Tools
- ROI Calculator | Free Tool
- SaaS Agreement Template
- SaaS Metrics Calculator | Free Tool
- Salary to Hourly Converter
- Sales Follow-Up Email Templates
- Sales Tax Calculator
- Free Schema Markup Generator
- Schema Markup Validator
Product
Who It's For
- For Agencies
- For Freelancers
- For Hosting Providers
- For SaaS Platforms
- For Startups
- For Financial Services
- For Healthcare
Features
Resources
- Blog
- Help Center
- Free Business Tools
- Free UI Components
- Website Templates
- Template Collections
- Website Examples
- Guides
- Comparisons
- Alternatives
- Best Lists
- Reviews
- Pricing Guides
- Use Cases
- Glossary & Guides
- Integrations
- Developers
- Benchmark
- Windows App