Home » SEO Tools » Robots Txt Generator

Free Robots.txt Generator

Build a simple robots.txt file for your site, control which paths crawlers should skip, and add your sitemap address.

Last updated 13 November 2026

Use the tool

Note: a robots.txt file is a request to crawlers, not a security wall. Also note that Google ignores crawl delay, so that line is only a hint for crawlers that respect it.

A robots.txt file tells search engine crawlers which parts of a site they may visit and which parts they should skip. It lives at the root of a site, for example at the address that ends with robots.txt, and crawlers read it before they crawl.

This tool builds a simple robots.txt file from your choices. Tick the paths you want to block, add your sitemap address, and copy or download the result to upload at your site root.

How to Use This Tool

  1. Tick disallow paths: choose paths that hold admin pages, login pages or private files.
  2. Add custom paths if needed: type one path per line for anything not listed.
  3. Add your sitemap URL: this helps crawlers find your sitemap file.
  4. Click Generate Robots File: copy the output or download it as robots.txt, then upload it to your site root.

Good Practice Tips

  • Do not block useful pages: blocking a page that should rank can hide it from search results.
  • Robots is not security: anyone can read a robots.txt file, so never use it to hide truly private data. Use a password or a login for that.
  • Test after upload: open the file in a browser at your site root to confirm it uploaded to the right place.
  • Keep it simple: most small sites only need a few disallow rules and a sitemap line.

What Is a Robots.txt File?

A robots.txt file is a small text file that sits at the root of a website. It tells search engine crawlers which parts of a site they may visit and which parts they should skip. A crawler reads the file before it crawls, so it is the first thing a search engine sees. The file is a request, not a wall. A crawler can ignore it, and anyone can read it, so never use it to hide private data. Use a password or a login for that.

A robots.txt file does not remove a page from Google by itself. A blocked page can still appear in search results without its content if other pages link to it. To keep a page out of search results, use a noindex tag on the page instead.

Robots.txt Syntax and Directives

A robots.txt file is made of groups. Each group starts with a User-agent line that names the crawler the group is for, then one or more rules. Here are the directives you will use most:

  • Disallow: a path the crawler should skip, for example /admin/.
  • Allow: an exception inside a blocked path, for example /admin/help/.
  • Sitemap: the address of your sitemap file, so crawlers can find it.
  • Crawl-delay: a pause between requests in seconds. Google ignores this one, but some other crawlers respect it.

This generator writes one group for all crawlers (User-agent: *) with the Disallow lines you tick, plus the Sitemap and Crawl-delay lines when you add them.

Robots.txt Example

Here is a complete robots.txt file of the kind this generator writes. It blocks the admin, login and temporary folders, then points crawlers at the sitemap:

User-agent: *
Disallow: /admin/
Disallow: /login/
Disallow: /tmp/

Sitemap: https://example.com/sitemap.xml

Should You Block AI Bots?

AI crawlers visit sites to train AI models and to power AI answers. The best known are GPTBot, ClaudeBot, Google-Extended, OAI-SearchBot and PerplexityBot. Blocking them is a choice. Some sites block AI training but let AI search bots visit, so their pages can still appear in AI answers.

A Disallow rule under User-agent: * blocks every crawler from that path, including AI bots. To block one bot only, add a group for that bot to the file after you download it, with a Disallow line inside it. Then test the result with the robots.txt tester to check that your rules allow and block the right URLs.

Where to Upload Robots.txt

Upload the file at the root of your site, so it opens at the address that ends with robots.txt, not inside a subfolder. After you upload it, open it in a browser to confirm it is in the right place, then test it with the robots.txt tester to check that your rules work as you expect.

Frequently Asked Questions

Does robots.txt block a page from Google completely?

No. Robots.txt asks crawlers not to visit a path, but it is a request, not a guarantee, and it is not a way to hide private data.

Where do I upload robots.txt?

Upload it at the root of your site, so it opens at the address that ends with robots.txt, not inside a subfolder.

Should I disallow my login page?

In most cases yes, a login page gives searchers nothing useful, so blocking it keeps crawlers focused on your real content.

Is my input uploaded to a server?

No. Everything runs in your browser on your own device, so your text never leaves your computer.

What is a robots.txt generator?

A robots.txt generator is a tool that builds a robots.txt file for you. You tick the paths you want to block, add your sitemap address, and the tool writes the file for you to copy or download.

Is it free?

Yes. The robots.txt generator is free to use, with no signup, no download and no limit on how many times you use it. Everything runs in your browser.

How do I block AI bots like GPTBot?

Add a group for that bot in your robots.txt file with a Disallow line for the paths you want to block. This generator writes one group for all crawlers, so for a rule that targets one bot only, add that group to the downloaded file by hand, then test it with the robots.txt tester.

Does Google support crawl-delay?

No. Google ignores crawl-delay. This generator still lets you add it because some other crawlers respect it.

Do I need a robots.txt file?

Most sites do not strictly need one, but it is useful when you have admin pages, login pages, or private files that crawlers should skip. If your site has nothing to block, you can use a simple file that allows everything.

How long does Google take to see robots.txt changes?

Google reads your robots.txt file again on its own, usually within a few days. You can also ask for a fresh crawl in Google Search Console.

↑