robots.txt

robots.txt Generator

Build rule groups for each crawler, add Allow and Disallow paths, Crawl-delay and your sitemap URL, and download a correctly formatted robots.txt. Nothing is fetched or uploaded.

Back

1. Rules

Local

2. robots.txt

Live preview
robots.txt is ready.

robots.txt is an instruction to crawlers, not a security feature: it is publicly readable and can be ignored. Use authentication to protect private content.

About this tool

About robots.txt Generator

robots.txt Generator creates a clean, correctly formatted robots.txt file from rule groups you define. Each group can target one or more user-agents and contain Disallow and Allow paths, an optional Crawl-delay and a comment, and you can add Sitemap lines for the whole file.

A typo in robots.txt can accidentally ask crawlers to skip your whole site, or leave in place rules you meant to remove. Building the file from structured inputs with validation keeps the syntax clean. Remember that robots.txt is guidance for crawlers, not access control.

How to use

Step by step

  1. Start with the default group for all crawlers (User-agent: *).
  2. Add Disallow paths for areas crawlers should skip, and Allow paths for exceptions.
  3. Add more rule groups for specific crawlers, and reorder or remove groups as needed.
  4. Enter your sitemap URL and an optional comment.
  5. Check the live preview and fix any highlighted fields.
  6. Copy the text or download robots.txt and upload it to your site root.
Key features

What it offers

  • Multiple user-agent rule groups — add, remove and reorder
  • Allow, Disallow, Crawl-delay and comment per group
  • One or more Sitemap lines
  • Validation for paths, user-agents, Crawl-delay and sitemap URLs
  • Live preview with correct line breaks
  • Copy or download as robots.txt
Best practices

Tips for best results

  • Keep the file short and specific; start every path with /.
  • Do not block CSS and JavaScript files that pages need to render.
  • Never list secret URLs — the file is public and can be ignored by crawlers.
  • Use a noindex robots meta tag, not Disallow, to keep a crawlable page out of search results.
  • After uploading, open your-domain/robots.txt in a browser to confirm it is live.
Benefits

Why people use it

Clean syntax

Directives, line breaks and groups are always well formed.

Safer edits

Validation flags malformed paths and sitemap URLs before you publish.

Flexible

Separate rules for different crawlers in one file.

Private

The file is built in your browser — no site is fetched or scanned.

FAQ

Common questions

It gives crawlers instructions about which paths they may crawl. Well-behaved crawlers follow it, but it is a request, not an enforcement mechanism.
No. Anyone can read your robots.txt, and crawlers can ignore it. Never use it to hide private pages — protect them with authentication instead.
Not reliably. A disallowed URL can still be indexed if other pages link to it. Use a noindex robots meta tag (on a crawlable page) when you want a page kept out of results.
Disallow lists paths crawlers should not fetch; Allow carves out exceptions inside a disallowed area, for example allowing /admin/public/ while disallowing /admin/.
No. Some crawlers respect it, but Google ignores Crawl-delay. Leave it empty unless a specific crawler documents support for it.
At the root of your host so it is reachable at https://your-domain/robots.txt. Each subdomain and protocol needs its own file.
No. It never fetches or inspects a website — it only builds the file from what you enter, in your browser.
Private by design

This runs entirely in your browser

No file or text you enter here is uploaded. Encoding and decoding happen on your device using native browser APIs — close the tab and nothing remains on a server.

Install Toolisco Add it to your device for offline, one-tap access.