Skip to main content
ToolsBay

Runs in your browser — nothing is uploaded · verify

Robots.txt Generator — free, and it runs in your browser

Write crawler allow/disallow rules without syntax mistakes.

  • The common cases — block everything, allow everything, hide an admin path — are one click.
  • Target all bots or name specific ones, with the sitemap line included.
  • The output is valid and correctly ordered, which robots.txt is strict about.
disallow paths
allow paths
Common paths to block

robots.txt

User-agent: *
Disallow:
  • 70 tools

    Free, with no account and no watermark

  • 0 bytes

    Of your files or text uploaded — this tool runs in the tab

  • No queue

    The work happens in this tab, not in a line behind other users

Three steps, nothing to install

Robots.txt Generator in three steps

  1. Set it up the way you need it

    Choose what to allow

    Pick the crawlers and the paths. Common cases — block everything, allow everything, block an admin area — are one click.

  2. GenerateFresh values on every press

    See the file take shape

    The directives are grouped per user-agent in the order crawlers expect, with the sitemap reference added at the end.

  3. Copy ROBOTS.TXT

    Copy or download it

    Save it as robots.txt and put it at the root of your domain, which is the only place it works.

Why use Robots.txt Generator

  • Grouping is significant

    A crawler obeys only the first matching user-agent block, so a rule under the wrong heading is silently ignored. The directives are grouped correctly rather than concatenated.

  • Not a security control

    robots.txt asks well-behaved crawlers not to index a path; it does not stop anyone reading it, and the file itself is public. The page says so, because people do use it to hide things.

  • Free, with nothing to sign up for

    No account, no watermark, no daily cap and no trial that expires. Every tool on this site behaves the same way.

Frequently asked questions

No — and this catches people out. It stops crawling, not indexing. A blocked page can still appear in results if other sites link to it, just without a description. To keep a page out of the index, let it be crawled and serve a noindex meta tag.

What robots.txt does and does not do

robots.txt tells well-behaved crawlers which paths they may fetch. It is a request, not an access control — the file is public, and a crawler that ignores it faces no technical obstacle. Never use it to hide anything sensitive; listing Disallow: /secret-admin publishes the location of your admin panel to anyone who reads the file.

The most common misunderstanding is the difference between crawling and indexing. Blocking a URL here stops Google fetching it, which means Google cannot see a noindex tag on that page either. If a blocked page is linked from elsewhere, it can still be indexed — as a bare URL with no description. To remove a page from search results, allow crawling and use noindex.

Matching rules

  • Paths are matched as prefixes: /admin also blocks /administrator.
  • Add a trailing slash to target a directory only: /admin/.
  • * matches any sequence, and $ anchors the end — /*.pdf$ blocks PDFs.
  • When rules conflict, the most specific match wins, and Allow beats Disallow at equal length.

Pair it with a sitemap

The Sitemap: line is how crawlers that have never seen your site find your URL list. Generate one with the XML sitemap generator, and check the meta tags on the pages you are allowing with the meta tag generator.

Related guides

More tools

70 tools, none of which want your file

Everything this tool does happens in the page you are looking at. No account, no upload, no watermark.