EasyConvert

Robots.txt Generator

Generate a robots.txt file for your website — the small text file that tells search engines which parts of your site they may crawl and which they must leave alone. Fill in the options below and the file is built for you, ready to upload to your website's root folder.

Download robots.txt

Fill in the options and press Generate.

How to use this converter

Choose whether to allow all crawlers or block specific folders, add any Disallow paths (one per line), and add your sitemap URL. The robots.txt appears below — download it and upload it to your website's root folder as robots.txt.

Formula

A robots.txt has groups: 'User-agent: *' means the rules apply to all search engines. 'Allow: /' means everything may be crawled. 'Disallow: /admin/' blocks the admin folder. 'Sitemap: https://example.com/sitemap.xml' points search engines at your sitemap. Rules are matched from the top down.

Most sites need only a simple robots.txt: allow everything, and list the sitemap. But sometimes you want to block a folder — an admin area, a search-results page, or a staging copy of the site — and that is what the Disallow rules are for. A wrong robots.txt can hide your whole site from Google, so this generator shows you exactly what each line does.

Robots.txt — examples

FromEquals
Allow everythingUser-agent: * / Allow: /
Block the admin folderDisallow: /admin/
Block search resultsDisallow: /search/
Point to the sitemapSitemap: https://example.com/sitemap.xml
Block one bot onlyUser-agent: BadBot / Disallow: /

Frequently asked questions

What is robots.txt?

A small text file in your website's root folder that tells search engine crawlers which pages they may visit and which they must not. It is a request, not a lock — well-behaved crawlers obey it.

Where do I put robots.txt?

In the root folder of your website, so it is reachable at example.com/robots.txt. It only works from the root — a copy in a subfolder does nothing.

Should I block pages with robots.txt to hide them from Google?

No — blocked pages can still appear in search results (without a description). To hide a page, use a noindex meta tag instead.

What happens if robots.txt blocks everything?

Google stops crawling your site, and your pages gradually disappear from search results. Only use 'Disallow: /' on a staging site, never on a live one.

Does robots.txt help my site rank?

Not directly — but it stops crawlers wasting time on useless pages (admin, search results), so they spend more time on your real content.