Robots.txt Generator

Build a valid robots.txt file to control how search engines crawl your site.

100% Free Forever
Disallow paths
Allow paths

No allow rules.

Generated robots.txt
User-agent: *
Disallow: /admin/
Disallow: /private/

Sitemap: https://example.com/sitemap.xml

Free Robots.txt Generator

Build a valid robots.txt file in seconds. Control which pages of your website Google, Bing and other search engines are allowed to crawl. Upload the downloaded file to the root of your domain (e.g., yourdomain.com/robots.txt).

How to use this tool

  1. 1

    Add your sitemap URL

    Help crawlers find every page on your site by linking to your sitemap.xml.

  2. 2

    Set User-agent rules

    Use '*' for all bots, or target a specific one like 'Googlebot' or 'Bingbot'.

  3. 3

    Add Disallow paths

    List URL paths search engines should NOT crawl (e.g., /admin/, /cart/).

  4. 4

    Add Allow exceptions

    Use Allow to whitelist specific files inside a disallowed folder.

  5. 5

    Download & upload

    Save the robots.txt and upload it to the root folder of your website.

Pro tips

  • robots.txt blocks crawling, not indexing — use 'noindex' meta tag to keep pages out of search results.
  • Always include a Sitemap line so bots discover all your URLs.
  • Test the file with Google Search Console's robots.txt Tester before going live.
  • Be careful: blocking '/' will hide your entire site from search engines.

Frequently asked questions

What is a robots.txt file?

It's a plain-text file at the root of your domain that tells web crawlers which parts of your site they can or cannot access.

Where do I upload robots.txt?

Place it at the root of your domain so it's accessible at https://yourdomain.com/robots.txt.

Does robots.txt guarantee a page won't appear in Google?

No. To fully exclude a page from search results, use a 'noindex' meta tag instead.

Related Tools

We use minimal cookies for site preferences, aggregated analytics and advertising. Your files are always processed in your browser and never uploaded. Privacy Policy