Skip to content
epitometool

Robots.txt generator

SEO & Dev publishing

Generate robots.txt crawler directives with allow/disallow rules and sitemap entries.

Updated

Rules

robots.txt

Quick start

How to use robots-txt-generator

Configure inputs and generate output.

  1. Step 1
    Set inputs

    Enter required fields.

  2. Step 2
    Generate

    Create output instantly.

  3. Step 3
    Use output

    Copy and apply in your workflow.

In-depth guide

robots.txt: guiding crawlers without breaking your indexing

A robots.txt file sits at the root of your domain and tells well-behaved crawlers which paths they may or may not request. It is the first file Googlebot fetches on a site. This tool assembles valid User-agent, Allow, Disallow and Sitemap directives in your browser, ready to paste.

The core directives

User-agent names the crawler a block applies to (* means all). Disallow blocks a path prefix; Allow carves out an exception inside a blocked path. Sitemap points crawlers at your XML sitemap. Rules are matched by longest path, so a specific Allow can override a broad Disallow.

How to use this tool

  1. Add disallow rules for private areas (admin, cart, internal search) and keep public assets crawlable.
  2. Add your sitemap URL so crawlers discover all pages.
  3. Copy the output to a file named robots.txt at your domain root, e.g. https://example.com/robots.txt.

What robots.txt is and is not for

Use it to manage crawl budget and keep low-value paths out of the queue. Do not use it to hide a page from search results — a disallowed URL can still be indexed if linked elsewhere. To keep a page out of the index, allow crawling and use a noindex meta tag or header instead.

Common pitfalls

Never block CSS or JS that the page needs to render — Google must fetch them to see your page as users do. A stray Disallow: / takes the whole site out of search.
  • robots.txt is public. Do not list secret paths you would rather no one discover.
  • Test before shipping with Search Console's robots.txt Tester.
  • Privacy: the file is generated locally and nothing is uploaded.

When to use it vs alternatives

Use this tool for quick browser-based work when you need an answer or output immediately. Use a dedicated application or automated workflow when you need bulk processing, approvals, or repeatable production rules.

Frequently asked questions

Can I add a sitemap directive?

Yes. Provide your sitemap URL and the tool appends a Sitemap line, which helps crawlers discover all your pages.

Do Allow and Disallow support wildcards?

Major crawlers support * as a wildcard and $ to anchor the end of a path. You can enter these patterns as plain lines.

Is the output ready to paste?

Yes. Copy it into a file named robots.txt placed at your domain root, for example https://example.com/robots.txt.

Can robots.txt hide a page from search results?

No. A disallowed URL can still be indexed if other sites link to it. To keep a page out of the index, allow crawling and add a noindex meta tag or header instead.

Should I block CSS and JavaScript?

No. Google needs to fetch CSS and JS to render your page the way users see it. Blocking them can hurt how your pages are understood and ranked.

Is robots.txt private?

No, it is publicly readable by anyone. Do not list secret paths there — use authentication for anything that must stay hidden.

Keep exploring

More tools you'll like

Hand-picked utilities that pair well with the one you're on — all free, client-side, and zero-signup.