SEO

Robots.txt Generator

Generate a valid robots.txt file visually. Add user-agents, control allow/disallow rules, set crawl delays, and specify your sitemap URL — no manual editing required.

Presets:
robots.txt
 

What is Robots.txt Generator?

The robots.txt file sits at the root of your domain and tells search engine crawlers which pages they can and cannot access. It's one of the first files a bot checks when it visits your site.

A well-configured robots.txt prevents search engines from wasting crawl budget on admin pages, staging paths, duplicate content, and internal search results — directing them toward the content that actually matters.

This tool lets you build a robots.txt file visually without having to memorise the syntax. Add as many user-agent / rule blocks as you need, preview the output in real time, and copy it with one click.

How to use

1
Choose a preset or start from scratch
Select a common preset (allow all, block all, or common CMS paths) or configure rules manually.
2
Add rules for each bot
Use * for all crawlers or specify bots like Googlebot or Bingbot individually. Add disallow and allow paths.
3
Set crawl delay and sitemap
Optionally add a crawl delay and your sitemap URL — these help search engines crawl your site more efficiently.
4
Copy and deploy
Copy the generated file and save it as /robots.txt at the root of your domain.

Frequently asked questions

QDoes robots.txt block all crawlers?

It's a convention, not a technical barrier. Well-behaved bots like Googlebot respect it; malicious scrapers may ignore it entirely.

QWill disallowing a page remove it from Google?

No — disallowing a URL only stops Google from crawling it. If other pages link to it, Google may still index it. Use the noindex meta tag to prevent indexing.

QWhere does robots.txt go?

It must be at the root of your domain: https://example.com/robots.txt. Subdirectory placement does not work.

QShould I disallow /admin/ and /wp-admin/?

Yes — these paths should be blocked from crawlers. They provide no SEO value and waste crawl budget.

QWhat is Disallow: / ?

A single slash blocks the entire site from the specified user agent. Only use this on staging environments, never on production.

Found a bug or issue with this tool?
If something isn't working as expected, let us know and we'll fix it.
Report this bug
Embed this tool

Copy and paste this iframe code into your website.

<iframe   src="https://usetool.space/embed/seo/robots-txt"  width="100%"   height="860px"  frameborder="0"  loading="lazy"  title="Robots.txt Generator — useTool"></iframe>
✨ Missing something?
Can't find the tool you need?
Request it — we build new tools based on what people ask for.
Request a tool