Generate a clean, valid robots.txt file for your website in seconds with this free online robots.txt generator. Define which search-engine crawlers are allowed or blocked from specific paths, add a sitemap reference, and set a crawl delay — all produced instantly in your browser with no signup and no uploads.
The robots.txt file lives at the root of your domain (for example https://example.com/robots.txt ) and tells crawlers like Googlebot which parts of your site they may access. Our generator groups rules by user-agent automatically and outputs ready-to-publish text.
An online robots.txt generator removes the syntax errors that silently wreck crawl budgets. A single mistyped User-agent, a missing blank line between rule groups, or a malformed Disallow path can block the wrong pages from Google or, worse, accidentally deindex the whole site. Generating the file from a form guarantees valid syntax and a sensible structure every time.
This create robots.txt tool also handles the parts people forget: the Sitemap: directive that points crawlers at your XML sitemap, per-user-agent rules so you can welcome Googlebot while blocking a scraping bot, and optional Crawl-delay for sites that need rate limiting. Pair the output with tags from the Meta Tag Generator and structured data from the Schema Markup Generator for a complete SEO foundation.
robots.txt regenerates instantly as you type or edit rules - no Generate button needed. * for all crawlers, or restrict rules to a specific bot like Googlebot . Rules are grouped automatically. Sitemap: directive so crawlers discover your XML sitemap. Crawl-delay for all robots to slow down aggressive crawling. robots.txt . /private/ ). * for all crawlers, or a specific bot name for targeted rules. robots.txt . /robots.txt . robots.txt is a plain-text file you place at the root of your site (e.g. https://example.com/robots.txt) that tells crawlers which parts of your site they may visit. It is built from groups, each starting with a User-agent line that names the crawler (or * for all), followed by Allow and Disallow rules that match URL paths, plus an optional Crawl-delay and a site-wide Sitemap directive pointing to your XML sitemap.
Path matching supports two wildcards: * matches any sequence of characters and $ anchors the match to the end of the URL. So Disallow: /*.pdf$ blocks all PDFs, and Disallow: /private/ blocks everything under that folder. A crucial distinction: robots.txt controls crawling, not indexing. A blocked URL can still appear in search results if it is linked from elsewhere; to truly keep a page out of the index, use a noindex meta tag or response header instead. Never use robots.txt to hide sensitive pages — it is publicly readable.
Common uses are disallowing duplicate or faceted-URL parameters, keeping staging or admin paths out of the crawl budget, and pointing crawlers at your sitemap. Keep rules simple, test them, and avoid blocking the CSS and JavaScript Google needs to render a page. To generate the matching on-page tags instead, use the Meta Tag Generator, and craft clean URLs with the URL Slug Generator.
noindex meta tag to keep a URL out of results. User-agent groups are well-formed.