Robots.txt Generator
Build a simple robots.txt draft for all crawlers.
Result
How to use Robots.txt Generator
- Enter the values in the order shown in the input label or try the built-in sample.
- Select Run tool to generate the output.
- Review the output before copying it.
How it works
Build a simple robots.txt draft for all crawlers. Prefix each supplied path with Disallow and append the optional sitemap URL.
Formula or processing rules
Prefix each supplied path with Disallow and append the optional sitemap URL.
Worked example
The sample disallows crawling under /private/ and adds the full sitemap URL to a separate Sitemap line.
| Measure | Value |
|---|---|
| Disallow paths, one per line; optional full sitemap URL on the last line | /private/ https://example.com/sitemap.xml |
| Result | User-agent: * Disallow: /private/Sitemap: https://example.com/sitemap.xml |
Before using the result
Review path prefixes before publishing. A rule for an entire directory affects paths starting with that directory. Check that public tool pages and resources needed to render them remain accessible.
Pros and cons
Pros
Build a simple robots.txt draft for all crawlers. The sample provides an immediate check of the expected output.
Cons
Robots.txt controls crawl instructions. It does not secure private pages or reliably remove a URL from search.
Troubleshooting
Check the input format and compare your case with the built-in sample. Robots.txt controls crawl instructions. It does not secure private pages or reliably remove a URL from search.
Common issue and what to check
If a page needs privacy, require authentication. If an intended public section stops appearing in crawl reports, review accidental broad prefixes.
Frequently asked questions
How do I use the text I get back?
Copy the output into the document, list, or compatible tool where you need it.
How does the transformation work?
Prefix each supplied path with Disallow and append the optional sitemap URL.
Can I try a sample first?
Yes. Select Try a sample to load the worked example and see the expected result.
What should I check before using the result?
Robots.txt controls crawl instructions. It does not secure private pages or reliably remove a URL from search.
Is my input stored by the tool?
The transformation is computed in the open page. The tool does not save the submitted text.