Back to home

Robots.txt & Sitemap Generator

Control what search engines crawl and tell them which pages exist. Type your rules or paste your page list and download the files.

  1. Choose robots.txt or sitemap.xml
  2. Enter your rules or page list
  3. Copy or download the file
Loading the tool...

Your files never leave your device

What the two files do

The robots.txt file tells search engine crawlers which parts of your site they should stay away from, and the sitemap.xml file lists the pages you want them to find. Switch between the two modes, fill in the rules or the page list and copy or download the result. For robots.txt you can choose All bots or a specific bot, a preset, paths to disallow or allow, a sitemap address and a crawl delay.

A worked example

For a small shop, choose All bots, disallow /cart/ and /checkout/ and add the sitemap address https://example.com/sitemap.xml. The file then contains a User-agent line for all bots, a Disallow line for each path and a Sitemap line.

For the sitemap, enter the site address and paste the list of paths, one per line, such as /about and /products. They are completed with the site address, and you can add today's date as the last modified date. A single file can hold up to 50,000 URLs.

Limits and common mistakes

The Block everything preset asks all crawlers to stay away from the whole site, so use it only for a site under construction and remove it before launch. A mistake here can remove your site from search results. Robots.txt is not security, because anyone can read the file and ignore it.

To keep a page out of results, use a noindex tag instead, because a blocked page can still appear if other sites link to it. Change frequency and priority are optional and mostly ignored by Google, so keep the sitemap accurate and focus on the correct, canonical addresses.

Frequently asked questions

Is anything uploaded?

No. The files are built on your device.

Does robots.txt block pages from Google?

It asks crawlers not to crawl them. Use a noindex tag to keep pages out of results.

How many URLs can a sitemap hold?

Up to 50,000 URLs per file.

Can I use relative paths?

Yes. Set the site address and they are completed for you.

Do I need changefreq and priority?

They are optional and mostly ignored by Google.

Where does the sitemap go?

On your site root, then list it in robots.txt and Search Console.

Related tools

Save this tool to use it later

Add this page to your browser bookmarks by pressing Ctrl + D