What is a robots.txt generator?
A robots.txt generator writes a robots.txt file for you. robots.txt is a small text file that lives at the root of a website — for example example.com/robots.txt. It tells bots which pages they may visit and which pages they must skip.
Writing the file by hand is easy to get wrong: one typo in a bot name, and the rule is ignored. This generator spells every bot name correctly, groups the rules the right way, and adds your Sitemap line for you.
How the rules work
A robots.txt file is made of groups. Each group starts with one or more User-agent lines, then the rules for those bots. Three ideas decide the result:
- The most specific group wins. If a bot has its own group (for example
User-agent: GPTBot), only that group counts for it. The general group (User-agent: *) is ignored for that bot. - The longest matching rule wins. If a group has both
Disallow: /andAllow: /public/, a bot may visit/public/but nothing else. On a tie, Allow wins. - Wildcards work. A star (
*) in a rule matches anything, and a dollar sign ($) at the end means "the path must end here". For exampleDisallow: /*.pdf$blocks all PDF files.
How to use the robots.txt generator (3 steps)
- Type your website address above. Use the full address, like
https://example.com. If you skip thehttps://part, we add it for you. - Pick a rule for each bot. The default is Allow for every bot. Switch a bot to Disallow only if you want it blocked from the whole site. Add your private pages (like
/admin/) in the extra-rules box. - Press "Generate my robots.txt", then Download. The file is made in your browser — nothing is sent to our server. Save it as
robots.txt.
How to use the result (3 steps)
- Upload the file to the root folder of your site. That is the same folder as your home page. After upload, the file should open at
yoursite.com/robots.txt. Most hosts let you upload it from the file manager in your hosting control panel, or with an SEO plugin like Yoast or Rank Math. - Check it with the robots.txt checker. Run your site through our free robots.txt checker to confirm the file loads, the rules are right, and nothing is blocked by mistake.
- Test the pages that matter. Use the checker's tester to confirm your home page, your best article, and any page you want AI tools to read are allowed for the bots you care about.
What this tool does NOT do
Here is the honest answer: this tool writes a file — it does not upload it, and it cannot force bots to obey it.
You still need to upload the file to your site yourself. And robots.txt is a request, not a lock: honest bots follow it, but bad bots ignore it. Never use robots.txt to hide private or secret pages — use a password or a login wall for those.
It also checks nothing about your site. After uploading, run the robots.txt checker to confirm the file works the way you meant.
More free tools
More free tools that go with this one:
- robots.txt Checker — check any site's robots.txt file: rules by bot, problems in plain words, a per-bot verdict table, and a tester for single pages.
- llms.txt Generator & Validator — make a clean llms.txt file for your site in 2 minutes, and check any file against the basic rules.
- AI Crawler Checker — see whether GPTBot, ClaudeBot, PerplexityBot and 20 more AI crawlers can reach your site, or your robots.txt blocks them.
- Schema Markup Generator — make valid JSON-LD code for your pages, so search engines understand what each page is about.
- AI Crawler Diagnostic Tool — diagnose your site for AI crawlers: find what blocks them and get the exact fix for each problem.
- AI Crawler Monitoring — keep watch after the check: spot AI bot visits in your server logs, Cloudflare analytics, and GA4.
- robots.txt Generator — build a robots.txt file in minutes: pick which AI bots may visit, add your sitemap, and download the file.
- AI Agent Directory — the full list of 23 AI crawlers: who runs each one, what it does, and how to check a real visit.
- Secure Password Generator — generate a secure password or a word-based passphrase in one click. Made in your browser, never stored or sent anywhere.
- QR Code Generator — make a free QR code that never expires, for a link, text, Wi-Fi, email or phone. No account, no tracking, nothing uploaded.
- Password Strength Checker — check a password you already have: entropy, crack time, and pattern warnings, all in your browser.
- API Key Generator — make random API keys, secrets, and JWT signing secrets for your apps. Made in your browser, never stored or sent anywhere.
- QR Code Reader — scan a QR code from an image or your camera and see what it holds, with a warning for risky links. Nothing uploaded.
- UUID Generator — make random UUIDs in one click — v4, v1, or the modern time-ordered v7. Made in your browser, never stored or sent anywhere.
- Lorem Ipsum Generator — generate lorem ipsum in one click — paragraphs, sentences, words, characters or lists, as plain text, HTML, Markdown or JSON. Made in your browser, never stored or sent anywhere.
- Timestamp Converter — convert a Linux timestamp to a date and back — seconds, milliseconds, microseconds or nanoseconds, in any timezone, with copyable date commands. Made in your browser, never stored or sent anywhere.
- DNS Leak Check — check for DNS leaks: WebRTC test, visible IP + ISP + ASN, IPv6 exposure, encrypted-DNS reachability, and a DNS resolver identifier. Honest about its limits, no VPN ad.
- Tip Calculator — calculate a tip, the total and each person's share — bill, tip %, split, round-up, service presets and a comparison table. Free, no sign-up, nothing stored.
Frequently asked questions
What is a robots.txt generator?
It is a tool that writes a robots.txt file for you. You pick which bots may visit your site and which pages they must skip, and the tool turns your choices into a clean file you can download and upload to your site.
Is this robots.txt generator free?
Yes. This robots.txt generator is 100% free. You do not need an account. Everything runs in your browser — nothing you type is sent to our server.
How do I make a robots.txt file?
Type your site address above, pick Allow or Disallow for each bot, add your sitemap address, and press 'Generate my robots.txt'. Then press Download to save the file, and upload it to the root folder of your site — the same folder as your home page.
What should I put in my robots.txt file?
Three things cover most sites: the bots you want to allow or block, the pages you want to keep private (like /admin/ or /private/), and a Sitemap line so bots find your sitemap faster. Do not block pages you want in search results.
Should I block AI bots in robots.txt?
It depends on what the bot does. Bots that fetch pages for AI answers (like OAI-SearchBot and PerplexityBot) help your pages show up in AI tools — blocking them hides your site from AI answers. Bots that collect training data (like GPTBot and CCBot) only train AI models — blocking them is a fair choice and does not hurt your search rankings.
What does Disallow: / mean?
It means 'stay away from the whole site' for the bots in that group. If the group is User-agent: *, it blocks every bot — including Google. Only use it if you really want no bot to visit your site.
Do I need a Sitemap line in robots.txt?
You do not need one, but it is an easy win. One line — 'Sitemap: https://example.com/sitemap.xml' — tells bots where your sitemap is, so they find your pages faster. This generator adds the line for you when you tick the box.
What is Crawl-delay, and does Google follow it?
Crawl-delay asks bots to wait a few seconds between visits. Google ignores it completely. Some other bots respect it. If you need to slow Google down, use Google Search Console instead.
How do I upload robots.txt to my site?
Download the file, then upload it to the root folder of your site — the same folder as your home page — so it opens at yoursite.com/robots.txt. Most hosts let you upload it from the file manager in your hosting control panel, or with an SEO plugin like Yoast or Rank Math.
Does robots.txt stop all bots?
No. robots.txt is a request, not a lock. Honest bots (Google, OpenAI, Anthropic, and the rest) follow it. Bad bots ignore it. Never use robots.txt to hide private or secret pages — use a password or a login wall for those.