Skip to content

Robots.txt Generator

Build a valid robots.txt with per-crawler rules in a minute.

Default rule

Applies to every crawler you do not name below.

Named crawlers

Add a rule for a specific bot. A bot with its own group ignores the default one entirely.

robots.txt is a request, not a lock. It stops well-behaved crawlers fetching a URL; it does not hide the page, keep it out of the index reliably, or protect anything private.

robots.txt

Upload this to the root of your domain so it is served at example.com/robots.txt.

Quick Tool Overview

The Robots.txt Generator builds a valid robots.txt with a default policy, disallowed paths, a sitemap reference and per-crawler rules. The file is written as you go, one group per user-agent, in the format the specification expects.

What it does
Generates a valid robots.txt file with per-crawler rules
You give it
A default policy, paths to block and your sitemap URL
You get back
A ready-to-upload robots.txt
Best for
New sites, staging environments and blocking AI crawlers
SEO Tools Free, unlimited use No sign-up Runs in your browser

About the Robots.txt Generator

Set your default policy, add the paths you want kept out of crawling, point to your sitemap and add per-crawler rules where you need them. The file is written as you go, with one group per user-agent, in the format the specification expects.

One-click presets cover the crawlers people usually want to name: Googlebot and Bingbot, the SEO crawlers AhrefsBot and SemrushBot, and the AI training and answer bots such as GPTBot, ClaudeBot, CCBot and PerplexityBot. Remember what robots.txt does and does not do — it asks well-behaved crawlers not to fetch a URL, but it is not access control and it is not a reliable way to keep a page out of the index. A URL blocked here can still be listed if other sites link to it, because the crawler never reads the noindex tag it was blocked from fetching.

Key features of the Robots.txt Generator

One-click crawler presets

Googlebot and Bingbot, the SEO crawlers AhrefsBot and SemrushBot, and AI bots such as GPTBot, ClaudeBot, CCBot and PerplexityBot.

Per-user-agent groups

Different rules for different crawlers are written as separate correctly-formed groups.

Sitemap directive included

Point crawlers at your sitemap from the same file, which is where they look for it.

Valid syntax by construction

The file is assembled from your choices rather than hand-typed, so a stray character cannot invalidate a rule.

Clear about the limits

Robots.txt asks well-behaved crawlers not to fetch a URL — it is not access control, and a blocked URL can still be indexed if other sites link to it.

How to use the Robots.txt Generator

  1. 1

    Pick your default policy

    Allow everything and block exceptions, or block everything and allow exceptions. Allow-by-default suits almost every public site.

  2. 2

    Add the paths to keep out

    List directories such as /admin/ or /cart/, one per line. A trailing slash blocks a whole folder.

  3. 3

    Add crawler-specific rules

    Use the presets to add a group for a named bot, such as blocking an AI crawler while leaving search engines untouched.

  4. 4

    Add your sitemap and download

    Add the full sitemap URL, then download the file and upload it to the root of your domain.

Frequently asked questions

At the root of the host, as example.com/robots.txt, served as plain text. A file in a subfolder is ignored, and each subdomain needs its own.

Reviews of the Robots.txt Generator

What people who use the Robots.txt Generator think of it. Reviews come from visitors and are posted as written.

No ratings yet

Yours would be the first.

  • 5 0 reviews rated 5 stars
  • 4 0 reviews rated 4 stars
  • 3 0 reviews rated 3 stars
  • 2 0 reviews rated 2 stars
  • 1 0 reviews rated 1 star

Write a review

Used this tool? Your rating helps the next person decide.

Your rating

Plain text only — links, email addresses and HTML are not accepted. Your name and review are shown publicly; nothing else is collected. See the privacy policy.

0 reviews

Newest first

No reviews yet

Be the first to rate the Robots.txt Generator. It takes half a minute and no account.

Write the first review

More SEO tools