All Tools Portfolio

Robots.txt
Generator

Build a robots.txt file with custom rules per crawler, allow and disallow paths, crawl-delay, and sitemap links. Preview the result live and download it ready to upload to your site's root.

Start building robots.txt

User-agent rules

Generated robots.txt

User-agent groups

1

Rules

0

About the Robots.txt Generator

robots.txt is a plain text file that tells search engine crawlers which URLs they may or may not request from your site. This tool lets you build one or more user-agent rule groups with allow and disallow paths, an optional crawl-delay, and sitemap links, then preview the exact file live before downloading it.

Features

Multiple user-agent groups

Add separate rule sets for specific bots alongside a default group for everyone else.

Allow & disallow paths

List the paths each crawler should skip or is explicitly allowed to access.

Sitemap links

Point crawlers straight to your sitemap so new pages get discovered faster.

Quick presets

Start from Allow all, Block all, or WordPress-friendly defaults in one click.

100% client-side

The file is generated locally in your browser. Nothing is uploaded.

Copy or download

Copy the text or download it as a ready-to-upload robots.txt file.

How It Works

  1. Start from a preset or edit the default "User-agent: *" group.
  2. Add disallow and allow paths, and an optional crawl-delay.
  3. Add more user-agent groups if specific crawlers need different rules.
  4. Add your sitemap URL so crawlers can find it directly.
  5. Copy the result or download it, then upload it to your site's root as /robots.txt.

Example Usage

GoalRule
Block an admin area from all botsDisallow: /admin/ under User-agent: *
Allow one file inside a blocked folderAllow: /private/public-file.pdf
Point crawlers to your sitemapSitemap: https://example.com/sitemap.xml

Frequently Asked Questions

What is a robots.txt file used for?

A robots.txt file tells search engine crawlers which parts of a website they are allowed or not allowed to request. It lives at the root of a domain, such as example.com/robots.txt.

Does robots.txt guarantee a page will not appear in search results?

No. Disallowing a URL in robots.txt only blocks crawling, not indexing. A blocked page can still appear in search results if it is linked from elsewhere. Use a noindex meta tag to prevent indexing.

What does User-agent: * mean?

The asterisk is a wildcard that matches every crawler. Rules under User-agent: * apply to all bots unless a more specific user-agent group overrides them.

Should I add my sitemap to robots.txt?

Yes. Adding a Sitemap directive gives crawlers a direct path to your full list of URLs, which can help new or updated pages get discovered faster.

Does Crawl-delay work on Google?

Googlebot ignores the Crawl-delay directive, though it is still respected by some other search engines like Bing and Yandex. Use Google Search Console to adjust Google's crawl rate instead.

Where do I upload the generated robots.txt file?

Upload it to the root directory of your domain so it is reachable at https://yourdomain.com/robots.txt. It will not work if placed in a subfolder.

Is my data uploaded when I use this generator?

No. The file is assembled entirely in your browser using client-side JavaScript. Nothing you enter is sent to a server.

Related Tools