safe-folder-name-generator
A safe folder name is one that survives on every filesystem and tool β Windows (no <>:"|?*, no reserved names CON / NUL / COM1, max 255 chars), macOS (no slash, no colon at API level), Linux (no slash, no null), Git (no spaces ideal, no dots at start), Docker (lowercase only sometimes), URLs (no spaces or non-ASCII). The ZTools Safe Folder Name Generator turns a free-form description into a folder-safe string with configurable rules: lowercase, dash / underscore / kebab-case, transliterate accents, drop reserved names, strip illegal chars.
Use casesβ
Sanitize user-uploaded folder namesβ
A user types "Q1 Report (2026) <Final>" β your storage backend chokes. Sanitize to "q1-report-2026-final".
Generate stable Git branch namesβ
Branch from a Linear ticket title. Sanitize to a Git-safe slug.
Standardise project folder structureβ
Across 100+ projects, enforce consistent folder naming β kebab-case, lowercase, no special chars.
Create Docker container / image namesβ
Docker requires lowercase + limited special chars. Sanitize generated names before docker build.
How it worksβ
- Paste source name β Free-form text.
- Pick rules β Case (lower / preserve), separator (- / _ / .), transliterate accents, strip illegal chars, drop reserved names, max length.
- Validate against platforms β Result tested against Windows, macOS, Linux, Git, Docker. Failures shown.
- Copy β Single name or batch from a list.
Examplesβ
Input: "Q1 Report (2026) <Final>"
Output: q1-report-2026-final β kebab-case, illegal chars stripped, lowercased.
Input: "My Folder /with/ slash"
Output: my-folder-with-slash β slashes stripped (would break path).
Input: "CON" (Windows reserved name)
Output: Warning: reserved! Suggested: con-folder.
Input: Accented "cafΓ© rΓ©sumΓ©"
Output: cafe-resume β transliterated to ASCII for max portability.
Frequently asked questionsβ
Why drop accents?
Older filesystems and some Linux locales mangle UTF-8 accents. Transliteration preserves the visual meaning while guaranteeing portability.
Reserved names β why?
Windows treats CON, PRN, AUX, NUL, COM1-9, LPT1-9 as device names regardless of file extension. Even creating CON.txt fails. Never use these.
Max length?
Default 50 chars (covers all platforms with margin). Pickleable up to 255.
Privacy?
All in browser.
Tipsβ
- Default to lowercase + kebab-case for max portability + readability.
- For Git branches, use feature/short-description format β slash-separated namespace is Git-friendly.
- For Docker, use lowercase only β uppercase fails docker tag.
- Always test on the most restrictive platform you target. Windows is usually the limit.
Try it nowβ
The full safe-folder-name-generator runs in your browser at https://ztools.zaions.com/safe-folder-name-generator β no signup, no upload, no data leaves your device.
Last updated: 2026-05-06 Β· Author: Ahsan Mahmood Β· Edit this page on GitHub