SEO & Website Image Tools

robots.txt Generator

Load or build robots.txt with allow/disallow rules and sitemap URL — fetch from your live site or start fresh.

Batch ready

The Apex Toolz promise

No Login

100% Free

No Upload

Local Files

Browser-Based

4 min readLast reviewed 2026-07-06

What this tool does

robots.txt Generator composes crawler directives—User-agent, Allow, Disallow, and Sitemap lines—so search engines know which paths to crawl or skip.

Optional fetch loads your current live robots.txt for editing instead of starting from scratch on redesigns.

Why you might need it

Staging accidentally indexed because robots.txt was wrong costs weeks of duplicate content cleanup.

New launches need sitemap references in robots.txt so Google discovers XML sitemap paths quickly.

Common use cases

  • Block /admin and /api from crawlers on production
  • Add sitemap.xml URL after Sitemap Generator export
  • Refresh robots rules after URL structure migration
  • Document crawl policy for multi-subdomain estates
  • Test syntax before upload via robots.txt Tester

Step-by-step guide

  1. 1Enter site URL and load existing robots.txt or start blank.
  2. 2Add Allow/Disallow paths per user-agent—default * for all bots.
  3. 3Include Sitemap: https://example.com/sitemap.xml absolute URL.
  4. 4Download robots.txt and upload to site root via FTP or deploy pipeline.
  5. 5Validate with robots.txt Tester and Google Search Console.

Tips & best practices

  • robots.txt is not access control—sensitive paths still need auth.
  • Disallow does not remove already indexed pages—use noindex or Search Console removal.
  • Keep one sitemap line per index file or sitemap index as needed.
  • Pair with Sitemap Generator so the Sitemap URL you cite actually exists.

Limitations

  • Malicious bots ignore robots.txt—never rely on it for secrecy.
  • Typos in paths silently fail open—double-check trailing slashes.
  • Common mistake — blocking / while trying to block only /private—path precision matters.

Frequently asked questions