Build a valid robots.txt in seconds — allow or block crawlers, add disallow rules, a crawl-delay and your sitemap — then copy it straight to your site root.
The Robots.txt Generator writes a correctly-formatted robots.txt for you from a simple form. Choose to allow everything, block everything, or set custom allow/disallow rules per user-agent, add an optional crawl-delay, and point crawlers to your sitemap — the tool keeps the syntax valid so a stray character never blocks your whole site.
robots.txt tells search engine crawlers which parts of your site they may request. A single wrong line can deindex pages or expose paths you meant to hide, so getting the syntax right matters. This generator runs in your browser, produces copy-ready output, and you simply paste it into a file named robots.txt at your domain root.
One click for "allow all" or "block all", or set your own rules.
Add disallow/allow paths and a crawl-delay per user-agent.
Drop in your sitemap URL so crawlers find every page.
Pick a preset or add custom allow/disallow paths and your sitemap URL.
Grab the generated, validated robots.txt text.
Save it as robots.txt at https://yourdomain.com/robots.txt.
Review the generated file, upload it to the root of the host so it loads at /robots.txt with a 200 status, and test important URLs afterwards. A sound file blocks only low-value paths such as internal search or cart pages, leaves CSS and JavaScript crawlable and includes a Sitemap line. Create a separate file for each subdomain. Keep a copy of the previous file so you can roll back, and recheck the rules after site migrations or theme changes.
A stray Disallow: / can block the whole site, so test before and after publishing. Robots.txt controls crawling, not indexing, so use noindex for pages you want removed from results. Do not list private paths as a way to hide them, because the file is public. Avoid blocking resources needed to render pages.
Browse all 41 free technical seo tools, or see the full free SEO toolbox. If you would rather have this handled for you, take a look at our technical SEO services and the results from real projects.