Robots.txt Generator

Create robots.txt files for search engines

Share this tool

Report a problem

Describe the problem without including private input or files.

How useful was this tool?

How useful was this tool?

Crawler rules

Choose a starting template, then adjust crawler access and path exceptions.

Rule groups

Group 1

Disallow · blocked paths
Allow · exceptions
Sitemap and optional directives

Your robots.txt

User-agent: *
Disallow: /admin/
Disallow: /private/
Allow: /

Preview updated. Review your rules before publishing.

Install on your website

  1. Copy or download the generated content.
  2. Save it in a UTF-8 text file named robots.txt.
  3. Upload it to the root of the matching host, protocol and port.
  4. Visit yoursite.com/robots.txt and confirm its contents.
  5. Review the robots.txt report in Search Console after publication.

Before publishing

  • robots.txt controls crawling. A blocked URL may still appear in search results.
  • To use noindex, allow the crawler to fetch the page and read its meta tag or response header.
  • Protect private and staging pages with authentication; robots.txt is publicly readable.
  • Keep CSS and JavaScript required to render your pages crawlable.
  • Check each template against your own URL structure.
  • Use specific user-agents when different crawlers need different rules.
  • Paths are case-sensitive; * is a wildcard and $ marks the end of the URL.

About Robots.txt Generator

The Robots.txt Generator is a free online tool that helps you create properly formatted robots.txt files for your website. The robots.txt file is a fundamental component of technical SEO that tells search engine crawlers which pages or directories they can or cannot access. Crawler rules can reduce requests to selected paths. Blocked URLs can still appear in search results, and private areas need authentication rather than robots.txt.

A website can use a robots.txt file at the root of its host when crawler rules are needed. Sites can also allow crawling without this file. This generator provides common templates, multiple user-agent groups and optional sitemap and delay fields; review them against your site’s own paths.

For a blog, an online store with filter URLs to keep out of crawls, or a SaaS app with private dashboards, the robots.txt creator lets you configure crawler rules visually, preview the generated file in real time, and copy it with a single click. No coding is required to edit the rules. Directive support varies by crawler: Google supports User-agent, Allow, Disallow and Sitemap, while optional delay and legacy Host fields may be ignored.