Robots.txt Validator
Paste a robots.txt file to check it for common issues: recognized directives, presence of a User-agent, and a Sitemap line.
About this tool
Paste a robots.txt file to check it for common issues: recognized directives, presence of a User-agent, and a Sitemap line.
Example
Input: User-agent: *\nDisallow: /admin
Output: Valid robots.txt
Privacy
This tool runs entirely in your browser. Your data is processed locally and never uploaded to a server.
How to use this tool
- Paste your robots.txt content into the input box.
- Run the validator to check the file for common robots.txt issues.
- Review the results for recognized directives, User-agent lines, and Sitemap lines.
- Fix any warnings or errors in your robots.txt, then validate again.
Step by step, what happens
- The tool reads the pasted robots.txt text line by line.
- It checks whether directives look like valid robots.txt directives, such as User-agent, Disallow, Allow, and Sitemap.
- It looks for at least one User-agent line, since a robots.txt file needs a target crawler group to be useful.
- It checks whether a Sitemap line is present and flags missing or unusual patterns that commonly cause problems.
- It returns clear feedback so you can correct the file and recheck it quickly.
Worked example
Here is a simple robots.txt file that allows all crawlers, blocks one folder, and includes a sitemap reference.
Input: User-agent: *
Disallow: /private/
Sitemap: https://example.com/sitemap.xml
- The validator sees a User-agent line, so the file has a valid crawler target.
- It recognizes Disallow and Sitemap as expected robots.txt directives.
- It finds no obvious syntax problems in this short file.
- It reports the file as valid or with no common issues, depending on the tool's output style.
Output: No common issues found. Recognized directives detected: User-agent, Disallow, Sitemap.
Tips and common mistakes
- Always include at least one User-agent line, even in a simple file.
- Make sure directive names use the expected spelling and punctuation, especially the colon after each directive.
- Use a full sitemap URL in the Sitemap line, not just a path.
- If you manage multiple groups, check that each User-agent section is followed by the rules you intended for that crawler.
Frequently asked questions
What does it check?
That each non-comment line is a recognized directive with a colon, and that a User-agent is present.
Does it test crawling?
No, it checks syntax, not how a specific crawler behaves.
Should I include a Sitemap?
Yes, adding a Sitemap: line helps search engines discover your URLs.
More Developer Tools Tools
Explore related calculators in this category
Barcode Validator
Validate EAN-13, EAN-8 and UPC-A barcode numbers using their check digit.
CSV Validator
Validate CSV structure, checks that every row has the same number of columns as the header.
Credit Card Validator
Validate a credit card number using the Luhn algorithm and detect the card brand. For testing only.
Email Validator
Validate email address syntax instantly. Checks format against the standard email pattern.
You Might Also Like
Popular tools from other categories
1031 Exchange Calculator - Free Online
Free Calculate tax deferral in a 1031 exchange. Step-by-step solutions and formulas included. Fast, accurate, and free, with formula and example.
4% Rule Calculator
Find the retirement nest egg you need using the 4% safe-withdrawal rule.
70% Rule Calculator
Calculate max offer using the 70% rule for flips.
A1C Calculator - Free Online
Free Convert between A1C percentage and estimated average glucose. Step-by-step solutions and formulas included. Simple, fast, and free.
Can't Find the Right Calculator?
Try our AI Math Solver, type any problem in plain English and get instant step-by-step solutions.