Generator Tools

Robots.txt Generator

Generate robots.txt file for search engines.

How to Use Robots.txt Generator

1

Enter your domain and the sitemap URL, then add a row for each path you want to disallow, such as /admin or /cart.

2

Choose whether the rules apply to every user agent or to one named bot, and set a crawl delay in seconds if the site needs one.

3

Click the "Generate" button to produce the file, then read it back carefully and check that each Disallow line has a value after the colon.

4

Copy the output into a plain file named robots.txt with no file extension, then upload it to the root of your domain so it loads at /robots.txt.

Features

Free to use with no account required
Builds valid User-agent, Disallow, Allow and Sitemap directives
Target all crawlers or one specific bot such as Googlebot
Optional crawl delay for large or busy websites
Generates a clean, commented file that is ready to upload
One-click copy and instant regeneration as rules change

Frequently Asked Questions

No. It only controls crawling, not indexing, and Google can still list a blocked URL if some other page links to it. For a page that must not appear in results, allow crawling and add a noindex meta tag instead.
In the root directory of your domain so that it loads at yoursite.com/robots.txt. Placing it inside a subfolder such as /public/robots.txt means search engines will never find it and your rules will have no effect.
A rule written as Disallow: / blocks everything, which is useful while a site is in development but fatal for a live domain. Check the generated file for any catch-all rule before you upload it.
No, it is free and needs no sign-up. The file is assembled in your browser, and it is well worth testing the finished version in a robots.txt tester before pushing it live.

About Robots.txt Generator

robots.txt is a plain text file at the root of your domain that tells crawlers which paths they may not fetch. It is one of the simplest files on the web and one of the easiest to get dangerously wrong. A single missing line break, or a rule written as Disallow: with no value after the colon, can quietly expose an entire staging area to indexing, which is why building the file from a form is safer than hand-typing it.

This Robots.txt Generator assembles the common blocks for you. Point it at your sitemap URL and the file is written with the correct Sitemap directive for Google to pick up. You can then disallow the admin, cart, account and internal search result paths that generate thousands of duplicate or private URLs, apply the rules to every crawler or target one named bot, and add a crawl delay if a large site needs to be gentler on the server.

One warning is worth repeating: robots.txt stops crawlers, it does not protect secrets. A disallowed URL can still appear in results if another page links to it, and the path itself stays visible to anyone who guesses. Anything genuinely confidential should sit behind a login, and a noindex header is the stronger tool for keeping a page out of search results.

When to Use This Tool

  • Keeping admin, cart and account pages out of search results
  • Blocking internal search pages that create duplicate content
  • Preventing duplicate URLs from parameters and tracking tags
  • Pointing Google and Bing at your XML sitemap
  • Adding a crawl delay for a large or resource-heavy site