robots.txt Generator

Create a robots.txt file to control which pages search engines crawl, with your sitemap link. Free online robots.txt generator — copy or download.

About robots.txt Generator

The robots.txt file sits at the root of your website and tells search engine crawlers such as Googlebot and Bingbot which parts of the site they may crawl. A correct robots.txt keeps crawlers out of admin, cart, checkout and search result pages while making sure your important product and category pages stay crawlable, and it points search engines to your sitemap. DrToolLab's robots.txt generator builds the file from simple settings, so you avoid typos that could accidentally block your whole site from Google. Copy the result or download it and place it at yourdomain.com/robots.txt. Remember that robots.txt is a set of instructions for well-behaved crawlers, not a security feature: private pages should be protected with a login. After publishing, check the file with the robots.txt report in Google Search Console. Everything is generated in your browser and nothing is stored.

How to use robots.txt Generator

  1. 1

    Enter your details or choose your settings.

  2. 2

    The robots.txt Generator updates the result as you change them.

  3. 3

    Copy, download or save the result.

Private by design. Everything is generated in your browser. What you enter is never sent to a server or stored.

Frequently Asked Questions

Where do I put the robots.txt file?

At the root of your domain, so it is reachable at https://yourdomain.com/robots.txt.

Can robots.txt remove a page from Google?

No. It stops crawling, not indexing. To keep a page out of results, use a noindex tag or remove the page.

Should I add my sitemap to robots.txt?

Yes. Adding a Sitemap: line helps search engines find all your pages.

Can a mistake hurt my SEO?

Yes — "Disallow: /" blocks your entire site. Always double-check the rules before publishing.

Related Tools