Robots.txt Generator

Create a valid robots.txt file with allow and disallow rules, crawl-delay and your sitemap — using ready-made presets or fully custom directives. Copy or download in one click.

Crawl rules
Generated robots.txt
\U0001F4A1 Place the finished file at the root of your domain: https://example.com/robots.txt

How to use the Robots.txt Generator

Control exactly which pages search engines may crawl.

STEP 01

Pick a preset or go custom

Start from Allow all, Block all or a WordPress preset, or choose Custom to build rules from scratch. Presets fill the fields instantly.

STEP 02

Set the user-agent

Use * to target every crawler, or name a specific bot like Googlebot to write rules that apply only to it.

STEP 03

Add allow & disallow paths

Click "Add rule" to block or permit folders and pages, for example /admin/ or /private/. Each rule appears in the output as you type.

STEP 04

Add sitemap & download

Drop in your sitemap URL, set an optional crawl-delay, then Copy or Download the file and upload it to your site root.

Frequently asked questions

Everything you need to know about the Robots.txt Generator.

A robots.txt file is a plain text file at the root of your website that tells search engine crawlers which pages or folders they may or may not access. It is the first file most bots check, and it helps you keep private or duplicate areas out of search results.

Choose a preset or select Custom, set the user-agent, then add Disallow rules for paths you want to block and Allow rules for exceptions. Add your sitemap URL and an optional crawl-delay. The file builds live on the right — copy it or download it and upload it to your domain root.

It must live in the root directory of your domain so it is reachable at https://yourdomain.com/robots.txt. Crawlers will not find it in a subfolder. Upload it via FTP, your hosting file manager, or your CMS.

Not reliably. Robots.txt controls crawling, not indexing. A blocked URL can still appear in search if other sites link to it. To keep a page out of the index, use a meta robots "noindex" tag (you can create one with our Meta Tag Generator) instead of, or alongside, robots.txt.

Crawl-delay asks crawlers to wait a set number of seconds between requests, which can reduce server load. Google ignores it, but some other engines respect it. Only add it if your server struggles under crawl traffic; otherwise leave it blank.

Related SEO tools

Keep optimizing \u2014 explore the rest of the SEO toolkit.