Robots.txt Generator
Build a robots.txt file without remembering the syntax. Start from a ready-made choice such as a typical website, WordPress, blocking AI crawlers or blocking a staging site, then add rules for any crawler, allow or disallow paths and list your sitemaps. The file updates as you type, with warnings for risky settings such as blocking the whole site. It runs in your browser, so nothing is uploaded.
Keeps crawlers out of admin, cart and internal search pages.
robots.txt
User-agent: * Disallow: /admin/ Disallow: /cart/ Disallow: /search Sitemap: https://www.example.com/sitemap.xml
Upload it to the top level of your site, so it opens at /robots.txt.
robots.txt asks crawlers to stay away. It does not keep a page private, and a blocked page can still appear in search if other sites link to it. Use a password or noindex for that.
How to use it
- Choose a starting point, or build your own.
- Edit the Disallow and Allow paths for each crawler, and add more crawlers if you need.
- Add your sitemap address.
- Copy the text or download robots.txt and upload it to the top level of your site.
Frequently asked questions
Is what I paste uploaded anywhere?
No. This tool runs in your browser, on your own device, and what you paste is never sent to our server.
Where does the robots.txt file go?
At the top level of your domain, so that it opens at https://www.yoursite.com/robots.txt. Each subdomain needs its own file.
Does robots.txt hide a page from Google?
No. It asks crawlers not to fetch a page, but a blocked page can still appear in results if other sites link to it. To keep a page out of search, use a noindex tag or password protection.
Will blocking AI crawlers work?
It asks those crawlers to stay out. Well-behaved crawlers that follow robots.txt honour it, but the file cannot force a crawler to obey.
What does Disallow: / do?
It asks the crawler to stay out of the entire site. That is right for a staging site and a disaster on a live one, so the tool warns you.
What is crawl delay?
A number of seconds to wait between requests. Google ignores it. Bing and some other crawlers follow it.
Related tools
Sitemap XML Generator
Create a valid sitemap.xml from a list of page addresses, with optional last-modified date, frequency and priority.
Meta Tags Generator (Open Graph & Twitter)
Make the title, description, canonical, robots, Open Graph and X (Twitter) tags for a page, with a search preview and length checks.
Open Graph Previewer (Social Link Preview Checker)
See how a link looks when shared on Facebook, LinkedIn, X, WhatsApp and Google, and check its Open Graph and Twitter tags.
XML Formatter & Validator
Beautify, minify and check XML: see whether it is well-formed, with the line and column of the first error.
These tools run entirely in your browser and are provided free, without warranty. Check important results before using them in production.