StayIndexed
Free tool

robots.txt generator online

Pick a template, add the paths to block from bots and a sitemap: we will build a correct robots.txt. It can be copied or downloaded and checked with our Robots.txt Checker. No sign-up.

Start with a template

Individual bots

For each selected bot we will add its own rule group with Disallow: /.

Your robots.txt


        
Check the ready file

Everything is calculated right in your browser: we do not send or store your address or rules.

Your first 30 tokens are on us

Robots.txt is ready. But do the pages really get into the index?

A correct robots.txt only opens the door for bots. Check which pages Google really keeps in its index and learn right away when they drop out.

  • Google indexing check for any URL, with the technical reason if the page is not in the index
  • Bulk checks of hundreds and thousands of URLs at once
  • Regular monitoring and an alert the same day a page drops out of the index
30
tokens at sign-up — that is 10 free checks
Try it for free Plans and pricing

No card · sign in with Google · 1 check = 3 tokens, from $0.0016

What robots.txt is and why you need it

The robots.txt file sits in the root of a site (for example, https://example.com/robots.txt) and tells search bots which sections may be crawled and which may not. It is not protection and not a way to remove a page from Google: the file only asks bots not to enter, and a page blocked in robots.txt sometimes still gets into the index (without a description). For a page to disappear from search for certain, you need the noindex meta tag.

What directives the file consists of

What to block and what not to

BlockThe admin area, cart and checkout, internal search, sorting and filter pages with parameters, service folders.
Do not blockCSS and JavaScript, without which Google will not see the page the way a person does, and also the pages that are meant to rank.
AI botsGPTBot, ClaudeBot, CCBot and others collect texts for training models. If you do not want to give your content away, block them with separate groups.
SEO crawlersAhrefsBot, SemrushBot and MJ12bot put load on the server. They can be blocked without harming Google rankings.

Common robots.txt errors

The worst mistake is leaving Disallow: / after the site launch: search engines stop crawling everything. People often mix up case and the slash at the start of a path, block folders with styles, forget the sitemap address or put the file not in the root but in a subfolder. After publishing the file, be sure to check it in Robots.txt Checker: it will show errors and tell you whether a specific address is blocked for the right bot.

How to install the ready file

Save the result as robots.txt (exactly this name, in lower case, in UTF-8 encoding) and upload it to the root folder of the site. In WordPress this file can also be created through an SEO plugin. Make sure it opens at /robots.txt and returns code 200. A list of addresses for the sitemap can be put together with Sitemap Checker.

Limitations of the generator

The generator builds a basic file: groups for all bots, for individual bots and Sitemap lines. Check complex cases with masks, several groups for one bot and directives of specific search engines by hand. Every site is special, so insert only the paths that exist on yours.

What else StayIndexed can do

This page is a free tool from the StayIndexed service. In your account you can save a list of sites and watch whether their robots.txt has changed (this is free too), while the service’s main job is to track how your pages do in Google.

Page indexingWhether the page is in Google, the technical reason if not, and the history of changes.3 tokens / check Website speedPageSpeed score for mobile and desktop, LCP, INP, CLS and improvement tips.3 tokens / check BacklinksWhether the link to you is still on the donor page and whether the donor is indexed by Google.3 tokens / check WHOIS and domain ageExpiry date, registrar, name servers and change history for a list of your domains.Free DNS LookupAll DNS records, resolver comparison, SPF, DKIM and DMARC.Free Sitemap CheckerSitemap.xml validity, limits, duplicates, pages blocked in robots.txt and response codes.Free Blacklist IP CheckerAn IP check on 16 DNS blacklists and the change history for a list of your IPs.Free Robots.txt CheckerErrors in robots.txt, a check of whether a URL is blocked for a bot, and the file's change history.Free Site IPA domain's IP addresses, hosting, country, ASN and CDN detection with change history.Free SSL CheckerSSL certificate expiry, chain of trust, TLS, HSTS and change history for your list of sites.Free Redirect Checker301 and 302 redirect chains, loops, step timing and change history for your list of URLs.Free HTTP HeadersServer response headers, security grade, compression, caching and change history for your list of URLs.Free Googlebot CheckerThe page through Googlebot’s eyes: robots.txt, noindex, canonical, comparison with a browser and a Googlebot IP check.Free My User-AgentYour User-Agent, a breakdown of browser, system and device, and bot detection.Free CMS detectionCMS, version, theme, plugins and technologies of a site with change history for your list of URLs.Free Site through the eyes of a robotMeta tags, headings, visible text, links and images of a page without JavaScript, with change history for your list of URLs.Free Broken linksCrawl of up to 20 pages of a site: broken internal and external links with the pages where they are, and change history.Free robots.txt generatorTemplates for WordPress, a shop and Joomla, rules for AI bots and Sitemap. A ready file in one click.Free Outbound linksAll external links of a page: broken, redirects, nofollow and hidden, with change history for your list of URLs.Free Favicon generatorFavicon.ico, PNG icons for the tab, iOS and Android and code for your site: from an image, a letter or an emoji, in one ZIP.Free MD5 onlineMD5, SHA-1, SHA-256 and SHA-512 of a text or file and a check for a match with a ready hash.Free

How much it costs

The check is free, both on this page and in your account. Tokens are used to pay for the other services: indexing, speed and backlinks cost 3 tokens per check. 30 tokens are credited at sign-up, no card required.

Up to 10000 tokens$0.00102
10001–50000$0.00068
Over 50000$0.00054
Buy tokens

Frequently asked questions

How do I create robots.txt for a site?

Pick a template or enter the paths by hand, add the sitemap address and copy the result. Save it as robots.txt and upload it to the root of the site.

Where should the robots.txt file be?

Only in the root of the site: https://example.com/robots.txt. A subdomain needs its own file, and bots do not read a file in a subfolder.

Can I hide a page from Google through robots.txt?

It is only a request not to crawl the page. A blocked page can still get into the index without a description. To remove it from search, use the noindex meta tag and do not block it in robots.txt, otherwise the bot will not see it.

How do I block a site from AI bots?

Turn on the “Block AI bots” option: the generator will add separate groups for GPTBot, ClaudeBot, CCBot, Google-Extended and others. Well-behaved bots follow these rules, but this gives no guarantee.

What is the Sitemap line for?

It tells bots where the site map is and helps them find new pages faster. There can be several Sitemap lines, and the address must be full.

How much does the robots.txt generator cost?

Nothing: the generator is free both on this page and in your StayIndexed account, and it runs right in your browser.

Track the robots.txt of your sites

A list of sites, robots.txt checks and change history — in your account, free of charge. Sign-up without a card.

Start for free