ROBOTS.TXT GENERATOR
Build a robots.txt with Allow/Disallow rules and a sitemap link. Nothing leaves your browser.
In short
Build a robots.txt file with per-user-agent Allow/Disallow rules, a sitemap URL, and an optional crawl delay, then copy it straight into your site's root. Paste an existing robots.txt to import its rules. Runs entirely in your browser.
Rules
How to generate a robots.txt file
- 1
Add one or more rules: a user-agent, Allow or Disallow, and a path — or click "Import existing robots.txt" and paste one in to parse it into rules automatically.
- 2
Set your sitemap URL and an optional crawl delay.
- 3
Copy the generated robots.txt and upload it to your site's root as /robots.txt.
Questions
- Can I import an existing robots.txt file?
- Yes — click "Import existing robots.txt", paste the file's contents into the box, and click "Parse & replace rules". It reads every User-agent, Allow, Disallow, Crawl-delay, and Sitemap line and rebuilds the rule list from them, so you can tweak an existing file instead of starting from scratch.
- Where does robots.txt need to live?
- At the root of your domain — e.g. https://example.com/robots.txt. Search engine crawlers only look for it there; a copy nested in a subfolder is ignored.
- What does User-agent: * mean?
- The asterisk is a wildcard that matches every crawler. Use a specific name like Googlebot or Bingbot if you want a rule to apply only to that crawler, and add a separate block with its own User-agent line for each one.
- Does robots.txt actually block pages from appearing in search results?
- Not reliably — Disallow tells well-behaved crawlers not to fetch a URL, but a disallowed page can still be indexed (without its content) if other sites link to it. To fully keep a page out of search results, use a noindex meta tag or header instead.
- Is my data sent anywhere?
- No. The file is built entirely in your browser from the rules you enter — nothing is uploaded until you copy it yourself.
Related tools
- Meta Tag GeneratorBuild title, description, canonical, Open Graph, and Twitter Card tags.
- JSON-LD GeneratorGenerate ready-to-paste JSON-LD structured data for Article, Product, FAQPage, LocalBusiness, Organization, and Event schemas.
- XML Sitemap GeneratorGenerate a valid XML sitemap from a list of URLs. Set changefreq, priority, and lastmod globally, then download sitemap.xml.
- UTM URL BuilderBuild UTM-tagged URLs for campaign tracking in Google Analytics. Add source, medium, campaign, term, and content to any URL.
- Social Share Preview GeneratorSee how your title, description, and image render as a Facebook/LinkedIn card and an X (Twitter) card.
- Google SERP PreviewSee how your title, description, and URL render in Google's desktop and mobile search results.
- Random Color GeneratorGenerate random colors with HEX, RGB, and HSL values, click to copy.
- Random IP Address GeneratorGenerate random IPv4 or IPv6 addresses in bulk, public or private.
Updated