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.
- Choose robots.txt or sitemap.xml
- Enter your rules or page list
- Copy or download the file
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.
- Upload robots.txt to the root of your site, for example example.com/robots.txt.
- Add the sitemap address to Search Console and to robots.txt.
- Robots rules ask crawlers to stay away. They do not hide pages, so use a password for private content.
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.