Skip to content

Web & SEO

Robots.txt Generator

Create, import, validate, copy and download robots.txt files with a visual rule builder.

Loading tool…

About this tool

What is Robots.txt Generator?

Write crawler instructions for the root of a specific website origin. Start with the paths that compliant crawlers should or should not request, then inspect each user-agent group and sitemap address. The generator creates text for you to publish; it does not install the file or turn crawler instructions into authentication.

A worked example

Describe a restricted crawl path without claiming access control

Example input

User-agent: *
Disallow: /private/

Expected result

/public/ → allowed
/private/report → disallowed

The group instructs a matching compliant crawler not to fetch paths beneath /private/. Other public paths remain available under this simple example. These are crawl-policy outcomes rather than HTTP permission checks. Publish the full file at the intended origin's robots.txt address and confirm that important public pages remain reachable by the crawlers you want.

Common mistakes and limits

  • Disallow does not protect confidential content and can reveal the names of interesting paths. Use real access controls for private resources.
  • Blocking crawling is not the same as reliably removing an already known URL from search results. Keep crawl rules and indexing directives consistent with the actual goal.

Features

What you can do

  • Visual user-agent and rule builder
  • Import and parse existing robots.txt files
  • Templates for common frameworks, CMS platforms and crawler policies
  • Real-time preview and validation
  • Copy or download the generated robots.txt file

Frequently asked questions

Questions about Robots.txt Generator

What is a robots.txt file?

A robots.txt file gives instructions to compliant web crawlers about which paths they may request. It is not an access-control or security mechanism.

Where should robots.txt be placed?

Publish it at the root of the relevant origin, for example https://example.com/robots.txt.

Does Disallow protect private content?

No. Disallow is only a crawler instruction. Protect private content with authentication and server-side authorization.

Can I include multiple sitemap URLs?

Yes. A robots.txt file may include multiple Sitemap directives with absolute URLs.

Related tools