Robots.txt Generator

Fill in the fields below to generate a valid robots.txt file. This is a generator only — it does not change your live website.

What Is Robots.txt?

A robots.txt file, placed at the root of a domain (e.g. example.com/robots.txt), tells well-behaved web crawlers which parts of a site they're allowed or asked not to crawl. It's a set of instructions, not an enforced lock.

Why Is It Useful?

It lets you point crawlers away from pages you don't want indexed — like an admin area or an internal dashboard — and can point them toward your sitemap to help them discover your content more efficiently.

How to Use It

Enter a user-agent (* applies the rules to all crawlers), list paths to allow and disallow, and optionally add your sitemap URL. Copy the generated text or download it, then upload it as robots.txt at the root of your site.

How to Interpret the Results

Disallow rules are requests, not guarantees — well-behaved crawlers (like major search engines) respect them, but robots.txt is not a security mechanism and shouldn't be relied on to keep sensitive content private.

Common Mistakes

Limitations

This tool only generates text — it does not upload, validate against your live site, or verify that crawlers are respecting the rules. You're responsible for placing the file correctly on your own server.

Frequently Asked Questions

Does robots.txt keep pages out of Google?

Not reliably by itself. A disallowed page can sometimes still appear in search results (e.g. if other sites link to it) without its content being shown. Use a noindex meta tag for pages you want fully excluded.

Where do I upload robots.txt?

At the root of your domain, so it's reachable at https://yourdomain.com/robots.txt — not inside a subfolder.

What does "User-agent: *" mean?

The asterisk (*) is a wildcard meaning "all crawlers." You can also target a specific crawler by name if needed.

Is robots.txt a security feature?

No. It's a public file that crawlers may or may not respect. Never rely on it to hide sensitive or private data — use proper authentication for that.

Related Tools

Also Managing Links?

klikwit's free URL shortener, QR codes and link analytics live right alongside these SEO tools.

Try the URL Shortener