consolelog.tools

Robots.txt Generator

Create a robots.txt file to control search engine crawling

About this ToolHow it works, benefits & use cases

This Robots.txt Generator builds a valid robots.txt file from a visual rule editor instead of hand-typing directives. Each rule is a user-agent block where you set the agent name (such as * or Googlebot) and list Allow and Disallow paths as comma-separated values, and you can add as many blocks as you need with the Add rule button. Three presets fill the editor instantly: Allow All opens the whole site to every crawler, Disallow All blocks everything, and Google Only permits Googlebot while disallowing all other agents. A separate field appends an optional Sitemap line pointing crawlers to your sitemap.xml, and that sitemap URL is preserved when you switch presets. Click Generate to render the file, with a line count shown, then copy or download it as robots.txt. Your configuration is saved automatically in the browser.

How to Use

  1. 1Start from a preset — Allow All, Disallow All, or Google Only — or build rules from scratch.
  2. 2For each user-agent block, set the agent name and enter Allow and Disallow paths as comma-separated lists.
  3. 3Use Add rule to create additional user-agent blocks, or the trash icon to remove one (the last block stays).
  4. 4Optionally add a Sitemap URL; it is appended as a Sitemap line and kept when you change presets.
  5. 5Click "Generate robots.txt", then copy the result or download it as robots.txt to your site root.

Key Benefits

  • Visual multi-block editor instead of memorizing robots.txt syntax
  • Three ready presets: Allow All, Disallow All, and Google Only
  • Comma-separated Allow and Disallow path entry per user-agent
  • Optional Sitemap line that survives preset switches
  • Line count and a built-in directive quick-reference
  • Configuration auto-saved in your browser between visits
  • Copy or download the file directly as robots.txt — all in-browser

Common Use Cases

  • Blocking admin or private paths from search engine indexing
  • Quickly opening a site to all crawlers after a staging lockdown
  • Restricting crawling to Googlebot only during a controlled rollout
  • Adding a sitemap reference so crawlers discover your URLs faster
  • Generating distinct rules for different bots in a single file

Presets

User-agent rules

Run to generate.

Configure rules above and click Generate.

Quick reference

  • User-agent: * — applies to all crawlers
  • Disallow: /admin — block a path
  • Allow: /public — explicitly allow within a blocked section
  • Sitemap: — point crawlers to your sitemap

Was this tool helpful?

Share Your Experience

Help others discover this tool!

Related guide

Related tools