Robots.txt Generator

Create a robots.txt file to control which pages search engines can crawl.

Also useful for: create robots.txt, block crawlers from folders, add a sitemap to robots.txt.

How to use the Robots.txt Generator

Choose what should stay out of search crawling, add your sitemap link and click Generate. Save the result as a file named robots.txt and upload it to the root of your website, so that it opens at yourdomain.com/robots.txt. Leave the paths box empty to allow everything.

Common uses

Typical uses include keeping admin areas, cart and checkout pages, internal search results and test folders out of crawling, pointing crawlers to your sitemap, and opting out of AI training crawlers. Developers use it when launching a new site, and agencies use it for client audits. Remember to remove a full block before launching a live website, as an accidental Disallow of everything can remove your site from search over time.

Tips

Never block your CSS or JavaScript folders, because search engines need them to understand your pages. After uploading, test the file in Google Search Console.

Related guide

Website SEO checklist for beginners

FAQ

Does robots.txt hide pages from Google?

Not reliably. It asks crawlers not to visit pages, but a blocked URL can still appear in results if other sites link to it. Use a noindex tag or a password for private pages.

Is Crawl-delay used by Google?

No. Google ignores it, although some other crawlers respect it.

More tools

Meta Tag GeneratorXML Sitemap GeneratorKeyword Density CheckerSchema Markup Generator (JSON-LD)Meta Title and Description Length CheckerURL Slug Generator