Robots.txt Generator
Create robots.txt, test path rules locally and download a file ready to review.
Publishing reference: Google’s robots.txt creation guide.
Get a useful result from Robots.txt Generator.
Create robots.txt online with rules you can inspect before publishing. This free robots.txt maker writes the file for you, so you don’t need to learn the syntax first. Choose a crawl policy, optionally add sitemap URLs, and generate a plain-text file. Check a single path or compare up to 20 paths in a local report before downloading. This tool does not modify your live website or check whether Google has indexed it.
When this tool helps
- Prepare one wildcard crawler group for a new site without a manual text editor.
- Keep a draft folder out of cooperative crawling while allowing a specific public subsection.
- Review an intended rule against a path before replacing your existing robots.txt file.
Choose an open policy or selected paths
Allow crawling creates a wildcard group without blocking a path. Disallow selected paths lets you enter up to 50 disallowed paths and 50 allowed exceptions. Enter one path per line, starting with /. Use * for variable text and $ only at the end when you need an exact ending. Keep essential rendering assets accessible when reviewing your setup.
Use the local preview as a review step
After generating the file, enter a path such as /drafts/example. For a broader review, test up to 20 unique paths together and download a JSON report containing the exact rules and results. Include a public page, a blocked folder and an allowed exception. The preview reports allowed or blocked and identifies the matching line where available. It evaluates only this generated wildcard group using a local parser; it does not fetch a page, inspect an existing file or reproduce every crawler implementation. Paths are case-sensitive, and a more specific allowed exception can override a broader blocked path.
Download first, then publish on your own host
Copy the rules or download the UTF-8 robots.txt file. Back up and compare an existing file before replacing it; this generator does not merge custom crawler groups already present there. Publish at the host root and open the live URL to review the returned file. Adding a sitemap URL only declares its location: it does not create, validate or submit a sitemap.
Crawl control is different from privacy and indexing
Disallow is not a password or access restriction. An indexed URL can still appear in search even when crawling is blocked. Use authentication for private information. If you intend to remove a public page from search, review appropriate indexing controls instead of assuming a robots.txt rule removes it. The entire-site block mode requires explicit confirmation because it can prevent crawlers from reading your public pages.
Example input
Policy: Disallow selected paths
Disallow: /drafts/
Allow exception: /drafts/public/
Sitemap: https://example.com/sitemap.xmlExpected output
User-agent: *
Disallow: /drafts/
Allow: /drafts/public/
Sitemap: https://example.com/sitemap.xmlIn this local example, /drafts/example is blocked and /drafts/public/example is allowed. These are illustrative paths, not a recommendation to expose private drafts. The downloaded file must be reviewed and installed on your own host.
Questions about this task
How do I create robots.txt online for free?
Choose a policy, add optional paths and sitemap URLs, and select Generate robots.txt. Review the text, test a path if useful, then copy or download it. No signup or file upload is needed.
Where do I upload the generated file?
Place it at the root of the host it applies to, such as https://your-site.com/robots.txt. Different protocols, hosts and ports have separate scopes. Check your hosting platform’s file-editing method before replacing an existing file.
Can this generator test whether Google can index a page?
No. Its preview checks a path against the generated wildcard rules only. It does not inspect your live file, fetch the page, check meta tags or query Search Console. Crawling permission and indexing are separate questions.
Does Disallow: / remove my site from Google?
It requests that cooperating crawlers avoid the site. It does not guarantee removal of URLs already known to a search engine and does not hide private information. Use the entire-site block only when that crawl restriction is intentional.
Can I add more than one sitemap?
Yes. Enter up to 10 absolute HTTP or HTTPS sitemap URLs, one per line. Credentials, fragments, spaces and non-web protocols are rejected. The generator does not fetch those URLs or verify their contents.
How to use Robots.txt Generator
Choose an open policy, disallow selected paths with optional allowed exceptions, or explicitly confirm blocking the whole site. Add optional sitemap URLs, generate, preview a path and download robots.txt. Review and upload it to your own host root.
Good to know
Creates one User-agent: * group, with up to 50 paths per list and 10 sitemap URLs. The local preview evaluates these generated rules only; it does not fetch your existing file or verify Google indexing. Robots.txt is not access control or a reliable way to remove indexed URLs. No upload to your website is performed.
A few helpful answers
Is this tool free?
Yes. All features on this page are free and require no account.
Where is my data processed?
In your browser. Tool input and selected images are not sent to our servers. Clear the page or close the tab to discard your input.
What should I check before using the result?
Creates one User-agent: * group, with up to 50 paths per list and 10 sitemap URLs. The local preview evaluates these generated rules only; it does not fetch your existing file or verify Google indexing. Robots.txt is not access control or a reliable way to remove indexed URLs. No upload to your website is performed.
