Create a robots.txt file for your website in a few simple steps. Choose how search engines should access your site, add rules if needed, test a URL, and download your file.
Website Details
Start with your website address. Add a sitemap if you have one.
Crawler Access
Choose how search engines can visit your website.
Live Robots.txt Preview
This preview updates automatically. Copy and download use the same content.
URL Tester
Test how the generated robots.txt rules apply to a URL. This uses the preview content above.
Robots.txt Guide
What is a robots.txt file?
A robots.txt file is a plain text file placed at the root of your website. It gives compliant crawlers instructions about which paths they may or may not access.
Why is robots.txt important for SEO?
It helps manage crawler access to low-value or sensitive paths, reduces unnecessary crawling, and points crawlers to your sitemap. It does not guarantee indexing or ranking.
Allow vs Disallow
Disallow tells compliant crawlers not to access a path. Allow can permit a specific path inside a disallowed area. A disallowed URL can still appear in search results if other pages link to it.
How to add a sitemap
Add an absolute sitemap URL outside user-agent groups: Sitemap: https://www.example.com/sitemap.xml
Where to upload
Upload the file to your website root so it is accessible at https://www.example.com/robots.txt.
Robots.txt vs noindex
Robots.txt controls crawling. Noindex controls indexing. If you need a page removed from search results, use the appropriate noindex method and ensure crawlers can access the page to see it.
Common mistakes
- Blocking CSS/JS/resources needed for rendering.
- Using Disallow expecting guaranteed deindexing.
- Adding invalid or unsupported directives.
- Forgetting that Sitemap URLs must be absolute.
- Assuming all crawlers support Crawl-delay or Host.