Robots.txt Generator
Build a simple, correct robots.txt for your site.
What this tool does
A robots.txt file tells search engines which parts of your site they may crawl. This tool assembles a clean file from simple choices, so you do not have to get the syntax wrong.
How to use this tool
- 1
Add your sitemap URL
This is the line search engines use to find the rest of your site.
- 2
List paths to block
One per line, each starting with a slash.
- 3
Decide on the default rule
Allow all crawlers, or disallow everything and open specific paths.
- 4
Upload to the site root
The file only works at the domain root, not in a subfolder.
When to use it
- Keeping admin and staging paths out of search results.
- Pointing crawlers at a sitemap after a site migration.
- Temporarily blocking everything while a redesign is unfinished.
How to understand this tool
robots.txt asks crawlers not to fetch a path; it is not access control. A page that is blocked but linked from elsewhere can still appear in results with no description, and a determined scraper can ignore the file entirely. Anything genuinely private needs a login or a server-side restriction.
What it will not do
- It cannot hide a page from the index on its own.
- It does not tune rules per crawler beyond the allow-all switch.
Questions people ask
Where does robots.txt go?
At the root of your domain, for example https://example.com/robots.txt.
Does blocking a folder hide it from search?
Not necessarily โ a blocked URL can still appear without a snippet if linked elsewhere. Use noindex to hide it.
One thing worth knowing
Treat generated tags as a starting point โ review the final wording to match your actual page.