Get a Free Consultation

Robots.txt Generator

Set crawl rules for every bot or for specific crawlers, block private paths, add your sitemap, then copy or download a valid robots.txt for your site root. Free, no sign-up, and nothing leaves your browser.

Updated Presets for SEO and AI crawlers Copy or download as robots.txt

Your robots.txt rules

Jump to your robots.txt
1Start from a preset

A preset replaces your current rules. You can edit everything afterwards.

2Crawler rules User-agent groups
3Sitemaps recommended

Use full URLs. You can list several, such as a news or video sitemap.

More details: crawl-delay

Applied to every group. Bing and some other bots follow it, but Google ignores it.

What is a robots.txt file?

A robots.txt file is a plain text file at the root of your website that tells crawlers which URLs they may or may not request. It follows the Robots Exclusion Protocol, and well-behaved bots from Google, Bing and others check it before crawling.

It is mainly a crawl-management tool. Use it to keep bots out of admin areas, internal search results and endless filter URLs, and to point them to your sitemap.

It is not a security feature and it does not hide pages from Google. A blocked URL can still be indexed if other sites link to it, and the file is public, so never list secrets in it.

Robots.txt example

User-agent: *
Disallow: /wp-admin/
Disallow: /cart/
Allow: /wp-admin/admin-ajax.php

User-agent: GPTBot
Disallow: /

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

Which robots.txt directives should you use?

Most sites need only three: User-agent, Disallow and Sitemap. Add Allow when you need an exception.

Based on Google’s robots.txt documentation and RFC 9309. Last checked October 2026.
DirectiveWhat it doesPriority
User-agentNames the crawler a group of rules applies to, or * for allAlways include
DisallowBlocks a path. An empty value allows everythingAlways include
SitemapGives the full URL of an XML sitemapStrongly recommended
AllowRe-opens a path inside a blocked folderWhen you need an exception
Crawl-delayAsks a bot to wait between requests. Google ignores itIf it applies
* and $Wildcards for patterns, and end-of-URL matchingIf it applies

Robots.txt or noindex: which should you use?

They solve different problems. One controls crawling, the other controls indexing.

Robots.txt Disallow

To stop crawling

  • Admin, cart and checkout areas
  • Internal search and filter URLs
  • Saving crawl budget on large sites
  • Keeping bots off staging paths

Noindex tag

To keep a page out of search

  • Thank-you and confirmation pages
  • Thin or duplicate pages
  • Pages you want crawled but not shown
  • Needs the page to stay crawlable

How do you add a robots.txt file to a website?

The generator writes the file. These four steps get it live and checked.

  1. Choose a preset

    Start from a preset, or build your own rules.

  2. Edit the rules

    Add bots, block paths and list your sitemap.

  3. Download the file

    Save it with the exact name robots.txt.

  4. Upload and test

    Place it at your site root, then check it in Search Console.

The file must live at the root, for example https://www.example.com/robots.txt. On WordPress, Shopify and Wix the platform or an SEO plugin often manages it, so check your current file before overwriting it. Never disallow CSS or JavaScript files that your pages need to render.

Robots.txt questions, answered

Short answers on rules, placement and AI crawlers.

What is a robots.txt file used for?

A robots.txt file tells crawlers which parts of your site they may request. It helps you keep bots out of low-value or private areas and point them to your sitemap.

Where do I put the robots.txt file?

Upload it to the root of your domain, so it loads at yourdomain.com/robots.txt. Crawlers do not look for it in subfolders, and each subdomain needs its own file.

Does robots.txt remove a page from Google?

No. Blocking a URL stops crawling, but the URL can still be indexed if other pages link to it. To keep a page out of search, use a noindex tag and leave the page crawlable.

What does Disallow: / do?

It blocks the whole site for the bots in that group. It is useful for staging sites and dangerous on a live one, so check it twice before you upload.

How do I block AI crawlers like GPTBot and ClaudeBot?

Add a group for each crawler with Disallow: /. The Block AI bots preset does this for common ones. Reputable crawlers follow robots.txt, but it is a request, not enforcement.

Does Google support Crawl-delay?

No. Google ignores the Crawl-delay directive. Bing and some other crawlers respect it. Use it only if a specific bot is overloading your server.

Should I add my sitemap to robots.txt?

Yes. A Sitemap line with the full URL helps crawlers discover it. You can list more than one sitemap, and the line works regardless of the user-agent groups.

Can I test my robots.txt file?

Yes. Google Search Console shows how Google fetched your file and any errors, and you can use its URL Inspection tool to check whether a page is blocked.

Is this robots.txt generator free?

Yes. It is completely free, with no sign-up and no limit. Everything runs in your browser, so what you type is never uploaded to a server.

Not sure what to block?

Search Savvy’s technical SEO team audits your crawl rules, sitemaps and indexing, and fixes the issues that waste crawl budget.

See our SEO services
5 ★★★★★ 9 Google reviews