New 58+ tools are now available — built to keep your workflow moving.

Robots.txt Generator

Build a valid robots.txt with crawler groups, disallow rules, crawl delay and a sitemap line.

Which crawlers does this apply to?

Groups are matched exactly. If you set rules for a specific bot, remember that most crawlers identify as * unless a group above them matches first.

Paths are matched from the start, so /admin also covers /administrator. Use * and $ as wildcards.

An Allow line overrides a matching Disallow, which is how you open a single file inside a blocked folder.

Honoured by Bing and Yandex, ignored by Google.

Added as a Sitemap: line. Leave blank if you have no sitemap.

This tool only builds the text. It never writes to your server, so it cannot break a live site — copy it to public/robots.txt yourself when you are happy with it.

Choose a file first — Run stays disabled until the file is selected.

File ready — press Run to start.

Optimizing your file…

Your result is ready — download it below:

Re-encoded without size gain Download links expire within 30 minutes.

This image appears to be already optimized — try a lower quality setting for a smaller file.
No logo or watermark was detected in the marked corners — your images were delivered unchanged.

No result to display for the current input.

Robots.txt Generator Online

Build a valid robots.txt with crawler groups, disallow rules, crawl delay and a sitemap line.

Build a Valid robots.txt Without Guessing the Syntax

robots.txt has a small syntax and a lot of ways to get it subtly wrong, usually in the direction of blocking more than you meant to. Tick the crawlers your rules apply to, choose whether they are blocked from specific paths or allowed everywhere, list one path per line, and the generator assembles the file exactly as a crawler will read it.

The result is text you can copy or download. Nothing is written to your server, so a mistake here cannot take a live site offline — you publish it yourself when the file looks right.

What robots.txt Actually Controls

robots.txt tells crawlers which URLs they may fetch. That is the whole of it. It does not hide anything from a person: a disallowed page still loads in a browser when you type its address, and a disallowed asset is still downloadable if you know the URL.

It is also not an access control. Anything that must be genuinely private — an admin area, a paid download, personal data — needs authentication at the server, never a robots.txt rule. Treat the file as a polite instruction about what is not worth crawling.

Crawler Groups and How Matching Works

The file is a series of groups. Each starts with one or more User-agent lines followed by rules that apply to exactly those crawlers. A crawler reads the group whose user-agent token matches its own name exactly — Googlebot matches User-agent: Googlebot but not User-agent: Google.

The catch that surprises people: when a specific group matches, the catch-all * group is ignored for that crawler. Listing rules for Googlebot and nothing else means every other crawler, including Bing, is governed solely by whatever the * group says — or by no group at all.

Disallow, Allow, and Which One Wins

Disallow: with nothing after the colon means allow everything; that is the only correct way to express it. Disallow: / means block everything. The distinction is the source of a well-known publishing mistake, and it is worth reading the generated file once before you ship it.

Within a group, the most specific matching rule wins, and a matching Allow beats a matching Disallow regardless of length. That is how a single file is opened inside a blocked folder — block /admin, then allow /admin/public.

Wildcards and End of String

Two wildcards are supported. * matches any run of characters, so /admin/* covers everything under that folder. $ anchors the end of the URL, so /page.php$ matches that one file but not /page.php?id=4.

Paths are matched from the beginning of the path, not as complete strings. A rule of /admin therefore also covers /administrator and /admin-panel. A leading slash is added for you if you leave it out.

Crawl-delay and the Sitemap Line

Crawl-delay asks a crawler to wait between requests. Google has ignored it for years, while Bing and Yandex still honour it, so it is worth setting for a large site that is not bandwidth-sensitive rather than for a small one.

The Sitemap: line is the most reliably useful part of the file for most sites. It points crawlers at your XML sitemap and needs no group, so it sits at the end, outside every group. A full absolute URL is required; a relative path is ignored.

Publishing It Safely

The file must live at the root of your domain — https://example.com/robots.txt — and nowhere else. A file in a subfolder, or one blocked by a server rule, does nothing at all while looking like it is working.

Before you publish, check two things: that the first group does not contain Disallow: /, and that a path you definitely want indexed is not caught by a prefix rule. Then confirm the live file by opening its URL directly — if the site is on a framework that rewrites unknown paths to a 200 page, you may be looking at your homepage instead of a 404, which hides the problem rather than fixing it.

Frequently asked questions

Does robots.txt stop a page from being indexed?

No. A disallowed URL can still be indexed if it is linked from elsewhere, and it will appear in results as a bare link with no snippet. To keep a page out of the index, allow crawling and use a noindex meta tag or an X-Robots-Tag header instead.

Where does the robots.txt file go?

At the root of the domain, so example.com/robots.txt, in the folder your webserver serves as the document root. Not in a subfolder, and not behind a redirect. A file in the wrong place is silently ignored.

Should I disallow /admin?

It is reasonable to stop crawlers wasting requests on admin URLs, and it is common on large sites. It is not a security measure. Protect anything sensitive with authentication, because a disallowed admin URL is still reachable by anyone who types it.

What happens if I put Disallow: / ?

Every crawler is told to stay off the entire site, which is usually an accident from an empty field. The home page itself becomes uncrawlable, so the site can drop out of search results entirely. If a site has done this, fixing robots.txt and requesting a recrawl is the recovery.

Does Google use Crawl-delay?

No. Google has ignored Crawl-delay for years and treats it as unsupported. Bing and Yandex do honour it. Use it on a large site that is heavy on the server, and rely on Search URL Inspection and sitemap priority for anything involving Google.

Is robots.txt a security feature?

No, and treating it as one is a common and costly mistake. It is a public file that asks crawlers politely, and any disallowed URL can still be opened directly. Use server-level authentication for anything that must stay private.

About this tool

Robots.txt Generator builds a valid robots.txt from a form: pick your crawler groups, choose allow or block, list the paths, set a crawl delay and add your sitemap URL.

How to use: tick the crawlers, list the paths to disallow, then press Run and copy the result.

  • Named crawler groups or all crawlers
  • Allow overrides Disallow
  • Sitemap line included automatically

Related tools