Easy Converter

robots.txt Generator

Generate a clean, error-free robots.txt file in seconds. Allow or block specific bots, exclude private folders, point search engines to your sitemap and download the result with one click. Built by SEO practitioners, validated against the Google Search Central specification.

How to use

  1. 1

    Pick a preset

    Choose Allow all, Block all, or WordPress / Shopify / Magento templates as a starting point.

  2. 2

    Add custom rules

    Add Disallow paths for private folders and Allow exceptions for assets you want crawled.

  3. 3

    Add your sitemap

    Paste the full URL of your sitemap.xml. The generator adds the `Sitemap:` line at the bottom.

  4. 4

    Download robots.txt

    Click Download and upload the file to the root of your domain.

Technical details

robots.txt is a plain-text file served at the root of your domain (https://example.com/robots.txt) that tells search engine crawlers which URLs they may request. It is a contract of trust — well-behaved bots respect it, malicious bots ignore it. robots.txt does not prevent indexing of URLs already known to Google; for that you need a `noindex` meta tag or HTTP header.

A robots.txt file is structured into groups, each starting with one or more `User-agent` lines followed by `Allow` and `Disallow` directives. Google honours the longest matching path, so `/private/` is more specific than `/`. The generator builds the directives in the right order, prevents common mistakes (`Disallow: /` blocks the whole site), and adds a `Sitemap:` line at the end.

Comments start with `#` and are ignored by crawlers; we use them to label each section, which makes the file readable when you revisit it months later. The file must be UTF-8 encoded without a byte-order mark — the generator outputs the correct encoding automatically.

Keep in mind that Disallow rules do not provide security: confidential URLs should be protected by authentication, not just hidden from crawlers. robots.txt is a search-engine politeness mechanism, not an access control system.

Frequently asked questions

Does robots.txt prevent indexing?
No. It prevents crawling. URLs already known to Google may still appear in results without a snippet. Use a `noindex` meta tag for true deindexing.
Can I have multiple sitemaps?
Yes. Add one `Sitemap:` line per file, or point to a sitemap index file.
Where should the file live?
At the root: https://example.com/robots.txt. It must not be in a subfolder.
How big can robots.txt be?
Google enforces a 500 KB limit. The generator warns you if you approach it.
Will the file work for Bing and Yandex?
Yes. The format is a shared standard. Bing and Yandex support the same directives plus a few extensions.
Reviewed by:Easy Converter Engineering Team

This tool was tested and calibrated by our engineering team. All processing happens locally in your browser — your files and data never leave your device.