# Robots.txt generator — Lexicon SEO

> Build a robots.txt file in your browser, with a sitemap line and blocks for known AI crawlers. Nothing is uploaded.

Free tool

# Robots.txt generator

A robots.txt generator writes a draft file you can review and publish yourself. Leave a crawler unchecked to allow it. Check it to add a disallow rule for that crawler's documented token. Add your sitemap URL if you have one. This runs in your browser.

AI crawlers to block Block GPTBot OpenAI training crawler Block OAI-SearchBot OpenAI search crawler Block ChatGPT-User OpenAI user-triggered fetch Block ClaudeBot Anthropic training crawler Block Claude-SearchBot Anthropic search crawler Block Claude-User Anthropic user-triggered fetch Block anthropic-ai Older Anthropic crawler token Block PerplexityBot Perplexity crawler Block Perplexity-User Perplexity user-triggered fetch Block Google-Extended Google Gemini training opt-out Block Applebot-Extended Apple AI training opt-out Block CCBot Common Crawl Block Bytespider ByteDance crawler Block Amazonbot Amazon crawler Block meta-externalagent Meta AI training and indexing Block meta-webindexer Meta AI search citations Block meta-externalads Meta advertising products Sitemap URL, optional robots.txt

Copy robots.txt

Nothing you type is sent to Lexicon. This page does not save the result.

Related: the [robots.txt and sitemap validator](https://lexiconseo.com/tools/robots-sitemap-validator/) checks a file that is already published. All of them are on the [free SEO checker tools](https://lexiconseo.com/tools/) page.

Canonical: https://lexiconseo.com/tools/robots-txt-generator/
