Generate
Build a robots.txt with allow/disallow rules and sitemap.
Runs entirely in your browser
Nothing you paste is uploaded. Monaco and Prettier load on demand from this origin.
Rules
robots.txt
User-agent: * Allow: / Disallow: /admin Disallow: /private Sitemap: https://example.com/sitemap.xml
There is no upload endpoint — your files are processed in this browser tab. Open your network tab and check. See how it stays private.
How to robots.txt generator
- Set rules. Choose user-agents and allow/disallow paths.
- Add a sitemap. Optionally include your sitemap URL.
- Copy or download. Save robots.txt to your site root.
robots.txt guides search-engine crawlers on what to index, which matters for SEO and for keeping low-value paths out of results. Generating it correctly avoids the classic mistake of accidentally disallowing your whole site.
Pair it with the meta-tag generator for on-page SEO. Remember it's guidance, not security.
Frequently asked questions
Does robots.txt keep a page private?
No. It requests that compliant crawlers skip paths, but it's not access control — anyone can read robots.txt, and it doesn't stop direct access. Use real auth for private content.
Should I include my sitemap?
Yes. A Sitemap directive helps search engines discover your URLs, so including it is good practice.
Is anything uploaded?
No. The file is generated locally in the tab.
Related tools
- Meta / OG tagsGenerate SEO, OpenGraph, and Twitter meta tags for a page.
- README badgeBuild README badge Markdown for shields.io locally.
- Security headersBuild CSP, HSTS, CORS, and Permissions-Policy headers plus SRI hashes.
- URL parserBreak a URL into protocol, host, path, and editable query parameters.