Robots.txt Generator
Build a correct robots.txt file for your site in seconds. Select your CMS, choose what to block, and copy the result.
Why use our Robots.txt Generator
CMS presets built in
Select WordPress, Shopify, or another common CMS and get sensible default disallow rules pre-filled, no need to research the right paths yourself.
Free robots.txt builder, no signup
Generate a valid robots.txt file online with no account required, unlike CMS SEO plugins that bundle this behind a premium tier.
Avoids the most costly mistakes
Helps you avoid accidentally blocking your entire site with a stray Disallow: /, one of the most common self-inflicted SEO disasters.
Copy-paste ready output
Generates a complete, correctly formatted robots.txt file instantly, ready to upload to your domain root with no manual syntax cleanup.
Your CMS / Platform
Crawl permission
Block common pages
Custom disallow paths
One path per line, e.g. /private/
Sitemap URL (optional)
💡 How to upload this
Upload robots.txt to your site's root directory so it's accessible at yoursite.com/robots.txt. In WordPress, use a plugin like Yoast SEO. In Next.js, create src/app/robots.ts.
Why robots.txt matters for SEO
Real Robots.txt Generator example: before vs. after
A WordPress site's robots.txt: default/missing rules vs. a properly configured file.
User-agent: * Disallow: # No sitemap reference # wp-admin, cart, and search pages all crawlable
Wastes crawl budget on admin pages and internal search results, and gives crawlers no sitemap link to discover pages faster.
User-agent: * Disallow: /wp-admin/ Disallow: /cart/ Disallow: /?s= Allow: /wp-admin/admin-ajax.php Sitemap: https://example.com/sitemap.xml
Blocks low-value paths from wasting crawl budget and points crawlers straight to the sitemap for faster page discovery.
Frequently Asked Questions
What is a robots.txt file and do I need one?
What happens if I block a page in robots.txt by mistake?
Should I block /wp-admin/ and other admin folders?
Do I need to include my sitemap URL in robots.txt?
Check if your robots.txt is blocking Google
SEOMentor checks robots.txt, sitemap, SSL, and 50+ other technical issues in one 30-second scan.
Scan your site freeExplore More Tools
Meta Title Generator
Generate 5 SEO-optimized title tag options from your keyword and page topic. Includes character count and click-worthiness score.
Try it free AI-PoweredMeta Description Generator
Generate 5 SEO-optimized meta description options from your keyword. Includes 140-160 character check and click-worthiness tips.
Try it free AI-PoweredSchema Markup Generator
Build valid JSON-LD structured data for any page type Article, Product, FAQ, LocalBusiness, and more. Copy-paste ready.
Try it free