Skip to content
SEO Everyone Free Online SEO Tools
SEO Everyone

Colour mode

↑↓ to choose Enter to open Esc to close

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.

Runs in your browser Free, no sign-up

Search engines and other crawlers

One path per line, starting with "/". Use * for any characters and $ for the end, e.g. /*.pdf$.

Presets:

AI crawlers to block

·

Google ignores it. Only set it if crawlers are overloading your server.

    How to create a robots.txt file

    1. Choose whether crawlers may visit the site. Most live sites allow them.
    2. List the folders and pages crawlers should skip, or start from a preset.
    3. Tick the AI crawlers you want to block, and add your sitemap address.
    4. 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.

    Browse all tools