Robots.txt Generator
Build a correct robots.txt: allow or block crawlers, block AI bots, keep private folders out of search and add your sitemap.
One path per line, starting with "/". Use * for any characters and $ for the end, e.g. /*.pdf$.
Presets:
Google ignores it. Only set it if crawlers are overloading your server.
How to create a robots.txt file
- Choose whether crawlers may visit the site. Most live sites allow them.
- List the folders and pages crawlers should skip, or start from a preset.
- Tick the AI crawlers you want to block, and add your sitemap address.
- Choose Download, upload the file to the top folder of your site, then check it with the Robots.txt Tester.
Good robots.txt habits
- Don't block CSS and JavaScript. Google renders pages like a browser; blocking styles or scripts can make your pages look broken to it.
- Don't use robots.txt to hide private pages. The file is public. Use a password or noindex.
- Always list your sitemap. It helps every search engine find your pages, not just the ones you submit it to.
- Remember "Disallow: /" on launch day. A staging site's block-everything file copied to a live site is one of the most common SEO disasters.
Frequently asked questions
What is robots.txt?
A plain-text file at the root of your site (example.com/robots.txt) that tells crawlers which parts of the site they may fetch. Well-behaved crawlers such as Googlebot and Bingbot follow it; it does not stop people or badly behaved bots.
Where do I upload robots.txt?
To the top folder of your website, so it opens at https://yourdomain.com/robots.txt. Each subdomain (such as shop.example.com) needs its own file.
How do I block AI bots from my website?
Tick the AI crawlers you want to block. Each gets its own group with "Disallow: /". Blocking Google-Extended keeps your content out of Gemini training without affecting Google Search; blocking OAI-SearchBot also removes you from ChatGPT search results.
Should I block my admin or login pages?
You can, but robots.txt is public, so it shows everyone where those pages are. Protect private areas with a login and keep them out of search with noindex; use robots.txt to save crawlers from wasting time on endless filters, search results and carts.
Will robots.txt remove a page from Google?
No. A blocked page can still appear (without a description) if it is linked from elsewhere. To remove a page, let it be crawled and add a noindex tag.
Is what I enter sent anywhere?
No. The file is built in your browser.
Related tools
Browse all tools- Robots.txt Tester Read a site's robots.txt, check it for mistakes and test whether Googlebot, Bingbot, GPTBot or any crawler may fetch a URL.
- XML Sitemap Validator Find and validate a site's XML sitemap: format, URL count, addresses, lastmod dates and sitemap indexes, with the problems search engines care about.
- Indexability Checker Find out whether Google (or another search engine) can index a page: robots.txt, noindex tags and headers, status codes, redirects and canonical.
- Meta Tag Generator Write your title, description and social tags with a live Google result preview and length meters, then copy the ready-made HTML.
- SEO Checker Audit any web page for SEO: title, meta description, headings, indexing, canonical, speed, mobile, structured data and social tags, with a score and fixes.
- Broken Link Checker Check every link on a page and find the broken ones: 404s, server errors, dead domains and redirect chains, with optional image checks.