Windows filenames can’t contain \ / : * ? " < > |, and can’t end in a space or period. Paste a name below: the Windows profile strips those characters, straightens smart quotes and tidies spaces, instantly and for free. This is also the safe cross-platform choice, since Windows is the strictest of the three desktop systems.
These nine are never allowed: \ / : * ? " < > |. The profile deletes each one.
A name can’t end in a space or a period; Windows silently drops them and breaks the name. Both are trimmed for you.
Names like CON, PRN, AUX, NUL, COM1 and LPT1 are reserved by Windows, so rename the file if you hit one.
Download this exact setup as a ready-made Filename-safe (Windows) profile. Give it a global hotkey in the Windows app and any name you copy is cleaned for this target the instant you paste, so a Windows machine can prepare files for a Mac, a Linux box or a server over SSH. Same engine as above, entirely offline.
Windows filenames cannot contain any of these nine characters: backslash \, forward slash /, colon :, asterisk *, question mark ?, double quote ", less-than <, greater-than >, or pipe |. A name also can’t end in a space or a period, and can’t be a reserved device name such as CON, PRN, AUX, NUL, COM1 to COM9 or LPT1 to LPT9.
Remove the illegal characters (\ / : * ? " < > |), delete any trailing space or period, and make sure the name isn’t a reserved word like CON or NUL. Paste the name into the tool above to strip them all at once.
A single filename can be up to 255 characters, though the full path was historically limited to 260 characters (MAX_PATH). Short, descriptive names avoid trouble in deep folders and when syncing to the cloud.
Yes. Windows has the strictest rules of the three desktop systems, so a name that is valid on Windows is valid on macOS and Linux too. That makes the Windows profile the safe cross-platform choice.
Cleaning for a different system? Use the tabs above, or head back to the Windows filename cleaner or the full tool on the home page.