🤖

Robots.txt Generator

Prepare crawl instructions for robots that read a site's robots.txt file. robots.txt is a crawling convention, not access control for private content. Crawlers can interpret optional instructions differently, so review the intended agents and paths before using the file.

Your entries are processed in this browser. Nothing is fetched, published or submitted by this generator.

1. Configure the file

Configure the file, then generate it.

Automatic sitemap uses the site’s origin followed by /sitemap.xml.

⚠️ Enter URL (https://example.com)

Common paths to block

Sitemaps

2. Generate and review

📄 robots.txt

💡 Upload this file to the root of your website: https://yoursite.com/robots.txt

About robots.txt

  • • robots.txt is a crawling convention, not access control for private content. Crawlers can interpret optional instructions differently, so review the intended agents and paths before using the file.
  • • Automatic sitemap uses the site’s origin followed by /sitemap.xml.
  • • Crawl-delay is optional and is not supported by every crawler.
  • • Choose a preset or arrange agent groups with allowed and disallowed paths, then review the generated text. Add an absolute sitemap address when needed; generating the file does not publish it to your site.
  • • Your entries are processed in this browser. Nothing is fetched, published or submitted by this generator.
  • • No. Protect confidential content with suitable access controls.

Robots.txt Generator

Our free Robots.txt Generator helps you create a properly formatted robots.txt file. Configure user-agent rules, disallow/allow paths, set crawl delays, add sitemap URLs, and block AI crawlers like GPTBot and CCBot. Includes presets for WordPress, e-commerce, and AI bot blocking.

Copied

Copy failed. Select the result and copy it manually.

Embed this tool on your website

Use whole pixel dimensions from 1 to 4096.

× px (1–4096)

                        

💡 Integration Tip

Copy the embed code and paste it into your website HTML. The responsive version adapts to all screen sizes automatically.

1 rating
✓

Popular Tools

No more tools to show
Explore All Tools

About Robots.txt Generator

The Robots.txt Generator builds a crawler directive file rule by rule: pick a User-agent, add Allow and Disallow paths, then set a Crawl-delay or one or more Sitemap URLs. Checkboxes cover the paths sites commonly block, such as /wp-admin/, /cart/ and /*.pdf$, and presets handle allow-all, block-all, WordPress, e-commerce, and blocking AI crawlers like GPTBot, CCBot and anthropic-ai. The file is assembled in your browser and can be copied or downloaded as robots.txt.

Block all; site https://example.com; automatic sitemap; credit off. User-agent: *; Disallow: /; Sitemap: https://example.com/sitemap.xml.

Method and scope reviewed on 23 October 2026.

Use Cases

Developers and QA engineers inspecting, validating, or transforming data using the Robots Txt Generator.
Prepare crawler groups, Allow/Disallow paths and sitemap declarations for a site, reviewing directives before manual publication.
Students learning web development, data formats, or encoding schemes with a hands-on Robots Txt Generator.
Technical writers preparing code samples, configuration examples, or documentation assets.
Compare directives for cooperative crawlers; robots.txt does not replace access control.

How to use

1

Choose Allow All, Block All, WordPress, Block AI Bots or E-commerce to load its settings, then edit the groups before generating.

2

Fill in Site URL with your domain, for example https://example.com, so the sitemap line can be built from it.

3

In each rule choose a crawler from the User-Agent dropdown, then use + Add Disallow and + Add Allow to enter paths such as /admin/; add more crawlers with + Add User-Agent Rule.

4

Select the rule group for common paths, tick the paths and apply them. Set Crawl-delay in seconds only for crawlers that support it.

5

Under Sitemaps keep Auto-add /sitemap.xml ticked or use + Add Sitemap to list extra sitemap URLs.

6

Set the credit option, click Generate, review every directive, then copy or download robots.txt. Uploading it to the domain root remains manual.

7

Generate, review every directive, then copy or download robots.txt.

Pro Tips

  • Choose a preset or arrange agent groups with allowed and disallowed paths, then review the generated text. Add an absolute sitemap address when needed; generating the file does not publish it to your site.
  • Use keyboard shortcuts (Ctrl/Cmd+A to select all, Ctrl/Cmd+C to copy) to speed up your workflow inside the Robots Txt Generator.
  • Use manageable batches and inspect rejected fields. robots.txt is a crawling convention, not access control for private content. Crawlers can interpret optional instructions differently, so review the intended agents and paths before using the file. Your entries are processed in this browser. Nothing is fetched, published or submitted by this generator.
  • Your entries are processed in this browser. Nothing is fetched, published or submitted by this generator. Copy useful results to a local file to retain them.
  • Combine the Robots Txt Generator with other tools on this site (formatters, converters, encoders) to build complete data pipelines without leaving your browser.
  • robots.txt is a crawling convention, not access control for private content. Crawlers can interpret optional instructions differently, so review the intended agents and paths before using the file.
  • Crawl-delay is optional and is not supported by every crawler.

Frequently Asked Questions

No. Protect confidential content with suitable access controls.

Use a complete absolute URL rather than a relative path.

Yes, the tool is offered free without signup or a personal API key. The validation and service limits described on this page still apply.

Your entries are processed in this browser. Nothing is fetched, published or submitted by this generator.

URLs and fields must satisfy their format rules. Browser memory and field validation constrain usable input.

Yes. Outputs generated with the Robots Txt Generator are yours to use freely in any personal or commercial project.

Most of the logic runs in client-side JavaScript, so after the initial load you can often keep working without a network connection.

Local generation does not consume a server request quota. Format, output and browser resource limits still apply.

FreeWebTools AI