FreeImagesTools
FreeImagesTools

Robots.txt Generator

Build a robots.txt file with per-crawler rules and a sitemap reference, ready to upload to your site's root.

What goes into a robots.txt file

DirectiveWhat it does
User-agentNames which crawler a rule group applies to — a specific bot, or * for all crawlers.
DisallowTells a crawler not to access a given path.
AllowCarves out an exception within a disallowed area, for one file or subfolder.
SitemapPoints crawlers to your sitemap's location so they can discover your pages more efficiently.

Robots.txt controls crawling, not indexing

This is the single most common mix-up with robots.txt: disallowing a path tells crawlers not to fetch it, but it doesn't guarantee that page stays out of search results. If another site links to a blocked URL, Google can still list it with no snippet, since it was never able to crawl the page to find a noindex instruction. If your real goal is keeping a specific page out of search results, let it be crawled and add a page-level noindex tag instead of blocking it here.

It's also worth knowing that Google no longer supports the crawl-delay, nofollow, or noindex directives inside robots.txt — they're simply ignored by Googlebot, even though some other crawlers, like Bing's, still document support for crawl-delay.

Managing AI crawlers

Alongside traditional search engine bots, robots.txt is also where site owners set rules for AI crawlers like GPTBot, ClaudeBot, and PerplexityBot. Without any explicit rule, most of these crawlers can access your content by default. If you'd rather restrict a specific one, add a dedicated user-agent group naming that crawler along with the paths you want to disallow — since each AI company documents its own crawler's name and behavior, it's worth checking their current documentation if this matters to you.

Common robots.txt mistakes

  • Unintended prefix matches. Disallow: /admin blocks any path starting with those characters, including /administrator/ — add a trailing slash if you only mean one specific folder.
  • Case sensitivity. A rule for /Private/ won't match a path served as /private/ — check your site's actual URL casing.
  • Relying on Disallow to remove pages from search. Use a noindex tag on the page itself instead.
  • Forgetting the Sitemap line. It costs nothing to include and helps crawlers discover your pages more efficiently.

Frequently asked questions

Yes, completely free with no signup or usage limit.

Related tools

Or browse the full list of free image tools.