Build a valid robots.txt file visually — no code to learn. Pick a preset, tweak the rules, add your sitemap, then copy or download the finished file.
Each preset loads an editable starting point below. Nothing is final until you copy or download it.
Each group applies to one crawler (user-agent). Paths must start with / — the generator fixes them automatically if you forget.
Full sitemap URLs, one per line. These are added as Sitemap: lines at the end of the file.
Updates live as you edit.
yourdomain.com/robots.txt. On WordPress, Rank Math and Yoast can also generate and edit this file for you.robots.txt is a small text file that sits at the root of your website and politely tells search-engine crawlers and other bots which parts of the site they may — and may not — crawl. It is read before a well-behaved crawler visits your pages, so it is the standard way to keep admin areas, internal search results and duplicate or low-value paths out of crawl queues and to save your crawl budget for the pages that matter.
noindex — and leave it crawlable.There is exactly one robots.txt per domain (including each subdomain), at the root: https://yourdomain.com/robots.txt. It must be a plain text file, publicly reachable, and return a normal 200 status. Rules are case-sensitive for paths, directives apply per user-agent group, and the most specific matching rule wins — which is why the WordPress preset allows /wp-admin/admin-ajax.php even though /wp-admin/ is disallowed.
Read Google's own introduction to robots.txt, then test your file in Google Search Console (Settings → robots.txt tester / the URL inspection tool) to confirm Googlebot can still reach your important pages. Be especially careful with any Disallow: / rule — a single misplaced line can ask Google to stop crawling your entire site.