robots.txt generator
Build a clean robots.txt: keep private paths out of crawlers, choose which AI bots may visit, and point to your sitemap.
Leave all unticked to stay visible to AI assistants. Blocking them means they can’t cite you.
User-agent: * Disallow: /admin Disallow: /cart Sitemap: https://example.com/sitemap.xml
A ready-to-use file, no code needed.
- A live preview as you fill it in
- Copy or download in one click
- Hand it to your developer, or paste it in yourself
User-agent: *Allow: /Disallow: /admin/ User-agent: GPTBotAllow: / Sitemap: https://example.com/sitemap.xml
How it works
- Fill in the detailsSigned in, we pre-fill them from your latest report.
- Preview the resultSee exactly what will be published as you type.
- Copy or downloadPaste it into your site, or send it to your developer.
Why it matters
robots.txt is the first file every crawler reads. A short, correct one keeps admin and checkout pages out of search and tells crawlers where your sitemap is.
Test the result with the robots.txt tester before you upload it.
Questions
Can robots.txt keep a page secret?
No. The file is public and only polite bots follow it. Protect private pages with a login instead.
Do I need a robots.txt at all?
Without one, crawlers assume everything is allowed, which is fine for many sites. Adding one is still the easiest way to list your sitemap.
More free tools
- Crawling & indexingFreerobots.txt testerTest whether a URL is allowed or blocked for Googlebot, Bingbot or any AI crawler.Try it free
- ✓/blog/ · GooglebotAllowed
- ✕/admin/ · GooglebotBlocked
- ✓/blog/ · GPTBotAllowed
- Crawling & indexingPaidRaw vs rendered HTMLCompare what crawlers that skip JavaScript see with what a browser shows.See the tool
- ✓TitleSame in both
- !Main textOnly after JavaScript
- !Links38 raw · 112 rendered
- Crawling & indexingFreehreflang checkerValidate language tags and confirm every alternate links back.Try it free
- ✓en-IN → /en-in/Links back
- ✓hi-IN → /hi/Links back
- ✕en-US → /us/Missing return link
Want the full picture?
This tool checks one thing. A free Pagelyt scan checks speed, SEO, AI readiness, security and more, and tells you what to fix first.