Robots.txt Generator & Sitemap.xml Builder
NEWRobots.txt generator with user-agent groups, allow/disallow rules, an AI-crawler block preset and a sitemap.xml builder. Free, validated, in your browser.
Runs 100% in your browser — your input is never uploaded or stored on our servers.
Presets
robots.txtrobots.txt
User-agent: * Disallow: /admin/ Disallow: /cart/ Disallow: /*?sessionid= Sitemap: https://example.com/sitemap.xml
Upload it to the root of the host: https://your-domain/robots.txt. Each subdomain needs its own file.
Quick Examples
Typical inputs and the results this tool produces.
Overview
robots.txt is the plain-text file at the root of a site that tells crawlers which paths they may fetch. This robots.txt generator builds it from groups: one or more user-agents, their Allow and Disallow paths, an optional Crawl-delay and your sitemap URLs. Presets cover allow all, block all, and blocking the published AI training and answer-engine crawlers (GPTBot, ClaudeBot, Google-Extended, CCBot and others).
A second tab turns a pasted list of URLs into a valid sitemap.xml with XML escaping, duplicate removal and optional lastmod, changefreq and priority. Both outputs are validated as you type and generated entirely in your browser.
Why use this tool?
- Block AI crawlers in one click
- Catches paths without a leading slash and relative sitemap URLs
- Explains which directives Google ignores
- Builds a matching sitemap.xml from a URL list
- Nothing is uploaded
Features
User-agent groups
Add as many groups as you need, each with its own Allow, Disallow and Crawl-delay rules.
AI crawler preset
Disallows 18 AI-related user-agents while keeping regular search engines allowed.
Validation warnings
Flags invalid paths, duplicate user-agents, site-wide blocks and non-absolute sitemap URLs.
Sitemap.xml builder
Paste URLs to get an escaped, deduplicated sitemap with optional lastmod, changefreq and priority.
Download both files
Save robots.txt and sitemap.xml with the right file names.
How to Use
Start from a preset
Click Allow all, Block all or Block AI crawlers, or edit Group 1 directly.
Add rules
Enter user-agents and Allow / Disallow paths, one per line, and your sitemap URL.
Fix warnings
Read the messages under the form and correct anything marked as an error.
Build the sitemap
Switch to the sitemap.xml tab, paste your URLs and pick optional fields.
Download
Download the files and upload them to the root of your domain.