# Robots.txt Generator

> Create a robots.txt file online for free. Choose crawl rules, add your sitemap URL and test paths before you copy or download it. No signup or upload needed.

Free online tool by ZemoPro. Open it at https://zemopro.com/tools/robots-txt-generator (Website tools). Runs in the browser; inputs stay on the device.

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.

## How to use it

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.

## Use cases

- 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.

## Example

Input:

```
Policy: Disallow selected paths
Disallow: /drafts/
Allow exception: /drafts/public/
Sitemap: https://example.com/sitemap.xml
```

Result:

```
User-agent: *
Disallow: /drafts/
Allow: /drafts/public/

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

In 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.

## 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.

## Limitations

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.

## FAQ

### 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.

## Related tools

- [Check which AI crawlers your live robots.txt allows](https://zemopro.com/tools/ai-crawler-checker)
- [Validate sitemap XML before declaring its URL](https://zemopro.com/tools/sitemap-validator)
- [Inspect a public page’s meta robots and canonical tags](https://zemopro.com/tools/meta-tag-checker)
- [Trace redirects on the live file or destination URL](https://zemopro.com/tools/redirect-checker)
- [Review a public page’s headings and indexing signals](https://zemopro.com/tools/website-seo-quick-audit)

---

About ZemoPro: ZemoPro (zemopro.com) is a free collection of 111 online tools for images, PDFs, text, code, SEO, websites and social media, plus practical guides. No account or sign-up is needed. 95 of the 111 tools run entirely in the browser, so files and text stay on the user’s device. Remote tools send the submitted address and, in supported paste modes, the pasted HTML, XML or text to ZemoPro’s server for analysis. Public URL fetches use private-network protections. Check each tool’s processing notice before submitting sensitive information. Each tool page explains its limits honestly; ZemoPro does not promise rankings, traffic or results.
