1. Home
  2. Productivity tools
  3. robots.txt Generator and Tester

robots.txt Generator and Tester

For site owners who need a correct robots.txt, and a way to check what a rule actually blocks.

Free, no sign-up. Runs in your browser: nothing is uploaded.

Free workspace included. Docs, spreadsheets, notes and tasks that save on your device. No sign-up.Take a look

How to use robots.txt Generator and Tester

  1. Fill in the form, or press a sample to see a worked example.
  2. Read the result and any warnings about problems it found.
  3. Copy the output or download it as a file.

Features

  • Builder with presets such as a WordPress site and keeping AI crawlers out
  • Tester that shows which rule decided each path you check
  • Matching follows RFC 9309: the longest rule wins and Allow wins a tie
  • Supports the * wildcard and the $ end-of-address marker
  • Sitemap lines and a reminder that robots.txt does not hide pages

Supported formats

Input

  • Typed rules or pasted robots.txt

You get

  • robots.txt
  • Test table

Private by design

Everything you enter is processed by your browser on this device. Nothing is sent to openWorkstand or anyone else, so the robots.txt Generator and Tester is safe for private and work data. After you have used it once while online, it also works without an internet connection. How local processing works

Good to know

  • robots.txt asks crawlers to stay away; it does not keep a page private or remove it from search.
  • Matching follows RFC 9309; individual crawlers may add their own rules or ignore the file.

Guide

Writing a robots.txt file and testing which paths it blocks

Every site is visited by crawlers: search engines, tools, AI services and scrapers. A file named robots.txt, placed at the root of your site, tells well-behaved ones which paths to leave alone. It is short, but small mistakes can hide a whole site from search, so it is worth checking a file against real paths before you upload it. This page writes the file from a form and tests an existing file, showing which line decides each path.

Writing the file

Choose “Write a robots.txt file”, then either start from a preset or fill in the boxes. User agents go one per line, with * meaning every crawler. Paths to block and exceptions to allow go in their own boxes, and a sitemap address adds a Sitemap: line. The WordPress preset blocks /wp-admin/, the search page /?s= and /search/, and allows /wp-admin/admin-ajax.php, which many themes need. The AI crawler preset writes a group for GPTBot, CCBot, Google-Extended, ClaudeBot and PerplexityBot that disallows everything, followed by a group that leaves other crawlers unrestricted.

How rules are matched

RFC 9309, the standard for the file, defines the matching. A crawler uses the group whose user-agent line matches it most specifically, and falls back to *. Within the group it finds every rule whose pattern matches the path from the start. The longest pattern wins, and when an Allow and a Disallow are the same length, Allow wins. A * in a pattern stands for any run of characters and a $ at the end anchors the pattern to the end of the path. An empty Disallow allows everything.

Testing a file

Switch to “Test a robots.txt file”, paste your rules, choose a user agent and list paths one per line. The table shows each path as Allowed or Blocked and quotes the rule that decided it, or says that no rule matches. That makes surprises easy to find, such as a pattern with a missing slash that blocks more than you meant.

A worked example

The test sample holds a group for all crawlers with Disallow: /private/, Allow: /private/public.html and Disallow: /*.pdf$, plus a group for Googlebot-Image. Five paths are checked: /private/report.html is blocked by Disallow: /private/; /private/public.html is allowed because the longer Allow pattern beats the folder rule; /docs/guide.pdf is blocked by the PDF pattern; /docs/guide.pdf?v=2 is allowed because the $ anchor does not match a path that continues with a query; and /blog/ matches no rule. The result row reads three allowed and two blocked.

What robots.txt cannot do

It does not hide pages. A blocked address can still appear in results if other pages link to it, and anyone can read your robots.txt, so never list secret paths in it. It is also a request: reputable crawlers follow it, but others ignore it, and the list of AI crawler names changes, so the preset is only a starting point. If you need a page out of search, use a noindex directive on a page the crawler may fetch, or password protection.

Limits

The tester implements the matching rules of RFC 9309 and does not know about extra directives that individual crawlers add. It does not fetch your live file, so paste the text you plan to upload. Nothing you type is sent anywhere.

Checked against the current version of the robots.txt Generator and Tester on .

Frequently asked questions

Why is a blocked page still in search results?

Because robots.txt only tells a crawler not to fetch the page. If other sites link to the address, a search engine can still list it, without a description. To keep a page out of results, leave it crawlable and add a noindex rule, or put it behind a login.

Does the order of rules matter?

Not under RFC 9309. The rule with the longest matching pattern wins whatever its position, so an Allow for a file inside a blocked folder works as long as its path is longer than the folder rule.

Does robots.txt hide a page from Google?

No. It asks crawlers not to fetch a page, but a blocked address can still appear in results if other sites link to it. Use a noindex rule on a crawlable page, or a login, to keep content out.

Which rule wins when Allow and Disallow both match?

The more specific rule, meaning the longer matching path, wins. If both are equally long, Allow wins under RFC 9309.

Keep working with the result

openWorkstand also includes a free workspace with documents, spreadsheets, tasks, projects and a calendar that save to a folder on your computer.