Robots.txt Generator Online
Build robots.txt crawl rules with user-agent groups and optional sitemap URLs.
Open Robots.txt GeneratorFree · No sign-up · Browser-based processing
What Robots.txt Generator does
Create a robots.txt file from explicit user-agent groups, Allow and Disallow paths, and sitemap URLs. The output is intended for the root of one website. Robots rules guide cooperative crawlers; they do not hide private files or guarantee that a URL disappears from search results.
Common uses
- Configure crawler access to public site paths
- Advertise a sitemap location
How to use Robots.txt Generator
- Enter a JSON configuration with groups and optional sitemaps.
- Run the generator and review every Disallow rule for unintended blocking.
- Download robots.txt and publish it at the root of your own site.
Privacy: Runs locally in your browser. Input is not uploaded to the DevNet Kit server.
Robots.txt Generator example
Try the tool with this representative input:
{"groups":[{"agent":"*","allow":["/"],"disallow":["/admin/"]}],"sitemaps":["https://example.com/sitemap.xml"]}Expected result
User-agent: *
Allow: /
Disallow: /admin/
Sitemap: https://example.com/sitemap.xmlRobots.txt Generator FAQ
Does Disallow keep a URL out of search?
Not necessarily. A blocked URL can still be indexed without its content. Use an appropriate noindex directive on crawlable pages when removal is intended.
Does this publish the file?
No. Download the generated file and deploy it with your site. Private resources require authentication.
Create a root robots.txt with a blocked path and sitemap URL
Provide user-agent groups with allow and disallow arrays, plus absolute sitemap URLs. Generate the text, review every path and publish the file at the root of the intended host, such as https://example.com/robots.txt.
A crawl rule does not provide authentication or guarantee removal from search. A URL blocked from crawling can still be listed without its page content. When using a noindex directive, the crawler needs access to read that directive.
Worked example
Input and settings:
{"groups":[{"agent":"*","allow":["/"],"disallow":["/admin/"]}],"sitemaps":["https://example.com/sitemap.xml"]}Expected result or interpretation:
User-agent: *
Allow: /
Disallow: /admin/
Sitemap: https://example.com/sitemap.xmlQuestions about this workflow
Will this robots.txt protect the admin page from visitors?
No. Robots rules are requests to cooperative crawlers. Protect private pages with authentication and server-side authorization.
Do I need separate robots.txt files for different hosts?
A robots.txt file applies to its own scheme, host and port. Check the file served by each relevant host, including separate subdomains, rather than assuming one file controls all of them.