Free Robots.txt Generator

Use this free robots.txt generator to create a robots.txt file for your website. Enter your site address, decide which search engines, AI crawlers and SEO bots may crawl it, add the folders and URL parameters to skip, then copy, download or test the file. No signup.

Website configuration

Required. The home page address of the site this file is for.
Templates add to what you already have. Your sitemap, folders and rules are kept.
Full address on the same host as your website. Add one per line if you have several.

    Crawler rules

    Leave a crawler on “Same as default” unless you want it treated differently.

    Default rule for all crawlers
    Applies to every crawler you do not set below.
    Bing and Yandex read this. Google ignores it.
    Search engines
    AI crawlers
    AI training
    Collect pages, or control the use of pages, for building AI models.
    AI search
    Index pages so an AI search feature can find, cite and link to them.
    AI user fetch
    Open a page because a person asked an assistant to. Some operators say robots.txt may not apply to these requests.
    General search engine
    Crawl for web search. What they collect can also feed AI answers.

    Each label shows a crawler’s main job; some do more than one. robots.txt is a request that well-behaved crawlers follow. It does not enforce access or control how collected content is used.

    AI crawler list last reviewed: 26 November 2026

    SEO tool crawlers

    Custom rules

    Allow or disallow a path for any user agent. Wildcards work: * matches any characters and $ marks the end of a URL.

    Directory and parameter rules

    Addresses that no allowed crawler should request.

    Restricted directories

    Start each path with a slash, for example /admin/. Without a closing slash you choose between a folder and a path prefix.

    Query parameters to block

    Enter a parameter name such as orderby. It is blocked whether it comes first (?) or after another parameter (&).

    Everything runs in your browser and nothing you enter is sent anywhere, unless you download the PDF report, which sends the results shown and your email to our server. Review the file before you publish it: one wrong line can hide a whole site from search.

    Your robots.txt file

    The preview updates as you change the form.

    Enter your website URL above to see your robots.txt file.

    0User-agent groups
    0Allow and Disallow rules
    0Sitemaps
    0 BFile size
    robots.txt0 lines
    You edited the file by hand, so form changes are not applied to it. Copy, Download and Test use the text shown here.

    Upload the file to the root of your domain, as /robots.txt. You use the generated file at your own discretion.

      What this file does

          Keep every page crawlable, every week

          PilotDeck audits your whole site on a schedule, flags crawl blocks and indexing problems as they appear, and tracks whether AI assistants mention your brand.

          Start my first 7 days for $1Start my first 7 days for ₹99Get started

          Try our other free SEO tools

          Work through the next item on your list without making an account. Each tool opens on its own page and runs straight away.

          Technical SEO

          SERP and rankings

          AI search and GEO

          Keyword research

          • AI keyword toolGet keyword ideas sorted by what searchers want
          • LSI keywords generatorSurface related terms and semantic variations
          • Keyword density checkerSpot overused phrases and measure repetition
          • Semantic validatorTest how completely a page covers its topic

          Content and writing

          • Meta title generatorGet SEO title options drafted from your topic
          • Meta description generatorDraft description options from your page copy
          • Content outline generatorBuild a heading outline informed by live results
          • Word counterCount words and estimate reading time

          Social and YouTube

          • YouTube title generatorWrite video titles that match your topic and keyword
          • YouTube SEO tags generatorPick tags based on what viewers actually search
          • Reddit threads finderSpot threads that rank and get cited in AI answers
          • LinkedIn post optimizerTighten a post so it reads well and reaches further
          Browse all 50 free SEO tools →

          What is a robots.txt generator?

          A robots.txt generator turns a handful of plain choices into the text file that tells crawlers where they may go on your site. Instead of typing User-agent and Disallow lines by hand and hoping the syntax holds up, you pick options from a form and get a file in the format that Google, Bing and AI crawlers expect.

          This robots.txt file generator covers more than the classic allow-or-refuse list. It names 30 crawlers across search, AI and SEO tools, accepts custom rules for any user agent, and ships with templates for popular platforms. It also keeps your rules consistent: when one bot gets a group of its own, the folders you restricted for everyone are repeated inside that group, because a crawler that finds its own section stops reading the general one.

          What the generator checks for you

          • A live preview that follows the form, with line numbers and the file size.
          • Errors with the exact line, such as a relative sitemap address, a path that does not start with / or *, or a Crawl-delay that is not a number.
          • Templates that add to your work. Your sitemap, folders and rules stay, and a conflict is explained instead of overwritten.
          • Folder or prefix. A path without a closing slash is never widened without asking you.
          • Parameter rules in both positions, after ? and after &.

          What is a robots.txt file?

          It is a plain text file at the root of your domain that well-behaved bots read before they request anything else. The format belongs to the Robots Exclusion Protocol, which became an official internet standard, RFC 9309, in 2022. Each group in the file names one or more crawlers and then lists the paths they may or may not fetch.

          What the file can and cannot do

          It can

          • Keep crawlers away from admin areas, carts and internal search pages.
          • Stop bots wasting crawl budget on filter and sort URLs.
          • Point every crawler to your XML sitemap.
          • Allow or refuse individual AI crawlers.

          It cannot

          • Remove a page that is already in search results.
          • Protect private files, since anyone can read the file.
          • Stop scrapers that choose to ignore it.
          • Rescue a site from a stray Disallow: /.

          Who uses a robots.txt generator

          • SEO specialists and agencies set up crawl rules at launch and rebuild them after a site migration.
          • Founders and site owners create a first robots.txt without learning the syntax.
          • Developers keep a locked-down file for staging and a separate open file for production.
          • Content and brand teams decide which AI tools may read and quote their pages.

          How to create a robots.txt file with this generator

          Here is how to create a robots.txt file online with the tool above.

          1. Enter your website URL. It sets the sitemap suggestion, the comment lines and the address the file belongs at.
          2. Add a template if one fits. Allow everything, Block everything, WordPress, WooCommerce, Blogger, Joomla, Drupal or Magento. A template adds rules to what you already have.
          3. Check the sitemap address. Keep the suggestion only if it loads. It must be a full address on the same host as your website.
          4. Set the crawler rules. Allow all is right for almost every live website. Then set any search engine, AI crawler or SEO bot to Allowed or Refused, or use an AI shortcut.
          5. List directories and parameters. Choose folder or path prefix for a path without a closing slash, and add parameter names such as orderby.
          6. Add custom rules if you need them. Mix Allow and Disallow for any user agent, including wildcard patterns such as /*.pdf$.
          7. Review and save. Fix any errors listed under the preview, then copy or download the file and upload it to your site's root folder. Press Test it with the robots.txt checker to open your file in the robots.txt checker before you publish.

          Robots.txt syntax at a glance

          A robots.txt file is a list of groups. Each group opens with one or more User-agent lines, followed by the rules for those crawlers. One directive goes on each line, and lines starting with # are comments.

          DirectiveWhat it doesExample
          User-agentNames the crawler the group applies to. An asterisk means every crawler.User-agent: Googlebot
          DisallowA path the crawler should not request. Left empty, it blocks nothing.Disallow: /checkout/
          AllowOpens a path inside a blocked folder.Allow: /media/logo.png
          SitemapThe full URL of an XML sitemap. It sits outside groups and applies to all crawlers.Sitemap: https://example.com/sitemap.xml
          Crawl-delaySeconds to wait between requests. Bing and Yandex read it; Google does not.Crawl-delay: 10
          #A comment for humans. Crawlers skip it.# Staging rules

          Wildcards and matching

          Paths are matched from the start of the URL and are case-sensitive, so /Blog/ and /blog/ are different rules. An asterisk stands for any run of characters and a dollar sign marks the end of the URL: Disallow: /*?sessionid= catches every URL carrying that parameter, and Disallow: /*.pdf$ catches every PDF. When an Allow and a Disallow rule both match, Google follows the longer, more specific one, and picks Allow if the two are equally long.

          The slash at the end of a path matters. Disallow: /private/ covers what is inside that folder, while Disallow: /private also covers /private-policy. A parameter can come first in a query string or follow another one, so blocking it takes two lines: Disallow: /*?orderby= and Disallow: /*&orderby=.

          How groups decide which rules apply

          A crawler obeys only the most specific group that names it. If Googlebot has its own group, it ignores everything under User-agent: *. This catches out many hand-written files, where a site blocks /admin/ for everyone, adds a Googlebot group for something else, and leaves the admin area open to Google. The generator avoids that by repeating your restricted directories in every named group that is allowed to crawl.

          Robots.txt examples and templates

          Each robots.txt example below is a complete file you can adapt. Swap in your own paths and sitemap address (you can confirm one with the sitemap checker), or add the matching template in the generator and edit it there.

          Allow all crawlers

          The simplest valid file. Every crawler may fetch every URL.

          User-agent: *
          Allow: /
          
          Sitemap: https://www.example.com/sitemap.xml

          Disallow all crawlers

          For staging sites and private projects only. Left on a live site, it hides every page from search.

          User-agent: *
          Disallow: /

          Block one folder for everyone

          User-agent: *
          Disallow: /internal/
          Disallow: /*?sort=

          Refuse a single crawler

          Everyone else keeps full access; only the named bot is turned away.

          User-agent: *
          Allow: /
          
          User-agent: MJ12bot
          Disallow: /

          WordPress robots.txt

          A robots.txt for WordPress keeps the dashboard out of reach but leaves the AJAX endpoint open, because themes and plugins use it on the public site. There is no need to block /wp-includes/, which holds scripts Google uses to render your pages.

          User-agent: *
          Disallow: /wp-admin/
          Disallow: /search/
          Disallow: /*?s=
          Disallow: /*&s=
          Allow: /wp-admin/admin-ajax.php
          
          Sitemap: https://www.example.com/wp-sitemap.xml

          Custom robots.txt for Blogger

          Blogger's search and label pages create endless thin URLs, so a custom robots.txt for Blogger usually blocks /search while keeping the AdSense crawler fully open.

          User-agent: Mediapartners-Google
          Allow: /
          
          User-agent: *
          Disallow: /search
          Allow: /
          
          Sitemap: https://yourblog.blogspot.com/sitemap.xml

          Online store with filters

          Carts, accounts and sorted or filtered listings rarely belong in search. Blocking their URL patterns saves crawl budget for products and categories.

          User-agent: *
          Disallow: /cart/
          Disallow: /checkout/
          Disallow: /my-account/
          Disallow: /*?orderby=
          Disallow: /*&orderby=
          Disallow: /*?filter_
          Disallow: /*&filter_
          
          Sitemap: https://www.example.com/sitemap_index.xml

          How to manage AI crawlers in robots.txt

          AI companies publish names for their crawlers, and most of those names fall into three jobs. AI training crawlers collect pages, or control the use of pages, for building AI models. AI search crawlers index pages so an AI search feature can find, cite and link to them. AI user-fetching crawlers open a page because a person asked an assistant to, and some operators say robots.txt may not apply to those requests. General search engine crawlers such as Googlebot and Bingbot crawl for web search, and what they collect can also feed AI answers.

          The jobs overlap for some crawlers, so read both columns before you refuse one.

          User agentOperatorSearch or retrievalTraining or content useCommon choice
          GPTBotOpenAINone documentedContent may be used to train OpenAI's foundation modelsYour call, separate from search
          OAI-SearchBotOpenAISurfaces sites in ChatGPT searchNot documented as a training crawlerAllow, to be findable in ChatGPT search
          ChatGPT-UserOpenAIFetches a page for a user's request; does not decide what appears in searchNot used for automatic crawlingAllow
          ClaudeBotAnthropicNone documentedAnthropic's training crawlerYour call
          Claude-SearchBotAnthropicCrawls to improve search result qualityNot documented as a training crawlerAllow, to be findable in Claude
          Claude-UserAnthropicFetches a page for a user's requestNot documented as a training crawlerAllow
          PerplexityBotPerplexitySurfaces and links sites in Perplexity search resultsPerplexity says it is not used to crawl for foundation modelsAllow, to be cited
          Perplexity-UserPerplexityFetches a page for a user's requestPerplexity says it is not used to collect training contentAllow
          Google-ExtendedGoogleControls grounding in Gemini; no effect on inclusion in Google SearchControls use of content to train Gemini models. It has no crawler of its ownYour call
          Applebot-ExtendedAppleNo effect on inclusion in Apple search resultsControls use of Applebot data to train Apple's foundation models. It does not crawlYour call
          CCBotCommon CrawlNone documentedOpen web dataset that third parties reuse, including for model trainingYour call
          Meta-ExternalAgentMetaMay index content to improve Meta productsMay be used to train Meta's foundation modelsYour call
          BytespiderByteDanceNot verifiedReported by third parties; reports on robots.txt compliance differOften blocked
          AmazonbotAmazonUsed to improve Amazon products and servicesMay be used to train Amazon AI modelsYour call

          AI crawler list last reviewed: 26 November 2026. Names and behaviour change, so confirm anything important in the operator's documentation.

          Stay citable, opt out of training

          Many publishers want AI assistants to recommend and link to them without handing their pages to model training. The Block AI training, keep AI search shortcut in the generator builds these rules:

          User-agent: *
          Allow: /
          
          User-agent: GPTBot
          User-agent: ClaudeBot
          User-agent: Google-Extended
          User-agent: Applebot-Extended
          User-agent: CCBot
          User-agent: Meta-ExternalAgent
          User-agent: Bytespider
          User-agent: Amazonbot
          Disallow: /

          What robots.txt will not do for AI

          The file is a request. OpenAI and Perplexity both state that their user-triggered fetchers may not follow robots.txt, since a person asked for the page, and crawlers that do not identify themselves will not read it at all. If content must stay out of every AI tool, put it behind a login or block it at your firewall. To see whether AI assistants actually mention you once the doors are open, run the free AI visibility checker. If you also want to hand language models a summary of your site, the llms.txt generator writes that file.

          Common robots.txt mistakes and how to avoid them

          A leftover Disallow: / from staging

          A development site is often blocked completely, and that file gets copied to production at launch. Check the live file the day you go live, and again after every redesign or migration.

          Blocking CSS, JavaScript or images

          Google renders pages much like a browser. If stylesheets and scripts are blocked, it may misread your layout and content. Keep folders such as /assets/ and /wp-includes/ crawlable.

          Using robots.txt to hide pages

          A disallowed URL can still be indexed if other pages link to it; it just shows without a description. Google stopped honouring noindex lines inside robots.txt in 2019. Use a noindex meta tag or an X-Robots-Tag header instead, and leave that page crawlable so the tag can be seen.

          Forgetting that named groups override the default

          Rules under User-agent: * do not carry over into a group that names a crawler. Repeat any restriction you still need, or let the generator do it for you.

          A relative sitemap address

          Sitemap: /sitemap.xml is not valid. The line needs the complete URL, starting with https://.

          The wrong file name or location

          The file must be called robots.txt in lowercase, saved as plain UTF-8 text, and served from the root of each host. A copy in a subfolder is ignored, and blog.example.com needs its own file.

          Expecting Crawl-delay to slow Google

          Googlebot ignores the line and adjusts its pace based on how quickly your server responds. Crawl-delay only affects crawlers that support it, such as Bingbot and YandexBot.

          How to upload and test your robots.txt

          Upload the file to the top-level folder of your site so it opens at https://yourdomain.com/robots.txt. You do not need to submit it anywhere, because crawlers fetch it on their own. The exact steps depend on your platform.

          • WordPressWordPress serves a virtual file by default. Edit it in your SEO plugin's file editor, or upload a real robots.txt to the root folder by FTP.
          • BloggerSettings, then Crawlers and indexing. Switch on Enable custom robots.txt and paste the file.
          • ShopifyShopify generates the file. To change it, edit the robots.txt.liquid template in your theme code.
          • Wix and WebflowBoth have a robots.txt field in their SEO settings. Paste the generated text there.
          • Next.jsPlace the file in the public folder, or return the rules from app/robots.ts.
          • Static sites and serversSave the file in the web root next to your home page's index file.

          Test before and after you publish

          Before you publish, the Test it with the robots.txt checker button opens your generated file in the robots.txt checker, ready to test any page address against it. After you upload, open the live URL in a browser to confirm the new version is being served, then fetch it in the checker to see which crawlers each rule lets in. Google Search Console's robots.txt report shows the version Google last fetched, any lines it could not parse, and lets you ask for a fresh fetch. Google reads up to 500 KiB of the file and usually refreshes its cached copy within a day.

          When to review your robots.txt

          • At launch, to confirm the staging block is gone.
          • After a migration or redesign, when folder names and URL patterns change.
          • When you add a section, such as a store, a forum or a members area.
          • When a new AI crawler appears that you want to allow or refuse.
          • When pages stop getting indexed without an obvious reason.

          One file, or the whole site?

          A robots.txt generator gets the rules right on day one. Keeping them right is harder, because plugin updates, new templates and site changes can block pages without anyone noticing. PilotDeck's site audit watches crawlability across your whole domain and flags problems as they appear, and you can sign up to run it on your site.

          Robots.txt generator FAQ

          What is a robots.txt file?

          A robots.txt file is a plain text file at the root of a website that tells crawlers which addresses they may request. It is made of groups: User-agent lines that name crawlers, followed by Allow and Disallow rules. The format is the Robots Exclusion Protocol, published as RFC 9309.

          What is a robots.txt generator?

          A robots.txt generator is a form that writes your robots.txt file for you. You choose which crawlers may visit and which folders stay off limits, and the tool turns those choices into correctly formatted User-agent, Allow, Disallow and Sitemap lines that you upload to the root of your site.

          How do I generate a robots.txt file?

          Enter your website URL in the generator above, add a template if one fits, set rules for any crawler you want to treat differently, list the folders and parameters to block and check the sitemap address. Fix anything listed as an error under the preview, download the file, keep the name robots.txt in lowercase and upload it to the top-level folder of your domain.

          Is robots.txt still used?

          Yes. Google, Bing and other search engines still request the file before they crawl, and the protocol became an official internet standard, RFC 9309, in 2022. It matters even more now that AI companies publish named crawlers that read it.

          What is the difference between Allow and Disallow?

          Disallow names a path a crawler should not request. Allow opens a path again, usually one page or file inside a blocked folder. When both match the same address, Google follows the longer, more specific rule, and picks Allow if they are equally long.

          How do I allow Googlebot?

          Googlebot may crawl anything that is not disallowed, so most sites need no special rule: keep Default rule on Allow all and leave Googlebot on Same as default. If you block everything else, set Googlebot to Allowed in the Search engines list and it gets a group of its own.

          Can robots.txt protect private content?

          No. The file is public and following it is voluntary, so it does not restrict access, and listing a secret folder shows everyone where it is. Protect private pages with a password, a login or firewall rules.

          Is bypassing robots.txt illegal?

          The file is a voluntary convention, not a lock, and on its own it carries no legal force. Whether ignoring it creates legal risk depends on the country, the site's terms of use and what happens to the collected data, so ask a lawyer about a specific case. For anything that must stay private, use a login or firewall rules rather than robots.txt.

          Where should robots.txt be placed?

          In the root of the host it applies to, for example https://www.example.com/robots.txt. A copy inside a subfolder is ignored, and every subdomain, such as shop.example.com, needs a file of its own.

          Can robots.txt remove a page from Google?

          No. Robots.txt controls crawling, not indexing, so a blocked URL can still appear in results, without a description, if other pages link to it. To keep a page out of search, let it be crawled and add a noindex meta tag or X-Robots-Tag header, or put it behind a login.

          Does Google support Crawl-delay?

          No. Googlebot ignores the Crawl-delay line and sets its own pace based on how quickly your server responds. Bing and Yandex do read it, so this generator adds the delay to every group except Google's crawlers.

          How do I block AI crawlers?

          In the AI crawlers section, press Block AI training, keep AI search to refuse the training crawlers while leaving search and user-requested fetchers allowed, or Block all AI crawlers to refuse every one listed. You can also set each crawler yourself. Compliance is up to the crawler, and some user-requested fetchers may not follow robots.txt.

          Should I block AI crawlers in robots.txt?

          It depends on what you want from AI tools. Refusing training crawlers and tokens such as GPTBot, ClaudeBot and Google-Extended asks their operators not to use your content for model training; it is a request, not an access control. Blocking search crawlers such as OAI-SearchBot, Claude-SearchBot and PerplexityBot can remove you from AI answers and citations, so brands that want to be recommended usually keep those allowed.

          How do I add a custom robots.txt in Blogger?

          Enter your blog's address as the Website URL, add the Blogger template in the generator, check the sitemap suggestion and copy the result. In Blogger, open Settings, go to Crawlers and indexing, switch on Enable custom robots.txt and paste the file.

          How do I test my robots.txt file?

          Press Test it with the robots.txt checker under the preview. The checker opens with your file already pasted, so you can test any page address against any crawler before you upload. After uploading, fetch the live file in the checker and look at the robots.txt report in Google Search Console.

          Do I need to submit robots.txt to Google?

          No. Crawlers fetch the file on their own. Google usually caches it for up to a day, so after a major change you can ask for a fresh fetch from the robots.txt report in Google Search Console.

          Is this robots.txt generator free?

          Yes. There is no account, no limit and no watermark in the file. The generator runs entirely in your browser, so nothing you enter is sent to PilotDeck unless you download the optional PDF report, which asks for your email and sends the results shown.

          Crawl rules are step one. Getting found is the rest.

          PilotDeck researches what your buyers search, publishes content against it every month, audits your pages continuously, and tracks which AI engines name you.

          LLM Trackers

          Letting AI crawlers in is only half the job. PilotDeck also follows what the major AI assistants say about you, so you know where your brand is named, linked or left out.