SEO Tools

robots.txt Builder

Build a robots.txt file for static sites, including sitemap location, crawl access, and optional AI crawler notes.

Loading tool...

What is robots.txt Builder?

A robots.txt file gives crawlers site-level access rules. It can allow or disallow paths, point to the sitemap, and document crawler policies. Static sites often need a small, predictable robots.txt file because build outputs and GitHub Pages deployments only publish what exists in the final folder.

How to use this tool

  1. Enter the public site URL and sitemap URL.
  2. Choose whether normal crawlers should be allowed across the site.
  3. Add disallowed paths only when there is a real reason to block crawling.
  4. Copy the result into robots.txt at the published site root.

What you can use it for

  • Create a clean robots.txt file for GitHub Pages.
  • Add a sitemap reference without hand-writing the file.
  • Document public crawler access before launch.

Use cases

Practical examples

Example

Static site launch

A new static site needs to allow crawling and point search engines to the sitemap. The builder creates a minimal file with the final sitemap URL.

Example

Block generated utility folders

A site can disallow temporary export paths while keeping public pages and tools open to crawlers.

Common mistakes

  • Blocking important pages and expecting them to rank.
  • Using robots.txt to remove a page that is already indexed instead of using noindex or removal tools.
  • Forgetting to publish robots.txt into the final build output.

FAQ

Questions about robots.txt Builder

Can robots.txt force a page out of Google?

No. It controls crawling. For indexing decisions, use page-level noindex when crawlers can access the page.

Should I add a sitemap line?

Yes. A Sitemap line gives crawlers a stable path to the site's canonical URL list.

Should I block AI crawlers by default?

That is a policy choice. If AI visibility matters, avoid blocking crawlers unless you have a clear business or privacy reason.

Related tools

More seo tools