Skip to content
SEO tools

Robots.txt Generator

Build a valid robots.txt with crawl rules and a sitemap reference.

Options

Everything above is processed in this browser tab. Your input is never sent to a server.

What is Robots.txt Generator?

Robots.txt Generator produces the plain-text file at the root of a site that tells crawlers which paths they may request. You choose which user agents to address, which directories to disallow, and which sitemap to advertise, and the tool outputs a syntactically valid file.

How to use it

  1. 1List the paths that should not be crawled, one per line.
  2. 2Choose whether the rules apply to all crawlers or a specific one.
  3. 3Add your sitemap URL so crawlers can find it.
  4. 4Save the output as robots.txt at the root of your domain.

Features

  • Valid directive syntax with grouped user-agent blocks
  • Sitemap declaration appended in the correct position
  • Explicit full-site block for staging environments

When people use it

Keeping private areas out of crawl budget

Dashboards, account pages and checkout flows have no search value. Disallowing them focuses crawling on pages that do.

Protecting a staging site

A staging domain indexed alongside production creates duplicates. Block it fully — and add HTTP authentication as well, since robots.txt is only a request.

Known limits

  • robots.txt controls crawling, not indexing. A disallowed URL can still be listed if other sites link to it; use a noindex meta tag on pages that must stay out of results.
  • Never block CSS or JavaScript that pages need to render, or search engines will see a broken layout.

Robots.txt Generator questions

Related tools

Hand-picked hubs, guides and companion tools related to this page.

Last reviewed 2026-08-06. Browse the full directory.