Robots.txt Generator
Write a valid robots.txt file in minutes, not hours. Add your crawl rules and sitemap URL, then copy the ready-to-upload file. Free.
Robots.txt Generator
Fill in the inputs below, hit Generate, and your results appear instantly β copy any item in one click.
Something went wrong running this tool. Your inputs were kept.
What is Robots.txt generator?
Robots.txt Generator β Write a valid robots.txt file in minutes, not hours. Add your crawl rules and sitemap URL, then copy the ready-to-upload file. Free.
This tool parses a simple line format (User-agent:, Allow:, Disallow: β case-insensitive, one directive per line, blank line starts a new group, # lines ignored) and emits standard robots.txt text: one User-agent group per block followed by an optional Sitemap: line. Paths not starting with "/" are corrected by prepending "/" and reported; non-ASCII paths are percent-encoded; an empty Disallow for an agent means "allow all" per the standard and is noted. Every rule in the output comes from your own input β nothing is invented. Correctness of the URLs themselves depends on the paths you enter.
Why use this robots.txt generator?
Built for robots.txt generator
Write a valid robots.txt file in minutes, not hours. Add your crawl rules and sitemap URL, then copy the ready-to-upload file. Free.
Transparent & honest
Whether a URL is actually blocked or allowed depends on the paths you enter β review them before publishing.
Private by design
Everything runs in your browser. Your inputs never leave your device.
Works everywhere
Fully responsive β perfect on desktop, tablet, and mobile. No app needed.
Regularly updated
Regularly maintained and reviewed to ensure accuracy.
Free forever
No accounts, no limits, no watermarks. Use Robots.txt Generator as much as you need.
How to use Robots.txt Generator
- 1Type your "Crawl rules" using one directive per line: User-agent:, Disallow:, or Allow:.
- 2Separate rule groups with a blank line β one group per crawler (e.g. "*" for all, "Googlebot" for Google).
- 3Optionally add your "Sitemap URL" so crawlers can find your sitemap from the file.
- 4Check "Notes and corrections" β paths missing a leading "/" are fixed automatically and reported.
- 5Copy the "robots.txt file", save it as robots.txt in your site root, and test it in Google Search Console.
What can you do with Robots.txt Generator?
- Create robots txt β Write a valid robots.
- Robots.txt example β Write a valid robots.
Good to know
- Whether a URL is actually blocked or allowed depends on the paths you enter β review them before publishing.
- robots.txt is a crawling hint to search engines, not a security control β it does not keep private pages hidden from people.
- An empty Disallow for an agent means "allow all" per the standard; the tool notes this rather than changing it.
How it works
This tool parses a simple line format (User-agent:, Allow:, Disallow: β case-insensitive, one directive per line, blank line starts a new group, # lines ignored) and emits standard robots.txt text: one User-agent group per block followed by an optional Sitemap: line. Paths not starting with "/" are corrected by prepending "/" and reported; non-ASCII paths are percent-encoded; an empty Disallow for an agent means "allow all" per the standard and is noted. Every rule in the output comes from your own input β nothing is invented. Correctness of the URLs themselves depends on the paths you enter.
Examples
Two blocks of rules plus a Sitemap line in the output file.
An empty Disallow means crawlers may access everything β the tool notes this.
"admin" is corrected to "/admin" and the correction is reported in Notes and corrections.
Related searches
People also search for these β this tool handles them all:
Frequently asked questions
Related tools
Explore more free tools in Blogging SEO & Content: