Home / Free Tools / Robots.txt Generator
Create a valid robots.txt file in seconds — control what search engines crawl, point them to your sitemap, and avoid costly mistakes.
Your Rules
Your robots.txt
Save as robots.txt in your site root
Robots.txt is a small text file in your site’s root folder that tells search engine crawlers which parts of your site they may and may not access. Used well, it keeps crawlers focused on your important pages and out of admin areas, carts, and thank-you pages. Used badly, it can accidentally hide your entire site from Google. This generator builds a clean, valid file and helps you avoid the dangerous mistakes.
Warning: “Block all crawlers” tells search engines to ignore your entire site. Only use it for staging sites that should never appear in Google. Never put it on your live site.
Technical SEO mistakes quietly cost rankings. We audit and fix robots.txt, sitemaps, indexing, and speed as part of building sites that actually rank.
Common Questions
It must live in your site’s root directory so it is reachable at yoursite.com/robots.txt. Search engines look for it there and nowhere else. On WordPress, your SEO plugin can usually edit it for you, or you can upload the file directly.
No — this is a common misunderstanding. Robots.txt controls crawling, not indexing. A blocked page can still appear in search if other sites link to it. To truly keep a page out of Google, use a noindex meta tag instead, and do not block it in robots.txt (Google needs to crawl it to see the noindex).
Yes. Adding a Sitemap line pointing to your XML sitemap helps search engines discover all your pages efficiently. It is a simple best practice that this generator includes automatically when you add your sitemap URL.
Typically admin areas, login pages, internal search results, cart and checkout pages, and thank-you pages — anything with no SEO value or that you do not want crawled. Be careful not to block CSS, JavaScript, or important content pages, as that can hurt how Google renders and ranks your site.