Robots.txt generator

Create a robots.txt file with user agents, allowed or blocked paths and sitemap URLs. Review the rules before copying or downloading the file.

Processed in your browser: your data are not uploaded.

Set your data

Set your data

Fill one User-agent group with Allow/Disallow paths, one per line, and optional Sitemap. Download and review before replacing an existing file.

Result

Your result will appear here.

We count which tools are used most, without including entered values or file contents in the statistics. Privacy

How to use the tool

  1. You can enter the domain with or without www and include a path and query. HTTPS is used when the scheme is omitted.
  2. Fill one User-agent group with Allow/Disallow paths, one per line, and optional Sitemap.
  3. Download and review before replacing an existing file.

Method and principles

robots.txt controls crawling: it does not protect data or guarantee removal from search.

Install at the domain root and review the rules.

Practical example

Input
  • User-agent: *
  • Allow paths (one per line): /
  • Disallow paths (one per line): /private/
  • Sitemap URL (optional): https://example.com/sitemap.xml
Result
User-agent: * Allow: / Disallow: /private/ Sitemap: https://example.com/sitemap.xml

Limits and checks

Limits and checks
ParameterValue
Allow paths (one per line)≤ 5000000 characters
Disallow paths (one per line)≤ 5000000 characters

Sources and further reading

Favorites