Free Tools — No Signup

Free Robots.txt Generator

Build a valid robots.txt file in seconds — visual rule builder, presets, live validation and a path tester. Free, no signup, runs in your browser.

Start from a preset

Full https:// addresses. Sitemap lines go at the end of the file, outside the rule groups.

Import keeps your groups, rules, sitemaps, crawl-delay and host. Comments are dropped, and a “Noindex” line is dropped too — Google ignores noindex in robots.txt — with a warning explaining why.

What this tool cannot do: it builds the file — it cannot upload it to your server, and it cannot test against Googlebot itself. You upload the file to your site root, then check it in Search Console (how-to below).

Your robots.txt — live preview

# Your robots.txt will appear here.
# Add a rule or pick a preset to start.

Validation — read this before you upload

No problems found — this file looks safe to upload. Still test a few paths below before you publish it.

Test a path

Type a path above — e.g. /wp-admin/ or /blog/my-post — to see whether it gets blocked.

The tester follows Google's longest-match rule: the longest matching rule wins, and Allow wins a tie. The crawler box takes a name like Googlebot — leave it as * to test every crawler.

What it is

What is a robots.txt file?

A robots.txt file is a plain-text file that lives at the root of your site — https://example.com/robots.txt — and tells well-behaved crawlers which paths they may and may not fetch. Each block starts with a User-agent line naming the crawler (or * for all crawlers), followed by Allow and Disallow rules, and optionally Sitemap lines pointing crawlers at your sitemap. It is a request, not a lock: polite crawlers obey it, malicious scrapers ignore it completely.

Most small sites do not need one at all — no file means no restrictions, which is fine when every public page should be crawled. A file earns its keep when you have something worth keeping crawlers out of: admin areas, search-result pages, checkout and cart pages, staging copies, or AI training bots you would rather not feed.

Can and cannot

What robots.txt can — and cannot — do

  • It can stop crawling. A Disallow rule tells a crawler not to fetch a path. That saves crawl budget on pages that should never rank, like internal search results.
  • It cannot remove a page from Google's index. A blocked page can still appear in search results as a bare URL, because Google may learn about it from links. To remove a page from the index, let Google crawl it and put a noindex tag on the page itself — blocking it in robots.txt actually prevents Google from ever seeing that noindex.
  • It cannot hide a page. Robots.txt is public — anyone can open yoursite.com/robots.txt and read every path you listed. Never put a genuinely private URL in it; protect private content with a login instead.
  • Google ignores crawl-delay. The directive slows Bing and a few other crawlers, but Google does not read it at all. If Google crawls too aggressively, the fix is in Search Console, not in this file.
  • Google ignores noindex in robots.txt. It used to be honoured, it no longer is. A “Noindex” line in the file does nothing — this tool drops it on import and warns you.
  • A named crawler group does not inherit the “*” group. If you write rules for Googlebot, Googlebot reads only its own group — repeat any wildcard rule it should follow too.
  • Read the source: Google's robots.txt specification (opens in a new tab) and Google's introduction to robots.txt (opens in a new tab).
How to use it

Build it, upload it, check it

  1. Pick a preset or build your own rules. Start with WordPress, Shopify or the generic preset, then add or remove rules. Each rule is a path — /wp-admin/ blocks a folder, /*.pdf$ blocks every PDF, /private/public/ as an Allow re-opens one folder inside a blocked one.
  2. Read the validation warnings. The tool flags a whole-site block, blocked CSS or JavaScript, blocked pages that usually belong in search, and directives Google ignores. Fix anything marked “Stop” before you go further.
  3. Test your important paths. Type /blog/, /pricing and /wp-admin/ into the tester and check each one comes back as you expect. The longest matching rule wins — a broad Disallow can quietly swallow a page you meant to keep.
  4. Download the file and upload it to your site root. Save it as exactly robots.txt — plain text, UTF-8 — so it opens at https://yoursite.com/robots.txt. Every subdomain and every protocol (http vs https) needs its own file.
  5. Check it in Search Console. Open the robots.txt report in Google Search Console to confirm Google fetched and parsed the file without errors, then use URL Inspection on a representative page to confirm “Crawl allowed?” says yes. Crawlers cache robots.txt, so changes can take hours to be seen.
FAQ
No. If every crawler may fetch every public page, a missing file means no restrictions — that is a perfectly good default. A file is useful when you need deliberate crawl controls (admin areas, search pages, checkout) or want to declare your sitemap locations.
No — and this is the most common misunderstanding. Robots.txt stops crawling, not indexing: a blocked URL can still show up in results as a bare link. To remove a page, let Google crawl it and add a noindex tag to the page itself. Blocking the page in robots.txt prevents Google from ever seeing that noindex.
Google's crawler adjusts its own rate automatically and does not read the crawl-delay directive at all. The directive only slows Bing and a few other crawlers. If Google is crawling too aggressively for your server, the setting to change is in Search Console, not in robots.txt.
Yes — use the “Block AI training bots” preset. It adds a group per bot (GPTBot, ClaudeBot, Google-Extended, CCBot and others) with Disallow: / for each. Note that blocking training bots is separate from blocking AI search: OAI-SearchBot and PerplexityBot power ChatGPT and Perplexity answers, so blocking them also removes you from those answers.
No — the opposite. The file is public by design: anyone can open yoursite.com/robots.txt and read it. Never list a genuinely private or sensitive path in it; protect private content with a login, not with robots.txt.
No. Everything runs in your browser. Your rules, paths and sitemap URLs are built on your device — nothing is uploaded or stored on our server. The share link stores your rules in the URL itself, not with us.

Tools show pieces. The audit shows your whole position.

We reply within one business day · Your audit is yours to keep

Get a free SEO audit

← Browse all free tools

Free Local SEO Audit