Skip to main content
SEO
New

Robots.txt Generator

Create a robots.txt file with User-agent rules, Allow/Disallow paths, Sitemap URLs, and optional Crawl-delay - instantly in your browser.

Robots.txt rules

Choose a preset or define custom Allow/Disallow paths, then add Sitemap URLs.

Use * for all crawlers, or a specific bot name

One path per line (e.g. /admin/)

One path per line; useful for exceptions under a blocked folder

One absolute URL per line

Seconds; ignored by Googlebot

Mainly used by Yandex

Was Robots.txt Generator helpful?

Stored locally for now - helps us improve this tool.

Why people trust ToolMint

Free utilities designed for privacy, speed, and everyday reliability.

  • 100% Free

    Core tools stay free with no paywall to unlock basics.

  • No Registration Required

    Open a tool and start immediately - no account needed.

  • Privacy First

    We avoid unnecessary collection and keep processing local when possible.

  • Browser Processing

    Most tools run in your browser so your input never needs a server round-trip.

  • Fast & Secure

    HTTPS everywhere with instant, client-side results for everyday tasks.

  • Mobile Friendly

    Layouts and controls are built for phones, tablets, and desktops.

  • Updated Regularly

    Tools and content are improved continuously as the platform grows.

Tool statistics

Local visit data for this browser only.

Opened
Last used
Favorite
Category
SEO
Version
1.0.0

Key Features

  • Presets for common policies

    Allow all, block all, or build custom Allow/Disallow rules in seconds.

  • Sitemap and Host support

    Add one or more Sitemap URLs and an optional Host directive.

  • Live preview

    See the robots.txt update as you edit paths, agents, and options.

  • Copy or download

    Paste the file at your site root or save robots.txt for deploy.

How to Use

  1. 1

    Choose a preset

    Start with Allow all, Block all, or Custom rules for full control.

  2. 2

    Set the user-agent and paths

    Use * for all bots, or target a specific crawler. Add Disallow/Allow paths one per line.

  3. 3

    Add sitemap and optional directives

    Link your XML sitemap(s). Optionally set Crawl-delay or Host when needed.

  4. 4

    Copy or download robots.txt

    Place the file at https://your-domain.com/robots.txt and verify in Search Console.

Use Cases

  • Launching a new website

    Generate a valid robots.txt with a sitemap reference before a new site goes live and gets crawled for the first time.

  • Blocking staging environments from search

    Create a disallow-all rule for a staging or preview domain so it does not get indexed alongside the production site.

  • Restructuring URLs after a redesign

    Update crawl rules to disallow old private paths and point crawlers at a refreshed sitemap after a site restructure.

  • Targeting rules at a specific crawler

    Set custom Allow and Disallow paths for one named user-agent while leaving default access for other bots unchanged.

Examples

Allow all crawlers

Open site for indexing.

Preset: Allow all
User-agent: *
Disallow:

Block private folders

Hide admin and draft paths.

Disallow: /admin/
Disallow: /private/
User-agent: *
Disallow: /admin/
Disallow: /private/

With sitemap

Point crawlers at your XML sitemap.

Sitemap: https://example.com/sitemap.xml
Sitemap: https://example.com/sitemap.xml

Benefits

  • Ship a valid robots.txt without memorizing directive syntax
  • Avoid accidental full-site blocks with clear presets and warnings
  • Include Sitemap URLs so crawlers discover your pages faster
  • Stay private - everything runs locally in the browser

Best Practices

  • Keep robots.txt at the site root (/robots.txt).
  • Prefer Disallow for sensitive paths instead of relying on obscurity alone.
  • Always add your Sitemap URL when you publish an XML sitemap.
  • Test changes in Google Search Console or similar crawl tools.
  • Remember: robots.txt is advisory - do not use it as an access-control layer.

Common Mistakes

  • Accidentally publishing Disallow: / on a production site.
  • Blocking CSS/JS assets that Google needs to render pages.
  • Using robots.txt to hide private data (use authentication instead).
  • Forgetting that Crawl-delay is ignored by Googlebot.

Privacy Notice

All rules are generated locally in your browser. Nothing is uploaded to a server.

About This Tool

What is this tool?

A robots.txt generator builds the plain-text crawl policy file that tells bots which paths they may fetch, and can point them to your sitemap.

Why use it?

It helps site owners create consistent, valid robots.txt rules quickly and avoid syntax mistakes that block indexing.

Limitations

It does not crawl your site, verify live robots.txt, or guarantee crawler compliance. Sensitive content still needs proper access control.

Frequently Asked Questions

Suggested Articles

Help improve Robots.txt Generator

Found a problem or missing feature? Tell us - no account required.

Report issue

Request a tool

Last updated:

Share this tool