← Back to home
Home › SEO & Web › Robots.txt Generator

Robots.txt Generator

Create a robots.txt with allow/disallow rules.

Enter details

How to use

  1. Fill in: User-agent, Disallow paths (one per line) and Sitemap URL. Fields with defaults or marked optional can stay as shown.
  2. Tap Generate.
  3. Read the result - you can print or save it as PDF.

Worked example

With User-agent = *, Disallow paths = The quick brown fox jumps over the lazy dog., Sitemap URL = https://www.example.com/sitemap.xml:

ROBOTS.TXT GENERATED1 disallow rules

Common questions

What is a robots.txt file?

A plain-text file at the root of a website (example.com/robots.txt) that tells web crawlers which paths they may not request.

Does robots.txt keep a page out of Google?

Not fully. Google cannot index the content of a disallowed page, but the URL itself can still appear in search results without a snippet. To keep a page out of the index, use a noindex directive instead.

Where does the robots.txt file go?

At the domain root - for example, https://yourdomain.com/robots.txt.