Robots.txt Generator

A robots.txt file sits at the top level of a website and tells search engine crawlers which addresses they may visit. Most small sites need only a simple one. Choose a starting point, add any folders you want crawlers to stay out of, and download the finished file.

What should search engines be allowed to visit?

Which crawler the rules are for. Leave empty, or type *, for all of them. Googlebot is Google's.

One per line, starting with a slash.

Your robots.txt

User-agent: *
Disallow:

Upload the file to the top folder of your site, so that it opens at yourdomain.com/robots.txt.

Free to use. Everything is worked out in your own browser: nothing you type is sent to us or stored.

Step by step

How to use it

  1. Choose "Allow everything", "Block everything" or "Custom rules".
  2. For custom rules, list the paths to block, one per line, such as /admin/ or /cart/.
  3. Add the full address of your sitemap if you have one.
  4. Download the file and upload it to the top folder of your website, so that it opens at yourdomain.com/robots.txt.

Questions

Common questions

Does robots.txt hide a page from Google?

Not reliably. It asks crawlers not to visit a page, but the address can still appear in results if other sites link to it. To keep a page out of search results, use a "noindex" tag on the page or put it behind a login. Never rely on robots.txt to protect private information.

When would I block everything?

Almost only on a test or staging copy of a site that should not be found yet. On a live site, "Block everything" asks every search engine to stop crawling the whole site, which hides it from search results over time. Remember to change it back when the site goes live.

Where does the file go?

In the top folder of the site, so that it opens at https://yourdomain.com/robots.txt. It must be named exactly robots.txt, in lower case. On hosted platforms such as Shopify or Wix the file is managed for you and edited through the platform's settings.

Want it done for you?

SEO

Crawling and indexing checks like this one are part of the technical side of our SEO work.

More free tools

Meta Tag Generator

Create the title, description and social sharing tags for a page, ready to paste.

URL Slug Generator

Turn a page or post title into a clean, readable web address.

Google Result Preview

See how your page title and description could look in Google before you publish.

All free tools

Start a project

Tell us what you are working on.

Share the goal, the budget and the deadline. You will get a straight answer on what we would do and what it would cost.

WhatsApp