Browse all tools
SEO Tool

Robots.txt Generator

A free robots.txt generator. Set crawler rules, block AI bots like GPTBot and ClaudeBot with one click, add your sitemap, and copy or download a valid robots.txt file. No signup, everything runs in your browser.

1Choose a starting point
2Set crawler rules
3Block AI crawlers optional

Adds a Disallow-all rule for each bot you check.

4Add sitemaps optional

One full URL per line.

Your robots.txt
robots.txt

Upload this file to the root of your site so it loads at /robots.txt.

Guide

How to use the robots.txt generator

1

Pick a Starting Point

Use a quick-start preset like Allow everything, Block everything, or WordPress, or build your own rules from scratch.

2

Set Your Rules

Add a user-agent, list the paths to disallow or allow, check any AI crawlers to block, and paste your sitemap URLs. The file updates as you type.

3

Copy or Download

Copy the robots.txt or download the file, then upload it to the root of your site so it loads at yoursite.com/robots.txt.

Robots.txt Generator

Create a robots.txt File, the Right Way

Benefits

Why Use This Robots.txt Generator

Quick-Start Presets

One click for Allow everything, Block everything, or a sensible WordPress setup. Tweak from there.

Block AI Crawlers

Tick a box to keep GPTBot, ClaudeBot, CCBot, Google-Extended, and other AI bots out of your content.

Multiple Rule Groups

Set different Allow and Disallow rules for each user-agent, with as many groups as you need.

Crawl-delay Support

Add a crawl-delay for bots that respect it, to ease load on busy servers.

Sitemap Lines

List one or more sitemap URLs and they are added to the file in the right format.

Live Preview

See the finished robots.txt update as you type, then copy or download it in one click.

FAQ

Frequently Asked Questions

Common questions about robots.txt and crawler control.

How do I create a robots.txt file?

Pick a starting preset, set your crawler rules, optionally block AI bots and add your sitemap, then copy or download the file. Save it as robots.txt and upload it to the root of your domain so it loads at yoursite.com/robots.txt. This generator writes valid syntax for you, free.

What is a robots.txt file?

A robots.txt file is a plain text file at the root of your site that tells crawlers which pages or folders they may or may not fetch. Search engines read it before crawling, so it helps you steer crawl budget and keep low-value pages out of the queue.

Where do I put the robots.txt file?

At the root of your domain, so it is reachable at yoursite.com/robots.txt. It will not work in a subfolder, and a site can have only one robots.txt file.

Does robots.txt stop a page from being indexed?

Not reliably. Disallow stops crawling, but a blocked URL can still appear in search if other pages link to it. To keep a page out of the index, use a noindex meta tag or header instead, and leave it crawlable so Google can see the noindex.

Can I block AI crawlers with robots.txt?

Yes. Click Block AI crawlers to add Disallow rules for bots like GPTBot, ClaudeBot, Google-Extended, and PerplexityBot. Compliant AI crawlers honor these rules, though robots.txt is a request, not enforcement.

What does Disallow: / do?

It blocks the entire site for that user-agent. It is useful on a staging server, but on a live site it will remove you from search, so use it with care.

What does an empty Disallow mean?

An empty Disallow (Disallow: with nothing after it) means allow everything. It is the standard way to say a crawler may access the whole site.

Is this robots.txt generator free?

Yes, it is completely free with no sign-up and no limits. Everything runs in your browser, so nothing is uploaded.

Scroll to Top