Free SEO extension πŸ”₯

Robots.txt generator

Build a valid robots.txt file by choosing what search engines β€” and AI crawlers β€” can access. It updates live as you edit; copy it or download it and drop it in your site's root.

Works with
  • Google
  • Bing
  • OpenAI GPTBot
  • Anthropic ClaudeBot
Settings
Allow CSS & JS & images
Recommended β€” lets Google render your pages correctly.
Your robots.txt

              

Frequently Asked Questions

What is a robots.txt file?

A robots.txt file is a small plain-text file that sits at the root of your domain, for example example.com/robots.txt. Before a well-behaved crawler such as Googlebot, Bingbot or GPTBot visits your pages, it reads this file to learn which parts of the site it is allowed to request. Each group of rules starts with a User-agent line naming the crawler, followed by Allow and Disallow lines that list URL paths.

Robots.txt controls crawling, not indexing. If you disallow a page, search engines will usually stop fetching it, but the URL can still appear in results when other sites link to it. To keep a page out of search results, let it be crawled and add a noindex tag instead. Robots.txt is best used to keep crawlers away from areas that waste their time: admin screens, internal search results, cart and checkout pages, and endless filter combinations.

The file also has a second job: a Sitemap line tells every crawler where your XML sitemap lives. In recent years robots.txt has become the main way site owners decide which AI crawlers may read their content, because companies such as OpenAI, Anthropic, Google and Perplexity publish separate user-agent names for their bots.

Why use the Robots.txt Generator?

robots.txt is the first file well-behaved crawlers read. It tells them which areas to skip β€” admin pages, internal search, duplicate filters β€” and where your sitemap is. One wrong line can hide an entire site from search, so it pays to build it carefully.

How to use it

  1. Choose the default rule for all crawlers.
  2. Add disallowed paths, AI-bot rules and your sitemap URL.
  3. Copy or download the file and upload it as /robots.txt at your domain root.

Tips for better results

  • Never block CSS or JavaScript files that pages need to render.
  • robots.txt controls crawling, not indexing β€” use noindex to keep a page out of results.
  • Test changes with the robots.txt report in Google Search Console.

Step by step, with screenshots

  1. 1Choose the rules for search engines and AI crawlers β€” the file builds live, ready to copy or download.
    Step 1: Choose the rules for search engines and AI crawlers β€” the file builds live, ready to copy or download.

Features of the Robots.txt Generator

  • Live preview. The file updates as you change any setting, so you always see the exact text you will upload.
  • Default rule for all crawlers. Start from "allow everything" or "block everything" and add exceptions from there.
  • Disallowed paths. Add the folders and pages crawlers should skip, one path per line.
  • AI crawler controls. Allow or block AI bots individually instead of writing their user-agent names by hand.
  • Sitemap line. Add your sitemap URL so every crawler can find it.
  • Copy or download. Copy the text or download a ready-made robots.txt file. Everything runs in your browser.

Who is it for?

  • Website owners: create a correct robots.txt for a new site without learning the syntax.
  • Online stores: keep crawlers out of cart, checkout, account and filter URLs so they spend time on products.
  • Publishers: decide which AI crawlers may read your articles.
  • Developers and agencies: produce a clean starting file for client sites in a minute.

Understanding your results

The generated file is plain text. Each User-agent group applies to the crawler it names; a group for "*" applies to every crawler that has no group of its own. Within a group, the most specific matching rule wins, and Allow wins a tie.

After uploading, open yourdomain.com/robots.txt in a browser to confirm it is live, then check the robots.txt report in Google Search Console. If a page you care about later shows "Blocked by robots.txt" in Search Console, find the rule that matches its path and narrow it.

Example: an online furniture store

A furniture shop in Manchester noticed in Search Console that Google was crawling thousands of filter URLs β€” every combination of colour, material and price β€” while new products took weeks to appear. Its robots.txt contained only a sitemap line.

Using the generator, the owner kept the default "allow" rule, added disallowed paths for /cart/, /checkout/, /account/ and the ?filter= parameter, and added the sitemap URL. They allowed search-related AI crawlers but blocked training-only bots. After uploading the file and checking it at /robots.txt, crawl reports over the following weeks showed far fewer requests to filter pages and faster discovery of new products.

Common mistakes to avoid

  • Leaving "Disallow: /" in place after launching a site that was built on a staging server.
  • Blocking CSS or JavaScript files that pages need to render correctly.
  • Using robots.txt to hide private pages β€” the file is public, so it advertises the paths you list.
  • Expecting a disallow rule to remove a page from Google; use noindex for that.
  • Uploading the file to a subfolder; it only works at the root of the domain.

More questions about the Robots.txt Generator

Where do I upload robots.txt?

At the root of your domain, so it opens at yourdomain.com/robots.txt. Each subdomain needs its own file. A robots.txt placed in a subfolder is ignored.

How quickly do search engines notice changes?

Google usually refreshes its copy of robots.txt within about a day. You can check the version Google has read in the robots.txt report in Search Console.

Can robots.txt block AI crawlers?

Yes, for crawlers that respect it. AI companies publish user-agent names for their bots, and you can allow or disallow each one. It is a request, not access control, so truly private content needs a login.

From the blog
How to Validate GTIN, EAN and UPC Barcodes in Bulk
Check every barcode in your catalogue at once, understand why numbers fail and fix them before your feed is rejected.
How to Write SEO-Friendly URL Slugs (With Examples)
Rules and examples for clean, readable URL slugs, and why changing existing URLs needs care.
What Is a GTIN and How to Check If a Barcode Is Valid
GTINs, EANs and UPCs explained, how the check digit catches errors, and when online sellers need a real barcode.
How to Compare Your Website SEO With a Competitor, Side by Side
Run a free side-by-side SEO comparison with up to three competitors and turn the gaps into clear tasks.
How to Find Google Product Category IDs for Your Feed
Search Google’s product taxonomy, choose the most specific match and add the ID to your feed in a few minutes.
How to Do a Competitor SEO Analysis for Free, Step by Step
Identify who you really compete with in search, compare the right things and turn what you learn into a plan.
How to Choose the Right Google Product Category for Your Products
How Google’s product taxonomy works, when to set the category yourself and how to pick the most accurate one.
How to Check If Image URLs Are Working in Bulk
Test a whole list of image URLs at once and find the broken ones before customers or Merchant Center do.
How to Validate a Product Feed Before Uploading to Merchant Center
Catch missing attributes and format errors in your product feed with a free validator before Google disapproves anything.
How to Fix Common Google Merchant Center Feed Errors
The Merchant Center errors that disapprove the most products, what causes each one and how to fix it for good.