Free SEO tool

Robots.txt tester and validator

Fetch any site's robots.txt or paste your own, then test URLs for Googlebot, Bingbot and AI crawlers. See exactly which rule blocks a page, and catch mistakes before they cost you traffic.

Test a URL

Fetch or paste a robots.txt to test URLs against it.

How robots.txt rules are matched

How to add a sitemap to robots.txt

Add Sitemap: https://example.com/sitemap.xml on its own line, using the full URL. It applies to all crawlers regardless of where it sits in the file. Check the sitemap itself with the sitemap validator.

Common robots.txt mistakes

robots.txt and AI crawlers

AI companies use separate user-agents for search and for training. If you want to appear in AI answers, keep the search crawlers allowed even if you block the training ones. See the LLM SEO tool for a full AI-search readiness check.

Frequently asked questions

How do I test my robots.txt?

Enter your domain and fetch the live file, or paste a draft. Then type any URL and pick a crawler: the tool shows whether it's allowed or blocked and which line decided it. Edit the text to try changes before you publish them.

What happened to Google's robots.txt tester?

Google retired the robots.txt Tester in Search Console in late 2023 and replaced it with a robots.txt report that shows fetch status and errors but doesn't let you test individual URLs. This tool fills that gap.

How does Google decide which rule applies?

Google uses the group for the most specific matching user-agent (or * if none matches). Within that group the rule with the longest matching path wins, and if an Allow and a Disallow are equally long, Allow wins.

How do I add my sitemap to robots.txt?

Add a line anywhere in the file with the full URL, for example: Sitemap: https://example.com/sitemap.xml. It isn't tied to a user-agent group, and you can list more than one.

Should I block AI crawlers?

It depends on what you want. Blocking AI search crawlers (OAI-SearchBot, Claude-SearchBot, PerplexityBot) stops those products from showing and citing your pages. Blocking training crawlers (GPTBot, ClaudeBot, CCBot, Google-Extended) opts you out of model training without affecting search.

Does robots.txt stop a page being indexed?

No. Disallow stops crawling, but a blocked URL can still be indexed if other pages link to it. To keep a page out of results, allow crawling and use a noindex meta tag or X-Robots-Tag header.

What if my robots.txt returns an error?

A 404 means crawlers treat the site as fully allowed. A 5xx server error makes Google treat the whole site as disallowed until the file is reachable again, so fix those quickly.

Check more than robots.txt

ElixRank's free audit checks crawlability, AI crawler access, sitemaps and on-page issues, then uses your Search Console data to rank the fixes.