Filename Sanitizer
Generate safe, cross-platform filenames by removing illegal characters and normalizing names.
Why some filenames break
Different operating systems forbid different characters in filenames. Windows rejects \ / : * ? " < > | and reserves names like CON, PRN, and NUL. macOS dislikes leading dots in some contexts; Linux handles almost anything but other systems consuming the file may not. This sanitizer produces a name that works everywhere — replacing illegal characters, normalizing Unicode (NFKC), and trimming trailing dots and spaces.
Runs in your browser. The file is read locally and never uploaded.
What this tool does:
- Removes illegal characters (Windows/macOS/Linux)
- Normalizes Unicode characters (NFKC)
- Trims spaces and trailing dots
- Collapses multiple spaces
- Preserves file extension
- Avoids reserved names (CON, PRN, etc.)
or drag and drop
Frequently Asked Questions
Which characters does it strip?
Characters illegal on Windows (\ / : * ? " < > |), control characters, leading and trailing whitespace, and trailing dots. Reserved Windows device names like CON, PRN, AUX, NUL, COM1–COM9, and LPT1–LPT9 are renamed.
What about Unicode names?
Unicode is preserved. The tool normalizes the name with NFKC (so visually identical strings hash the same) but does not transliterate or remove non-ASCII characters.
Does it change the file's contents?
No. Only the filename is rewritten — the file's bytes are downloaded unchanged.