Free Tools · by The Cited Brand
100% FREE · NO SIGN-UP

Free robots.txt Generator

Make a robots.txt file in 2 minutes. Pick which bots may visit your site, add the pages you want to keep private, and download a clean file — ready to upload. Everything runs in your browser; nothing you type leaves your computer.

robots.txt Generator

Fill in the form, press Generate, and download your file. The default is open: every bot is allowed. Change only the bots you want to block.

Used for the Sitemap line and the comment at the top of your file.

Leave empty and we use your site address + /sitemap.xml.

Which bots may visit your site?

"Allow" writes an explicit Allow rule for that bot. "Disallow" blocks the bot from the whole site. "No rule" leaves the bot out of the file — it follows the general * rules instead (allowed, unless you block pages below). Bot list checked 18 Nov 2026.

BotRule

One rule per line, like "Disallow: /private/". These go in the general * group, so they apply to every bot. Lines that do not look like Allow or Disallow rules are skipped.

Asks bots to wait this long between visits. Google ignores Crawl-delay completely — some other bots respect it.

What is a robots.txt generator?

A robots.txt generator writes a robots.txt file for you. robots.txt is a small text file that lives at the root of a website — for example example.com/robots.txt. It tells bots which pages they may visit and which pages they must skip.

Writing the file by hand is easy to get wrong: one typo in a bot name, and the rule is ignored. This generator spells every bot name correctly, groups the rules the right way, and adds your Sitemap line for you.

How the rules work

A robots.txt file is made of groups. Each group starts with one or more User-agent lines, then the rules for those bots. Three ideas decide the result:

  1. The most specific group wins. If a bot has its own group (for example User-agent: GPTBot), only that group counts for it. The general group (User-agent: *) is ignored for that bot.
  2. The longest matching rule wins. If a group has both Disallow: / and Allow: /public/, a bot may visit /public/ but nothing else. On a tie, Allow wins.
  3. Wildcards work. A star (*) in a rule matches anything, and a dollar sign ($) at the end means "the path must end here". For example Disallow: /*.pdf$ blocks all PDF files.

How to use the robots.txt generator (3 steps)

  1. Type your website address above. Use the full address, like https://example.com. If you skip the https:// part, we add it for you.
  2. Pick a rule for each bot. The default is Allow for every bot. Switch a bot to Disallow only if you want it blocked from the whole site. Add your private pages (like /admin/) in the extra-rules box.
  3. Press "Generate my robots.txt", then Download. The file is made in your browser — nothing is sent to our server. Save it as robots.txt.

How to use the result (3 steps)

  1. Upload the file to the root folder of your site. That is the same folder as your home page. After upload, the file should open at yoursite.com/robots.txt. Most hosts let you upload it from the file manager in your hosting control panel, or with an SEO plugin like Yoast or Rank Math.
  2. Check it with the robots.txt checker. Run your site through our free robots.txt checker to confirm the file loads, the rules are right, and nothing is blocked by mistake.
  3. Test the pages that matter. Use the checker's tester to confirm your home page, your best article, and any page you want AI tools to read are allowed for the bots you care about.

What this tool does NOT do

Here is the honest answer: this tool writes a file — it does not upload it, and it cannot force bots to obey it.

You still need to upload the file to your site yourself. And robots.txt is a request, not a lock: honest bots follow it, but bad bots ignore it. Never use robots.txt to hide private or secret pages — use a password or a login wall for those.

It also checks nothing about your site. After uploading, run the robots.txt checker to confirm the file works the way you meant.

More free tools

More free tools that go with this one:

Frequently asked questions

What is a robots.txt generator?

It is a tool that writes a robots.txt file for you. You pick which bots may visit your site and which pages they must skip, and the tool turns your choices into a clean file you can download and upload to your site.

Is this robots.txt generator free?

Yes. This robots.txt generator is 100% free. You do not need an account. Everything runs in your browser — nothing you type is sent to our server.

How do I make a robots.txt file?

Type your site address above, pick Allow or Disallow for each bot, add your sitemap address, and press 'Generate my robots.txt'. Then press Download to save the file, and upload it to the root folder of your site — the same folder as your home page.

What should I put in my robots.txt file?

Three things cover most sites: the bots you want to allow or block, the pages you want to keep private (like /admin/ or /private/), and a Sitemap line so bots find your sitemap faster. Do not block pages you want in search results.

Should I block AI bots in robots.txt?

It depends on what the bot does. Bots that fetch pages for AI answers (like OAI-SearchBot and PerplexityBot) help your pages show up in AI tools — blocking them hides your site from AI answers. Bots that collect training data (like GPTBot and CCBot) only train AI models — blocking them is a fair choice and does not hurt your search rankings.

What does Disallow: / mean?

It means 'stay away from the whole site' for the bots in that group. If the group is User-agent: *, it blocks every bot — including Google. Only use it if you really want no bot to visit your site.

Do I need a Sitemap line in robots.txt?

You do not need one, but it is an easy win. One line — 'Sitemap: https://example.com/sitemap.xml' — tells bots where your sitemap is, so they find your pages faster. This generator adds the line for you when you tick the box.

What is Crawl-delay, and does Google follow it?

Crawl-delay asks bots to wait a few seconds between visits. Google ignores it completely. Some other bots respect it. If you need to slow Google down, use Google Search Console instead.

How do I upload robots.txt to my site?

Download the file, then upload it to the root folder of your site — the same folder as your home page — so it opens at yoursite.com/robots.txt. Most hosts let you upload it from the file manager in your hosting control panel, or with an SEO plugin like Yoast or Rank Math.

Does robots.txt stop all bots?

No. robots.txt is a request, not a lock. Honest bots (Google, OpenAI, Anthropic, and the rest) follow it. Bad bots ignore it. Never use robots.txt to hide private or secret pages — use a password or a login wall for those.