Robots.txt Checker
Paste or upload your robots.txt and check it for syntax errors and common mistakes.
Advertisement space
What this checker looks for
| Check | What it flags |
|---|---|
| Directive syntax | Flags malformed or unrecognized directive lines. |
| User-agent ordering | Checks that directives are grouped correctly under the User-agent lines they belong to. |
| Sitemap URLs | Verifies that any Sitemap: line points to a properly formed URL. |
| Crawl-delay formatting | Checks that a Crawl-delay value is formatted correctly, where present. |
| Common mistakes | Flags issues like paths not starting with a slash. |
Paste your file instead of a URL
Since browsers can't freely fetch content from other domains, this tool works from the file's actual text rather than a live URL — paste in the content, or upload the file directly. To get an accurate copy of what your site is currently serving, open yourdomain.com/robots.txt in a browser and copy the plain text shown there.
What a clean syntax check doesn't tell you
A robots.txt file can be perfectly well-formed and still not do what you expect, since syntax and search-engine behavior are two different things. A couple of important distinctions worth knowing:
- Disallow doesn't guarantee a page stays out of search results. It only tells crawlers not to fetch the page — if another site links to it, Google can still display it with no snippet, since it never saw a noindex instruction on a page it was blocked from crawling.
- Some directives are ignored by Google entirely. Google dropped support for crawl-delay, nofollow, and noindex inside robots.txt back in 2019. A syntactically valid line using one of these won't be flagged here as an error, but Googlebot won't act on it either.
Frequently asked questions
- Yes, completely free with no signup or usage limit.
- No — browsers can't fetch arbitrary cross-origin URLs for this kind of check. Paste the file's contents, or upload it, instead.
- Directive syntax, User-agent ordering, valid Sitemap URLs, and Crawl-delay formatting, plus a few common mistakes like paths not starting with a slash.
- Visit yourdomain.com/robots.txt in a browser, then copy the plain text you see there. That's the exact file your site is currently serving, so checking that copy reflects what crawlers actually see.
- It checks the file's syntax and structure, not how a specific search engine will act on it. Keep in mind that Disallow only prevents crawling — it doesn't reliably remove a URL from search results if other sites link to it, since Google can't see a noindex tag on a page it was never allowed to crawl. If your goal is removing a page from search results, that's a job for a page-level noindex tag, not robots.txt.
- The checker validates syntax and structure rather than which search engine honors a given directive. It's worth knowing separately that Google dropped support for noindex, nofollow, and crawl-delay inside robots.txt back in 2019 — a syntactically valid line using one of these will still be ignored by Googlebot, even if it doesn't get flagged as a syntax error here.
- Rules listed after a User-agent line apply to that crawler group until the next User-agent line starts a new group. If directives end up under the wrong User-agent — for example, because a blank line or ordering issue merged two groups incorrectly — a rule can end up applying to the wrong crawler, or not applying at all.
- One frequent issue is a Disallow or Allow path that doesn't start with a forward slash, which can cause it to be interpreted incorrectly rather than as the site path you intended.
- Upload the corrected content as robots.txt at your domain's root (for example, https://example.com/robots.txt), replacing the previous file.