Skip to content
Rules → robots.txtSEO tools

Robots.txt Generator & Tester

Create a robots.txt file from presets (WordPress, online shop, block AI crawlers), add rules per bot and sitemaps, and test whether any URL is allowed or blocked.

About this tool

About Robots.txt Generator & Tester

Robots.txt Generator & Tester builds the small text file that tells search engines and other crawlers which parts of your website they may visit. Start from a preset: Allow everything; WordPress, which blocks the admin area and internal search pages while keeping admin-ajax.php open; Online shop, which keeps crawlers out of the cart, checkout, account pages and endless sort and filter URLs; Block AI crawlers, which leaves search engines alone but disallows the bots that collect training data for AI models, such as GPTBot, ClaudeBot, Google-Extended, CCBot, PerplexityBot and Bytespider; or Block everything for a staging site. Then edit the rule groups: each group names one or more user agents (* means all robots) with the paths to disallow and the exceptions to allow, one per line, using * as a wildcard and $ for the end of a URL. Add your sitemap URLs and, if you need it, a crawl delay. The file updates as you type, and warnings point out mistakes that cause real damage, such as “Disallow: /” for every robot, paths without a leading slash, relative sitemap URLs, blocked CSS or JavaScript files, and the fact that Google ignores Crawl-delay. The built-in tester applies the same rules Google uses: the most specific group for the robot is chosen, the longest matching path wins, and Allow wins a tie. Type a URL and a robot name to see Allowed or Blocked and exactly which rule decided it. Copy or download the file and upload it to the root of your domain. Remember that robots.txt controls crawling, not indexing: a blocked page can still appear in search results if other sites link to it, so use a noindex tag to keep a page out of Google.

Robots.txt Generator & Tester tool

Common robots.txt jobs

Guide crawlers without hurting SEO

WordPress sites

Keep admin and search pages out of the crawl.

ExampleBlock /wp-admin/ but allow /wp-admin/admin-ajax.php so themes keep working.

Online shops

Stop crawlers wasting time on filter URLs.

ExampleDisallow /*?sort= and /*?filter= so Google spends its time on product pages.

Opting out of AI training

Ask AI crawlers not to collect your content.

ExampleAdd a group for GPTBot, ClaudeBot and Google-Extended with Disallow: /.

Staging sites

Keep a test site out of search engines.

ExampleBlock everything on staging.example.com, and protect it with a password too.

robots.txt rules of thumb

Small file, big effect

Never block your whole live site

“Disallow: /” for * removes your site from search engines over time.

Use noindex to hide pages

robots.txt stops crawling, not indexing. A blocked page can still be listed.

Don’t block CSS and JavaScript

Google needs them to render your pages and judge mobile-friendliness.

List your sitemap

Make sure the sitemap URL in robots.txt actually works.

Sitemap Validator
Built & tested by

HemantInsights

Senior Software Engineer · Developer of Toolyconvert

Hemant developed Robots.txt Generator & Tester and tests it on desktop and mobile with real files. He is a senior software engineer from Dehradun, India, building websites since 2014, and designed and developed Toolyconvert end to end.

Last updated 23 November 2026

Answers and guidanceFrequently Asked Questions
Where do I put robots.txt?
At the root of your domain, so it opens at https://www.yoursite.com/robots.txt. Each subdomain needs its own file.
Does robots.txt hide a page from Google?
No. It stops Google from crawling the page, but the URL can still appear in results if other pages link to it. Use a noindex meta tag or header to keep a page out of search results, and do not block that page in robots.txt, or Google will never see the noindex.
How do I block AI crawlers?
Add a group for their user agents, such as GPTBot, ClaudeBot, Google-Extended, CCBot and PerplexityBot, with Disallow: /. Well-behaved crawlers respect it; it is a request, not a technical barrier.
Which rule wins when two rules match?
Google uses the rule with the longest matching path. If an Allow and a Disallow rule are equally long, Allow wins. The tester shows which rule applied.
Does Google respect Crawl-delay?
No. Bing and Yandex do. To slow Googlebot down, fix server performance or use Search Console.
What do * and $ mean?
* matches any characters, and $ marks the end of the URL. Disallow: /*.pdf$ blocks every URL ending in .pdf.
More tools for your workflowRelated Tools

XML Sitemap Generator

Create an XML sitemap from a list of URLs, a spreadsheet column or a page’s HTML. Duplicates removed, addresses escaped, large sites split automatically.

Sitemap Validator

Check a sitemap.xml or sitemap index against the sitemaps.org rules: full addresses, dates, changefreq, priority, duplicates, hosts and size limits. Opens .xml.gz too. No upload.

Canonical Tag Generator

Create a clean rel=canonical tag for any page: removes tracking parameters, fixes http and fragments, and gives the HTML tag, HTTP header and Next.js code.

HTML SEO Meta Tag Generator

Generate title, meta description, canonical, Open Graph and X (Twitter) tags with live Google and social previews. Properly escaped HTML, ready to paste.

1 / 3
Browse all seo tools

Featured on

Toolyconvert is listed on these product directories and launch platforms.