Crawl rule

Block these paths

Your robots.txt file will appear here.

Robots.txt Generator

Our free robots.txt generator builds a correct robots.txt file for your site in seconds, with no code to write.

Choose whether search engines may crawl everything or nothing, tick the folders and pages you want to block — such as /wp-admin/ and search results pages — add your sitemap address, and the tool writes the file for you.

Copy it or download it, then upload it to the root of your site so it is reachable at yourdomain.com/robots.txt.

The robots.txt file is a simple text file that tells search engine crawlers which parts of a site they may visit.

It saves crawl budget by keeping bots out of admin pages, checkout pages and internal search results, so they spend their time on the pages that matter.

It does not hide a page from search results, though — a blocked page can still appear if other sites link to it — so use a noindex tag when a page must stay out of Google completely.

The generator runs entirely in your browser and nothing you enter is stored.

Every site should have a robots.txt file, even a small blog: it takes a minute to create, it is one of the first things Google reads when it visits, and a correct file prevents the crawling mistakes that quietly waste your site’s visibility.

How to Use This Robots.txt Generator

Using the robots.txt generator takes less than a minute. Leave the user-agent as * to cover all search engines, or type a single crawler name if the file is only for one bot.

Choose “Allow all” to open your whole site, “Disallow all” to close it, or “Custom” to pick the paths to block.

Tick the boxes for the paths you want to block — the robots.txt generator has /wp-admin/, /wp-includes/ and /search/ ticked by default, since those are the paths almost every WordPress site blocks.

Add your sitemap address and a crawl-delay if you want one, then click Generate Robots.txt.

Copy the result or download it as robots.txt, then upload it to the root folder of your site so it loads at yourdomain.com/robots.txt. Test it in Google Search Console to make sure Google reads it the way you expect.

Robots.txt Generator Example

Take a standard WordPress site. With the default selections in the robots.txt generator — /wp-admin/, /wp-includes/ and /search/ ticked — plus the sitemap “https://example.com/sitemap.xml” and a crawl-delay of 10, the tool produces this file:

User-agent: *
Disallow: /wp-admin/
Disallow: /wp-includes/
Disallow: /search/
Crawl-delay: 10

Sitemap: https://example.com/sitemap.xml

Each Disallow line names one path the crawler must skip. The crawl-delay line asks bots to wait 10 seconds between requests, and the Sitemap line points them at the sitemap.

That is a complete, working robots.txt file for a typical small site. Copy the file the robots.txt generator produced and upload it to your site’s root folder.

What to Block — and What Not to Block

Block the paths that waste crawl budget: admin folders, plugin folders, internal search results, cart and checkout pages, and thank-you pages.

These pages have no value in search results, and every crawl spent on them is a crawl not spent on your content.

Do not block your CSS, JavaScript or image files — Google needs them to render your pages properly — and never block a page you actually want in search results.

Remember that robots.txt blocks crawling, not indexing: a blocked page can still appear in Google if other sites link to it, so use a noindex tag for pages that must stay out of the results completely.

Check the file the robots.txt generator produces before you upload it — a single wrong line can block your whole site. Run the robots.txt generator again whenever your site changes, so new sections, a new shop or a new search page all get a fresh look at what is blocked.

You will find more free SEO tools on Flipdesk to check your pages before you publish.

Frequently Asked Questions About the Robots.txt Generator

What is robots.txt?
A text file at the root of your site that tells search engine crawlers which parts they may visit.

Does robots.txt hide a page from Google?
No. It blocks crawling, not indexing. A blocked page can still appear in results if other sites link to it — use a noindex tag to hide a page.

Where do I put the file?
In the root folder of your site, so it loads at yourdomain.com/robots.txt.

Do I need a robots.txt file for a small site?
Yes. Even a small site benefits — it takes a minute to add, and it stops bots wasting time on admin and search pages.