Robots.txt File Generator
Construct an optimized, RFC-compliant robots.txt file to control search engine indexing, protect administrative directories, and declare XML sitemaps.
XML Sitemaps
# ==================================================================== # Robots Exclusion Protocol (robots.txt) # Generated by TxtCraft (https://txtcraft.site) # Date: 2026-10-28 # ==================================================================== User-agent: * Disallow: /admin/ Disallow: /api/private/ Disallow: /checkout/ Allow: /public/ Allow: /sitemap.xml User-agent: Googlebot Disallow: /temp/ Allow: / Sitemap: https://example.com/sitemap.xml Sitemap: https://example.com/sitemap-articles.xml
Robots.txt controls crawling, not guaranteed indexing
Robots.txt is a set of crawler access instructions. Disallow rules can prevent compliant bots from fetching paths, but they do not reliably remove an already known URL from search results. Use an appropriate noindex directive on crawlable pages when removal from indexing is the goal.
Practical example: User-agent: * followed by Disallow: /private/ requests that compliant crawlers avoid that directory. Add a Sitemap directive with the absolute sitemap URL so crawlers can discover the published URL list.
Important limitation: Test rules against the final deployed robots.txt. A broad Disallow: / can block crawling of the entire site, and blocking a page may prevent Google from seeing a noindex tag on that page.
More Webmaster & Plain Text Tools
Compare file revisions, strip formatting, or create custom text documents.
TXT File Maker
Online notepad & text file creator with UTF-8, ANSI & CRLF/LF line endings.
Batch TXT Generator
Generate hundreds of customized text files with variables and ZIP export.
Text Case Converter
Transform strings into UPPERCASE, lowercase, Title Case, camelCase & snake_case.
Essential Webmaster Templates
Standardized templates for search engine crawlers, security contacts, and site credits.
SEO & Crawler Configuration Guides
In-depth tutorials on search engine crawler syntax, security disclosures, and indexing rules.
The Complete Guide to Plain Text (.txt) Files: Architecture, Encodings, and Best Practices
CRLF vs LF: Understanding Line Endings Across Windows, macOS, and Linux
Character Encodings Explained: UTF-8, UTF-16, ASCII, and Windows-1252
Frequently Asked Questions
Find quick answers to common questions about plain text files, encodings, and online tools.