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.
1. Rules
Local2. robots.txt
Live previewrobots.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 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.
Step by step
- Start with the default group for all crawlers (User-agent: *).
- Add Disallow paths for areas crawlers should skip, and Allow paths for exceptions.
- Add more rule groups for specific crawlers, and reorder or remove groups as needed.
- Enter your sitemap URL and an optional comment.
- Check the live preview and fix any highlighted fields.
- Copy the text or download robots.txt and upload it to your site root.
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
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.
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.
Common questions
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.