Robots.txt Generator, Free & Instant

Generate a perfectly formatted robots.txt file in seconds. Control which search engine bots can crawl your site, block sensitive directories, reference your sitemaps, then download or copy in one click. No sign-up. No cost.

100% Free
No Sign-up
20+ Bots Included
One-click Download

Perfect Robots.txt in 4 Steps

1

Choose a Preset

Start from a proven template, Standard SEO, WordPress, E-commerce or Block All. Or build from scratch with custom rules.

2

Configure Bot Rules

Add as many User-agent rules as needed. Choose which bots to allow or block and specify which paths they can or cannot access.

3

Add Sitemaps & Options

Reference your XML sitemap URLs and enable options like crawl delay. The live preview updates as you type.

4

Download & Upload

Click Download to save robots.txt, then upload it to the root of your domain, e.g. https://yoursite.com/robots.txt

Robots.txt Generator

Configure your crawler rules using the form below. The live output updates in real time, download your robots.txt or copy it directly into your site's root directory.

Configure Crawler Rules

Quick Presets
User-agent Rules
Bot / User-agent Directive  
Disallowed Paths (applies to rules above)
Options
Crawl-delay
Seconds between bot requests, use with care, not supported by Googlebot
Block AI Training Bots
Blocks GPTBot, ChatGPT-User, Google-Extended, ClaudeBot, Bytespider and more
Block SEO Crawlers
Blocks AhrefsBot, SemrushBot, MJ12bot, DotBot, reduces server load from scrapers
Block Social Media Bots
Blocks Twitterbot, facebookexternalhit, LinkedInBot, Pinterest crawlers
Sitemap URLs

robots.txt Output

🤖

Configure rules on the left and click
Generate robots.txt

Use Robots.txt Like a Pro SEO

⚠️

Robots.txt ≠ Security

Robots.txt is a polite request, not a security measure. Any bad actor can ignore it. Never rely on robots.txt to hide sensitive data. Use authentication and server-level access control for that.

🔗

Always Reference Your Sitemap

Add a Sitemap: directive pointing to your XML sitemap. Even though you can submit it in Google Search Console, having it in robots.txt ensures every bot that visits discovers it automatically.

🔍

Test Before Going Live

Use Google Search Console's robots.txt Tester to verify your rules before uploading. A single misplaced Disallow: / will block Google from indexing your entire site, always test first.

What Does robots.txt Do?

The robots.txt file sits at the root of your domain and uses the Robots Exclusion Protocol to tell compliant web crawlers which pages they are allowed or not allowed to access. Search engine bots like Googlebot, Bingbot and others check this file before crawling your site. Common uses include blocking admin pages, preventing duplicate content indexing, saving crawl budget on large sites and referencing XML sitemaps. Remember: it controls crawling, not indexing, a page can still appear in search results if other pages link to it, even if it's disallowed.

All Tools, Zero Cost

FREE TOOL

Keyword Research Tool

Discover thousands of keyword ideas with volume, difficulty, CPC and intent data, powered by Google Autocomplete.

Launch Tool
FREE TOOL

Meta Tag Generator

Generate perfectly optimised title tags, meta descriptions, Open Graph and Twitter Cards in seconds.

Launch Tool
FREE TOOL

Website Speed Checker

Measure Core Web Vitals, LCP, INP, CLS, with prioritised recommendations to fix every issue.

Launch Tool

Robots.txt Generator FAQ

Common questions about this free tool, answered clearly.

Does robots.txt stop a page from being indexed?

No. This trips a lot of people up. Robots.txt controls crawling, not indexing. A blocked page can still appear in Google if other pages link to it. To keep a page out of the index, use a noindex tag instead.

Where does the robots.txt file go?

It must sit at the root of your domain, at yoursite.com slash robots.txt. Search engines only look there. A robots.txt in a subfolder is ignored.

Should I block AI crawlers in robots.txt?

Only if you do not want your content used or cited by AI tools. Blocking crawlers like GPTBot or Google-Extended removes you from those answers. If you want AI visibility, allow them and block only private areas.

Want a Full Technical SEO Audit Done for You?

I'll review your robots.txt, crawl configuration, sitemaps and 50+ technical SEO factors, with a clear fix plan.

Copied!