UTILS.
Private by default
🤖

robots.txt Generator

Build a valid robots.txt with allow, disallow, crawl-delay and sitemap rules.

Your files stay on this device

Files are processed in your browser, never uploaded. The site downloads code and assets to run the tools. No accounts or trackers.

Use Download to save this tool as one HTML file for offline use.

Privacy →
— output appears here —

Try a worked example

Example

Keep the user agent as User-agent: *, disallow /admin/ and /cart/ on separate lines and add the sitemap https://example.com/sitemap.xml. The file lists both Disallow rules and ends with a Sitemap line.

Keep in mind

robots.txt asks crawlers not to fetch pages; it does not hide them. A blocked URL can still be indexed if other sites link to it, and anyone can read the file, so never list secret paths. To keep a page out of search results, allow crawling and use noindex.

About this tool

Generates a standards-compliant robots.txt file from your crawl rules. The file is built locally in your browser.

The generated file has a single group. The User-agent line comes first, using your value or * if the field is empty. Then come the Allow lines, then the Disallow lines, one per non-empty line in the two path boxes. A Crawl-delay line is added only when the delay is a number above zero, and a Sitemap line, after a blank line, only when you fill in the URL.

Paths and the sitemap address are written exactly as entered, with no checking, so include the leading slash and a full URL yourself. Copy takes the text, and Download saves it as robots.txt.

Frequently asked questions

Where does robots.txt go?
At the root of your domain, for example https://example.com/robots.txt, so crawlers can find it.
What does Disallow do?
It asks well-behaved crawlers not to fetch the listed paths; one path per line, starting with a slash.
Why are some of my rules missing from the output?
Blank lines are ignored, and Crawl-delay is skipped when its field is empty or zero. A Sitemap line appears only after you enter a URL.
Can I generate rules for more than one crawler?
The tool writes one User-agent group at a time. Generate a group for each crawler, then combine them into one file before you upload it.

More tools