Directory submissions, from $99 excl. VATDirectory plans, from $99 excl. VATSee the plans

Free Robots.txt Generator

Build a readable robots.txt file with path rules and sitemap URLs, ready to copy or download.

  • Free
  • No account
  • Runs in your browser
Try it now
  • Custom path rules
  • Sitemap URLs
  • Copy or download

This file controls cooperative crawlers. It does not protect private pages or remove URLs from search.

Your robots.txt
User-agent: *
Disallow:

How to use the Robots.txt Generator

  1. Choose the crawler, or keep * for the general group.
  2. Allow crawling, block everything or enter custom path rules.
  3. Add your sitemap URLs, then review and download the file.
  4. Publish it at your website root and check the actual response.
Guide

A practical check before using the result

Before changing a rule, list two example URLs it should affect and two it should leave alone. Include a nested route and an important asset if those are relevant to your site. That small checklist gives a reviewer concrete cases to inspect after deployment. If a site builder already manages the file, find its supported settings first; maintaining competing copies in different places makes later troubleshooting unnecessarily difficult.

Start with the crawl policy your site needs

A robots.txt file is a small set of instructions for crawlers that choose to follow it. Before adding rules, decide which public pages you actually want them to request. A new product site with a home page, pricing, documentation and a few articles often needs very little configuration. Adding a long block list copied from another site can accidentally cover useful pages or assets.

This generator starts with crawling allowed. Choose custom paths when you have a specific reason to exclude a section, then enter only those paths. Use block all for a deliberate full-site restriction and review that choice before publishing. The output is a draft you control: changing an option here does not change your website.

Write a small, understandable file

For the standard file placement and syntax, consult Google’s robots.txt instructions and the Robots Exclusion Protocol. Publish a UTF-8 text file at /robots.txt on the relevant host. Rules use paths, while Sitemap lines use complete URLs. An Allow rule can describe an exception within a blocked path. Crawlers compare matching rules rather than treating the file as a simple top-to-bottom script.

For example, a team might exclude /search/ while allowing /search/help/. That is a hypothetical policy, not a recommendation for every product. Confirm that the excluded section has no valuable landing pages. Keep a separate note explaining each rule so the next person maintaining the site can understand why it exists. Remove rules that no longer correspond to real routes.

Keep crawling, indexing and access separate

A crawler instruction is not a password. Do not put sensitive path names in a public file as a substitute for protecting them. Authentication and authorization belong in the application. Equally, asking a crawler not to fetch a page does not prove that the URL will disappear from search results. Think through the outcome you need before picking the mechanism.

If your problem is a misleading search snippet, work on the page itself. The SERP preview helps you review its title and description. If you are checking an external listing, the dofollow checker inspects link attributes and page-level nofollow directives. Neither task is solved by adding arbitrary paths to your robots file.

Publish and check the real response

Download the text, review it alongside any existing rules and deploy it through your normal release process. Avoid replacing a working file without comparing the contents. Some hosting tools generate their own version, so the file you upload and the file visitors receive may differ. Open the root URL after release and verify the body, content type and HTTP response.

Check each sitemap URL separately. This generator validates syntax but does not visit the sitemap or confirm its XML. Also check the hosts you actually use: your main website, documentation host and preview environment may have different configurations. Keep a copy of the previous file in version control so an accidental restriction can be understood and corrected.

Review rules when the product changes

Make the check part of a release that changes routes, navigation or rendering. A renamed folder can leave an old exclusion harmless while a broader pattern unexpectedly affects a new section. Ask the person reviewing the release to open representative allowed and excluded URLs. Record the intended behavior in the pull request instead of relying on memory.

After a directory launch, use the referral measurement guide to inspect useful visits and actions. A tidy crawl policy supports maintenance, but it cannot promise traffic. Keep the file short, revisit it when the site changes, and assess discovery using the pages and audiences that matter to your product.

Read the guideWhat directory submissions mean for SEO
FAQ

Questions about the Robots.txt Generator

Does this generator publish robots.txt to my site?

No. It creates plain text locally. You must review the file and publish it through your hosting platform or site builder.

Can a robots.txt disallow rule remove a page from search?

Blocking crawling does not guarantee removal from search. A crawler must be able to read a page to see its noindex directive. Use authentication to protect private content.

Which crawler names can I enter?

Use * for the general group or one crawler product token containing letters, underscores or hyphens. This generator creates one group. Existing site files may need additional groups.

How should I format custom robots paths?

Enter one path per line, starting with /. Paths are case-sensitive. Encode spaces as %20 and omit inline comments. Wildcards and the end-of-path $ marker are preserved.

Does the generator check whether my sitemap exists?

No. It validates URL syntax but makes no network requests. Open each sitemap after publishing and check its status and content yourself.

Related free tools

All free tools
Free

Add structured data

FAQ Schema Generator

Turn your questions and answers into FAQPage JSON-LD you can paste into your page.

Free

Polish your page

SERP Simulator

Check your page title and meta description length, with a search-style snippet and a social card preview.

Free

Mark up your pages

Schema Markup Generator

JSON-LD for seven schema types, checked against the fields Google requires as you type, ready to copy and test.

Free

Inspect your backlinks

Dofollow Checker

Inspect links to your website in a public page and see their rel attributes and page nofollow rules.

Free

Check domain history

Domain Age Checker

Look up a public registration date and calculate the domain age, directly from its registry record.

Free

Track your listings

UTM Builder

Add UTM parameters to any link, one at a time or one per directory in bulk, with a clean lowercase convention.

Tools prepare the launch

Ready? Get your product seen.

A permanent MegaLaunch page, a followed link to your site, and makers who vote for what they like. Free with a link back, or $4.99 excl. VAT for Premium.

Ask AI about MegaLaunch