# Robots.txt Generator

URL: https://hifreetools.com/seo/robots-txt-generator

> Build a valid robots.txt file in seconds — allow or block crawlers, add per-path rules and a crawl-delay, and include your sitemap line, ready to copy or save.

## Quick answer

A robots.txt file tells web crawlers which parts of your site they may or may not request. This generator builds a valid file from simple choices: allow all crawlers, block all crawlers, or set custom Allow/Disallow rules for a specific user-agent, plus an optional crawl-delay and your sitemap URL. Save the output as robots.txt in your site's root, e.g. example.com/robots.txt.

The tool writes standard robots.txt directives. 'Allow all' emits User-agent: * with an empty Disallow; 'Block all' emits Disallow: /. Custom mode lets you set the user-agent and list Allow and Disallow paths (one per line), plus an optional Crawl-delay. A Sitemap: line is appended when you provide a sitemap URL. The file must live at the domain root to take effect.

## Examples

- Allow everything: Policy = Allow all → User-agent: *\nDisallow:
- Block a folder: Disallow: /admin/ → User-agent: *\nDisallow: /admin/
- Add your sitemap: Sitemap = https://example.com/sitemap.xml → Sitemap: https://example.com/sitemap.xml

## FAQ

**Where does robots.txt go?**
In the very root of your domain, reachable at example.com/robots.txt. Crawlers ignore it anywhere else.

**Does robots.txt remove a page from Google?**
No. It blocks crawling, but a blocked URL can still be indexed if linked elsewhere. To remove a page, allow crawling and add a noindex meta tag, or use the removal tools.

**What does Disallow: with nothing after it mean?**
An empty Disallow means 'disallow nothing' — i.e. allow the crawler to access everything. Disallow: / blocks the entire site.

**Can I set rules for just Googlebot?**
Yes. In custom mode, set the user-agent to Googlebot (or any bot) and its Allow/Disallow rules; repeat for other bots as needed.

**Is robots.txt case-sensitive?**
The paths are. /Admin/ and /admin/ are different, so match the exact casing of your URLs.

**Is anything uploaded?**
No — the file is generated in your browser.


## Sources

- [Google Search Central — robots.txt introduction](https://developers.google.com/search/docs/crawling-indexing/robots/intro)
- [The Web Robots Pages (robotstxt.org)](https://www.robotstxt.org/)

Runs in the browser; nothing is uploaded. Cite as: HIFreeTools, "Robots.txt Generator", https://hifreetools.com/seo/robots-txt-generator
