Free instant website audit · 190,000+ sites checked · no card, no account
Custom Web Audits
← All free tools
🤖

Robots.txt Tester & Generator

Fetch and analyze the robots.txt file for any domain. See every crawl rule and sitemap reference, get warned if you are accidentally blocking search engines, and download a recommended, SEO-safe robots.txt you can drop straight onto your site.

⚡ Interactive demo — sample data
robots.txt found with 6 directives — sitemap present, but one rule blocks CSS that Google needs to render the page.
robots.txt found at https://example.com/robots.txt (6 directives) Looks good
No site-wide "Disallow: /" block detected — search engines can crawl the site Looks good
Sitemap: https://example.com/sitemap.xml — crawlers have a direct pointer to your URL list Looks good
Disallow: /wp-includes/ — blocks JS/CSS Google needs to render the page correctly Warning
crawl-delay: 10 present — honored by Bing but ignored by Google Warning
Disallow: /cart and /checkout — sensibly keeps low-value pages out of the index Looks good

About this tool

Fetch and analyze the robots.txt file for any domain. See every crawl rule and sitemap reference, get warned if you are accidentally blocking search engines, and download a recommended, SEO-safe robots.txt you can drop straight onto your site.

How it works

Enter your domain
Paste any website URL or bare domain and run the check. We fetch the robots.txt file from the root of the site — the fixed location at /robots.txt where every crawler looks — and read it line by line, exactly the way Googlebot does.
Review your crawl rules
You get every active directive in the file: each User-agent block, every Allow and Disallow path, any Sitemap reference, and crawl-delay lines. We flag the dangerous one first — a site-wide "Disallow: /" that blocks search engines from your entire site — plus a missing Sitemap line.
Download a clean robots.txt
Grab the recommended, SEO-safe robots.txt we generate — it allows all reputable crawlers, points to your sitemap, and includes commented examples for blocking low-value paths like /cart and /checkout. Drop it at your domain root and re-run to confirm.

What we check

  • File presence — Confirms a robots.txt actually exists at the site root and returns a 200. If there's no file, search engines crawl everything by default — usually fine, but you lose the chance to point them at your sitemap and steer them away from junk URLs.
  • Site-wide crawl block — Checks for "Disallow: /" under "User-agent: *", which blocks every crawler from the whole site. This single line is the most common way a staging rule accidentally ships to production and de-indexes a site.
  • User-agent blocks — Lists every User-agent the file targets. "User-agent: *" applies to all crawlers; named agents (Googlebot, Bingbot) get their own block. Rules are matched to the most specific applicable group, not combined across groups.
  • Disallow & Allow paths — Surfaces each Disallow (paths crawlers should skip) and Allow (exceptions inside a disallowed folder). Order doesn't decide precedence — Google applies the most specific, longest matching rule, so an Allow can override a broader Disallow.
  • Sitemap reference — Looks for a "Sitemap:" line with the absolute URL of your XML sitemap. It's optional but recommended — it's a direct, crawler-agnostic way to tell search engines where your full URL list lives.
  • Crawl-delay directives — Flags any "crawl-delay" lines. Bing and some other bots honor it to throttle request rate, but Google ignores crawl-delay entirely — controlling Googlebot's rate is done in Search Console, not robots.txt.

Common issues we catch

  • "Disallow: /" left over from staging — A development site blocks all crawlers to stay out of search. When it goes live, that line ships with it, and the entire site silently drops out of the index. It's the single most damaging robots.txt mistake and the first thing we check for.
  • Blocking CSS and JavaScript — Disallowing /wp-includes/, /assets/, or script folders feels tidy, but Google renders pages like a browser. If it can't fetch your CSS and JS, it may see a broken layout and misjudge mobile-friendliness and content — hurting rankings, not helping them.
  • Confusing robots.txt with noindex — Disallowing a page does NOT remove it from Google. A blocked URL can still appear in results (as a bare link with no snippet) if other pages link to it. To truly keep a page out, allow crawling and use a noindex meta tag — Google has to crawl it to see the noindex.
  • Missing or relative Sitemap path — A "Sitemap:" line must be a full absolute URL (https://example.com/sitemap.xml), not a relative path like /sitemap.xml. A relative path is ignored, so crawlers never get the pointer you meant to give them.
  • Relying on crawl-delay for Googlebot — Adding "crawl-delay: 10" to slow Google down does nothing — Google doesn't support the directive. People add it after server-load scares and assume it worked. Use the crawl-rate setting in Search Console instead.
  • Wildcard and path-prefix mistakes — Disallow paths are prefix matches: "Disallow: /blog" also blocks /blog-archive. Use "$" to anchor the end ("/blog$") and "*" for wildcards ("/*?*" to block all query strings). Getting these wrong blocks far more — or far less — than intended.
  • File not at the exact root — robots.txt only works at the protocol+host root: https://example.com/robots.txt. A file at /folder/robots.txt or on a different subdomain is ignored. Each subdomain (and http vs https) needs its own file at its own root.

Where this matters

  • Googlebot — Reads /robots.txt, respects Disallow/Allow with longest-match precedence and wildcard/$ support, reads Sitemap lines — but ignores crawl-delay. A blocked URL can still be indexed if linked elsewhere.
  • Bingbot & other major crawlers — Follow the same core syntax and additionally honor crawl-delay to throttle request rate. Most reputable bots respect robots.txt voluntarily; it's a polite request, not an access wall.
  • WordPress — Serves a virtual robots.txt by default unless a physical file or SEO plugin overrides it. The 'Discourage search engines' setting injects a site-wide Disallow — the exact switch that de-indexes sites when left on after launch.
  • Shopify — Generates robots.txt automatically and historically blocked some store paths by default. It's now editable via the robots.txt.liquid theme template, so custom rules are possible but easy to break.
  • Wix, Squarespace & hosted builders — Auto-manage robots.txt with limited editing. Some platforms gate edits behind a paid plan or a built-in SEO panel, so use this tester to confirm what's actually being served versus what you set.

Frequently asked questions

What is a robots.txt file?
It's a plain-text file at the root of your site (yourdomain.com/robots.txt) that tells search-engine crawlers which paths they may or may not request. It uses simple directives like User-agent, Disallow, Allow, and Sitemap. It's the first file most crawlers fetch before crawling your site.
Does robots.txt remove a page from Google?
No. Disallowing a URL only stops crawling — the page can still be indexed as a bare link if other sites or pages link to it. To actually keep a page out of search, allow it to be crawled and add a noindex meta tag, or protect it behind login.
What does "Disallow: /" do?
It blocks crawlers from the entire site. This is the most damaging robots.txt mistake — it usually arrives by accident when a staging rule ships to production. If you see it under "User-agent: *" on a live site, that's almost certainly why traffic dropped.
Do I even need a robots.txt file?
Not strictly — without one, crawlers simply crawl everything by default, which is fine for many small sites. But adding one lets you point crawlers at your sitemap and keep them out of low-value URLs like cart, checkout, and internal search pages, so it's recommended.
What's the difference between Allow and Disallow?
Disallow tells crawlers not to fetch a path; Allow creates an exception inside a disallowed folder. Google uses the most specific (longest) matching rule, so "Allow: /folder/page" can override a broader "Disallow: /folder". Order in the file doesn't decide the winner — specificity does.
Does Google respect crawl-delay?
No. Bing and some other crawlers honor crawl-delay to slow their request rate, but Google ignores it completely. If you need Googlebot to crawl more slowly, adjust the crawl-rate setting in Google Search Console instead of putting it in robots.txt.
Should I list my sitemap in robots.txt?
Yes, it's a good practice. Add a line like "Sitemap: https://example.com/sitemap.xml" using the full absolute URL. It gives every crawler a direct pointer to your complete URL list, independent of which search engine it is, on top of submitting the sitemap in Search Console.
How long until robots.txt changes take effect?
Crawlers re-fetch robots.txt frequently — often within a day — so new rules apply on the next crawl. Removing a blocking rule lets pages be crawled again quickly, but re-indexing and ranking recovery can take days to weeks afterward.

This is one of several free SEO tools from Custom Web Audits. For a complete, prioritized analysis of your whole website, run a full audit.