How to use Robots.txt Generator online, free

How to use Robots.txt Generator online, free

By Hami Tech·May 16, 2026·Updated May 22, 2026·5 min read

robots.txt controls crawling, not indexing, and confusing the two is the most consequential mistake in technical SEO. Disallowing a path tells a crawler not to fetch it - but if other sites link to that page, Google can still list the URL in results, showing it without a description because it was never allowed to read the content. Worse, a page you have blocked cannot be read at all, so a noindex tag on it is never seen and never obeyed. The correct pairing is therefore counter-intuitive: to keep a page out of search results, allow crawling and use noindex; to save crawl budget on pages you do not care about, disallow. The file lives at the root of the domain, is publicly readable by anyone, and is honoured voluntarily - well-behaved crawlers respect it while malicious scrapers ignore it entirely. It is a crawling instruction, never a security measure. This builds the syntax in your browser.

SEO and webmaster checks are only useful if they match what Googlebot or a browser would see. Guessing from the HTML source alone is how people ship broken tags.

Robots.txt Generator is a good fit when keeping crawlers out of admin and login paths.

Why this exists

Robots.txt Generator is built around a few practical wins, not a long feature list:

  • Generates correct directive syntax, where a typo silently changes behaviour rather than erroring.
  • Supports per-crawler rules for the cases where different bots need different treatment.
  • Includes the sitemap declaration, which is the most useful line in most robots.txt files.
  • Runs in your browser with no account.
  • Output is plain text you can paste directly into your site root.

Walkthrough

  1. Choose the user-agent. * applies to every crawler. Name a specific one - Googlebot, Bingbot - only when it needs different rules.
  2. Add your disallow rules. Paths you do not want crawled: admin areas, internal search results, duplicate parameter URLs.
  3. Add your sitemap URL. The absolute URL of your sitemap.xml. This is how crawlers discover your pages efficiently.
  4. Upload to your domain root. It must be reachable at yoursite.com/robots.txt exactly - no other location is checked.

Jobs it is built for

  • Keeping crawlers out of admin and login paths.
  • Preventing internal search result pages from consuming crawl budget.
  • Declaring your sitemap location so crawlers find your pages.
  • Blocking parameter URLs that duplicate existing content.
  • Setting different rules for a specific bot that is over-crawling.

Worth knowing before you start

  • Always include your sitemap URL. It is the single most valuable line in the file.
  • To keep a page out of search results, do NOT disallow it - allow crawling and add a noindex tag, or the crawler can never see the noindex.
  • Test in Google Search Console's robots.txt tester before deploying. A misplaced slash can block your entire site.
  • Remember the file is public. Listing "/secret-admin-panel/" advertises exactly where it is.
  • Disallow: / blocks everything. Check for it carefully - it is the single most damaging line a site can accidentally ship.

What not to expect

  • Disallowing a page to keep it out of search results, which prevents the crawler seeing the noindex tag that would actually do it.
  • Shipping "Disallow: /" from a staging environment to production, which deindexes the entire site.
  • Blocking CSS and JavaScript, which stops Google rendering the page as users see it and can hurt rankings.
  • Treating robots.txt as security. It is public, advisory, and ignored by anything malicious.
  • Forgetting the sitemap line, making page discovery slower than it needs to be.

Privacy, in one paragraph

Robots.txt Generator runs in your browser. The file or text you paste stays on your device. There is no account, and nothing is stored on a ToolBox server for this job.

If this is one step in a longer job, these usually come after it:

Short answers

Does robots.txt actually prevent pages from being indexed?

Not exactly - it tells well-behaved crawlers not to CRAWL certain paths, but a page can still occasionally appear in search results without being crawled (e.g. if linked elsewhere). For guaranteed exclusion from search results, use a noindex meta tag or HTTP header on the specific page.

Where do I place the generated robots.txt file?

At the root of your domain, so it's accessible at yoursite.com/robots.txt - search engines specifically look for it at that exact location.

Can I have different rules for different search engines?

Yes. Rules are grouped per user-agent, so Googlebot can have different permissions from Bingbot or a specific scraper. Use * for the default that applies to everything else.

How do I actually keep a page out of Google?

Allow crawling and add a noindex meta tag or HTTP header. This is the opposite of what people expect: if you disallow the page, the crawler never fetches it, never sees the noindex, and the URL can still appear in results from external links.

Is robots.txt a security measure?

No, and treating it as one is dangerous. The file is publicly readable, so listing a private path advertises its location. Compliance is voluntary - malicious scrapers ignore it entirely. Use authentication for anything that genuinely needs protecting.

Should I block CSS and JavaScript files?

No. Google renders pages to understand them, and blocking stylesheets or scripts means it sees a broken version of your site. This was once common advice and is now actively harmful.

Open the Robots.txt Generator when you are ready. It is free, and you do not need an account.