Robots.txt tester and generator
Check whether Googlebot, GPTBot or any crawler may fetch your URLs, see the rule that decides it, and build a clean robots.txt. Free, no sign-up, and it runs in your browser.
Paste the file, or open yoursite.com/robots.txt and copy it.
Pick one or type any crawler name.
One per line. Full URLs or paths like /blog.
Results
No group names this crawler, so it follows the rules for User-agent: *.
https://example.com/
No rule matches this path, so it is allowed.
https://example.com/admin/settings
Line 3: Disallow: /admin/
https://example.com/api/og/launch.png
Line 5: Allow: /api/og/
https://example.com/pricing?ref=newsletter
Line 6: Disallow: /*?ref=
File check
Line 11: sitemap https://example.com/sitemap.xml
What this robots.txt tester does
A robots.txt file tells crawlers which parts of a site they may fetch. One wrong line can hide your pricing page from search engines, or leave an admin area open to every bot. This tester reads a robots.txt file the way a crawler does and tells you, for each URL, whether a given crawler is allowed or blocked, and which line made the decision.
It also checks the file for lines that crawlers silently ignore, such as misspelled fields, rules placed before any User-agent line, and sitemap entries without a full URL. Everything runs in your browser tab. The tool never fetches your site and sends nothing anywhere.
How to test a robots.txt file
- Open
yoursite.com/robots.txtin a new tab, copy the whole file, and paste it into the robots.txt box. - Pick a crawler, such as Googlebot or GPTBot, or type any crawler name.
- Put the URLs you care about in URLs to test, one per line. Full URLs and paths like
/blog?page=2both work. - Read the results. Each URL shows Allowed or Blocked and the line that decided it. Select Copy results to paste the list into a ticket or a launch doc.
To write a new file, open Generate a file, list the paths to block, add your sitemap URL, and select Test this file to check it before you upload it. Save the result as robots.txt at the root of your domain.
How crawlers read the rules
The rules come from the Robots Exclusion Protocol, published as RFC 9309.1 The tester follows it:
- One set of rules per crawler. A crawler looks for groups whose
User-agentline names it, ignoring case. If several groups name it, their rules are combined. If none do, it follows theUser-agent: *group. A crawler with its own group ignores the*group completely.1 - The longest match wins. When several rules match a URL, the rule with the longest path decides. If an
Allowand aDisallowrule are the same length,Allowwins.1 - Two special characters.
*matches any run of characters, and$at the end means the URL must end there.Disallow: /*.pdf$blocks PDF files but not/guide.pdf?download=1. - Paths are case-sensitive.
Disallow: /Admindoes not block/admin, as Google's robots.txt guide points out.2 - The file itself is always allowed. Crawlers may always fetch
/robots.txt.1
Google reads only the first 500 KiB of the file and does not support Crawl-delay, so the tester warns about both.2
Common mistakes before a launch
- Shipping the staging file. A
Disallow: /that kept a staging site private is easy to deploy by accident. Test your home page and key pages for Googlebot right before your product launch. - Blocking a page you want out of search. robots.txt stops crawling, not indexing. Google's guide notes that a blocked URL can still show up in results without a description if other pages link to it.2
- Forgetting AI crawlers. Search crawlers and AI training crawlers use different names. The generator can add a block for GPTBot, ClaudeBot, CCBot and Google-Extended.345 Google says Google-Extended does not affect inclusion in Google Search.6
When you change the file, paste the old and new versions into the diff checker to see exactly which rules changed.
More free tools
Keycode finder
Keycode finder that runs in your browser. Press any key to see its JavaScript keyCode, key, code and location, and copy a ready keydown handler.
ASCII table and converter
ASCII table with all 128 codes in decimal, hex, octal and binary, plus a converter from text to ASCII codes and back. Runs in your browser.
Image converter
Image converter that runs in your browser. Convert PNG, JPG, WebP, AVIF, GIF and SVG files in bulk, with quality and resize options. No uploads.
HTML to Markdown converter
HTML to Markdown converter that runs in your browser. Paste HTML or rich text from a web page, Google Docs or Word and get clean GitHub Markdown.
Test credit card numbers generator
Test credit card numbers for form and checkout tests, made in your browser. Generate valid-format numbers for 7 card networks and check any number.
PX to REM converter
PX to REM converter that runs in your browser. Convert px to rem and rem to px at any root font size, or convert a whole stylesheet at once.
Frequently asked questions
Sources
IETF: RFC 9309, Robots Exclusion Protocol (2022)
Google Search Central: How Google interprets the robots.txt specification
OpenAI: Overview of OpenAI crawlers
Anthropic: Does Anthropic crawl data from the web, and how can site owners block the crawler?
Common Crawl: CCBot
Google Search Central: Google's common crawlers