Free robots.txt Generator
Build a valid robots.txt with rules, presets, and a sitemap — copy or download it in seconds.
robots.txt Generator
Build a valid robots.txt file with Allow/Disallow rules, crawl-delay, and sitemap — copy it in seconds
* for all bots, or a name like Googlebot./wp-admin/ or /private/.What is a robots.txt generator?
A robots.txt generator is a free tool that helps you create a robots.txt file — the plain-text file at the root of your domain that tells search-engine crawlers which URLs they may or may not request. The file follows the Robots Exclusion Protocol: each block names a User-agent and lists Allow and Disallow rules, with optional Crawl-delay and Sitemap directives. This online robots.txt generator lets you add rules, pick a preset (allow all, block all, WordPress defaults, or block AI bots), declare your sitemap, and copy a syntactically valid file in seconds. It runs 100% in your browser — nothing you type is ever sent to a server.
How to Create a robots.txt File: Step by Step
A robots.txt file controls crawler access at the path level. This guide walks you through generating a valid file and putting it in the right place.
Choose a User-agent
Enter the crawler the rules apply to. Use an asterisk (*) to target all bots, or a specific name such as Googlebot or Bingbot for a single crawler.
User-agent: *. Add named blocks only when you want different rules for a specific bot.Add Allow and Disallow Rules
Click "Add rule" to list the paths you want to control. Choose Disallow to block a path or Allow to permit one, then type the path beginning with a slash, for example /wp-admin/. Leaving a Disallow value empty allows everything.
Set Crawl-delay and Sitemap (Optional)
Add a crawl-delay in seconds if you want compliant crawlers to slow down — note that Google ignores this directive. Add the absolute URL of your XML sitemap so crawlers can discover all your pages.
Review the Validation Notices
The tool runs a lightweight syntax check as you type and flags common mistakes — such as a path that does not start with a slash, or a sitemap that is not an absolute URL. Fix any warnings before you publish.
/Admin and /admin are different paths.Copy or Download the File
Click "Copy" to put the generated file on your clipboard, or "Download" to save it as robots.txt. Everything happens in your browser — nothing is uploaded.
Upload to Your Domain Root
Place the file at the root of your domain so it is reachable at https://www.example.com/robots.txt. It must live at the root — crawlers do not read a robots.txt in a subdirectory. Then test it in Google Search Console.
Frequently Asked Questions
What is a robots.txt file?
Does robots.txt block a page from being indexed?
noindex meta robots tag or X-Robots-Tag header instead — Google must be able to crawl the page to see the noindex directive.Where do I put the robots.txt file?
https://www.example.com/robots.txt. Crawlers only read robots.txt from the root — a file in a subdirectory like /blog/robots.txt is ignored. Each subdomain needs its own robots.txt.What is the difference between Allow all and Disallow all?
Disallow: line (or no Disallow at all). "Disallow all" blocks every URL with Disallow: /, which tells compliant crawlers to request nothing on the site. An empty Disallow value permits everything; a single slash blocks everything.What is the difference between robots.txt and meta robots?
noindex, nofollow) after the page is crawled. Use robots.txt to manage crawl budget and block sections; use meta robots to keep a specific crawlable page out of search results.Does robots.txt affect SEO?
More free tools: browse the full catalog →