Skip to content

Robots.txt generator.

Build a robots.txt in a form or paste your own, block AI crawlers with one preset, and test any URL against it the way Google decides. Copy it as a file or as a Next.js robots.ts.

Robots.txt generator.

Loading the tool…

Need the UI around it? With Pro, your AI agent builds the form, the result card and the rest of the page from a prompt.

Get Pro

How it works

4 steps, no account. It runs in your browser and nothing is uploaded.

  1. Start from a preset

    Typical site, allow all, block all, block AI training or all AI, or WordPress, then change the groups.

  2. Add groups and rules

    A group per crawler with its Allow and Disallow paths, * for any run of characters and $ for the end.

  3. Test a URL

    Type a URL and a crawler to see the group it follows, the rule that decides and every known crawler's verdict.

  4. Copy or download it

    As robots.txt for the root of your host, or as app/robots.ts for Next.js.

How Google reads robots.txt

Four rules decide every verdict in the tester, as they do for Googlebot.

  • One group per crawler

    A crawler follows the one group that names its most specific token and ignores the others; * applies only when nothing names it. Groups naming the same token are merged into one.

  • The longest rule wins

    Among the rules that match a URL, the one with the longest path decides, wherever it sits in the file. When an Allow and a Disallow are as long, Allow wins.

  • Wildcards and case

    * stands for any run of characters and $ ends the path. Matching is case-sensitive and covers the query string, so /*?sort= catches sorted listings.

  • Crawling, not indexing

    A blocked URL can still be indexed from links, without its content. To keep a page out of results, leave it crawlable and send noindex.

Pricing

Build it with Pro

The tool is free. Pro adds 6,000+ blocks, premium templates and the MCP server, so your AI editor builds the product around it.

4.9/5 out of 5 · 150+ reviewsfrom 150+ founders and developers.

  • Secure checkout via Stripe
  • Code lives in your repo
  • Keep what you've shipped if you cancel
  • License terms

Questions and answers

Before you trust the result: what to know about the format, the limits, your data and the tools next to it.

4.9 out of 5 from 150+ developers

Build the product around it

Every block, template and icon, installed by your AI agent in your theme. The tools stay free.

Get Pro