Free tools that run in your browser. Use any tool without an account.

Favourites Cart
Sign in
Join free

Robots.txt Generator

  • Free
  • Runs in your browser
  • No account needed

FreeToolr creates a robots.txt file from your crawler settings, blocked folders, AI crawler choices and sitemap URL. For example, /admin/ can be blocked while the rest of your site stays available.

robots.txt
User-agent: *
Disallow: /admin/
Disallow: /cart/
Disallow: /search

User-agent: OAI-SearchBot
Allow: /

User-agent: ChatGPT-User
Allow: /

User-agent: PerplexityBot
Allow: /

User-agent: Claude-SearchBot
Allow: /

User-agent: Claude-User
Allow: /

User-agent: GPTBot
Disallow: /

User-agent: Google-Extended
Disallow: /

User-agent: CCBot
Disallow: /

User-agent: ClaudeBot
Disallow: /

User-agent: Applebot-Extended
Disallow: /

Sitemap: https://example.com/sitemap.xml
Runs in your browser. Your files and values are not sent to us. Report a problem
Advertisement

About the Robots.txt Generator

The FreeToolr Robots.txt Generator creates a plain-text robots.txt file for your website. SEO specialists, developers and site owners use it to guide compliant crawlers away from selected folders. You can allow all pages or block the whole site for staging sites. Add folders one per line, set separate rules for AI search crawlers and AI training crawlers, then enter your sitemap URL. The result appears instantly as you type, so there is no calculate button. The tool runs in your browser, and nothing is uploaded. You can copy the generated robots.txt or share a link that reopens the form with your settings. The output is designed for the root of a host, such as example.com/robots.txt. Robots.txt is a crawler request, not a security barrier. Do not use it to hide private information.

How to use it

  1. 1Choose Allow all pages or Block the whole site for search engines.
  2. 2Enter folders to block, with one folder path on each line.
  3. 3Choose whether AI search crawlers may access your pages.
  4. 4Choose whether AI training crawlers may access your pages.
  5. 5Add your sitemap URL, then copy the robots.txt result or share the link.
Advertisement

Worked example

Example input: Search engines set to Allow all pages, folders set to /admin/ and /checkout/, and sitemap URL set to https://example.com/sitemap.xml. The resulting core rules are: User-agent: * Disallow: /admin/ Disallow: /checkout/ Sitemap: https://example.com/sitemap.xml This asks compliant crawlers not to request those two folders. The AI crawler groups also reflect the choices made in the form.

How it works

Method used: robots.txt sits at the root of your site (example.com/robots.txt)Each User-agent group lists what that crawler may not readIt is a request, not a lock: never use it to hide private dataBlocking a page in robots.txt does not remove it from Google; use noindex for thatResults update instantly as the visitor types; there is no calculate buttonVisitors can copy the result and share a link that reopens with their numbers

Source: RFC 9309: Robots Exclusion ProtocolGoogle Search Central: Introduction to robots.txtOpenAI: GPTBot documentation. Last checked 3 November 2026.

What it is good for

  • Separate AI search settings from AI training settings.
  • Build rules for blocked folders without editing text by hand.
  • Keep your sitemap URL in the generated file.
  • Robots.txt does not protect private data or stop non-compliant bots.
  • Blocking a URL does not guarantee removal from Google results. Use noindex when suitable.
Advertisement

Questions people ask

What is a robots.txt file?

It is a plain-text file that tells compliant crawlers which paths they may request. It helps manage crawling, but it is not access control.

Where should I place robots.txt?

Place the file at the root of the relevant host, such as https://example.com/robots.txt. A different subdomain may need its own file.

Does robots.txt remove pages from Google?

No. Google can still list a blocked URL if it discovers the URL elsewhere. Use noindex or access controls when you need stronger control.

What does Disallow: / mean?

It asks the applicable crawler not to request any path on that host. Under User-agent: *, it can block all ordinary crawlers.

Is robots.txt a security measure?

No. The file is public, and its rules depend on crawler cooperation. Use authentication, authorization or server controls for private content.

Should I block AI crawlers?

There is no single correct choice. AI search crawlers and AI training crawlers serve different purposes, so choose each setting based on your publishing policy.

Does robots.txt apply to subdomains?

Rules apply to the host where the file is served. For example, example.com and shop.example.com may need separate robots.txt files.

Help keep every tool free

FreeToolr stays free because people help it grow. Share a tool you like, tell us what to build next, or support us on Ko-fi.

Advertisement
Advertisement