robots.txt Generator

This robots.txt generator builds the file in a few clicks: choose a preset, add blocked paths and your sitemap, and optionally exclude AI crawlers. The finished file appears at once and is checked for common mistakes.

Source: IETF RFC 9309 – Robots Exclusion Protocol (groups, Allow/Disallow, wildcards * and $). Updated: .

one path per line, e.g. /private/ or /*.pdf$
one path per line; allows sub-paths of a blocked area
full URL with https://; empty = leave out
seconds
wait between requests; Google ignores it, other crawlers respect it
My ToolboxYour inputs are saved in this browser only.

Result

Your robots.txt
User-agent: * Disallow: /private/ Disallow: /tmp/ Sitemap: https://www.example.com/sitemap.xml
Check
  • No issues found.
Where does it go?
Save it as a text file named robots.txt (UTF-8) in the root of your domain, reachable at https://your-domain.com/robots.txt – each subdomain needs its own file.
robots.txt only controls crawling, not indexing: a blocked page can still appear in the index. To keep a page out of search results use noindex. The file is publicly readable – do not list secret paths.

How it is calculated

A robots.txt is a small text file in the root of a website that tells crawlers which areas they may fetch. It follows the Robots Exclusion Protocol (RFC 9309): each group starts with a User-agent and contains Allow and Disallow rules.

What the generator writes

Good to know

The file must be reachable at /robots.txt of the domain and is public; it is not access control. To keep a page out of Google use noindex rather than a block, since blocked pages can still be listed without content. After uploading, the robots.txt checker tests whether crawlers read the rules as intended, and the SERP preview shows how a title and description look in search.

Frequently asked questions

How do I create a robots.txt?

Choose a preset, add blocked paths and the sitemap, copy the text and save it as robots.txt in the root of your domain. Then open your-domain.com/robots.txt and check it.

Where must the robots.txt be placed?

In the root of the domain, i.e. at https://your-domain.com/robots.txt. A file in a subfolder is ignored. Every subdomain needs its own file.

Does robots.txt keep pages out of Google?

Not reliably. It only forbids fetching. A blocked page can appear in the index with its address but no content if other pages link to it. To exclude it, use noindex.

How do I block AI crawlers?

With a separate group for each crawler and Disallow: /. The tool adds the known AI training crawlers. It is not legally binding, but reputable providers follow the file.

Do I need a robots.txt at all?

Not strictly: without the file crawlers may fetch everything. It is worthwhile to keep unimportant areas such as the cart or internal search out of crawling and to announce the sitemap.

Sources and legal basis

As of: · Editorial policy

Related tools