A single invalid character can stop a file from saving, syncing, or transferring. Different operating systems ban different characters, and some names are reserved entirely. Our free filename cleaner sanitizes file names for Windows, Mac, and Linux so they work everywhere — instantly in your browser.
Why File Names Cause Problems
Each operating system has its own rules for what a file name may contain:
- Windows forbids the characters
\ / : * ? " < > |and reserves names likeCON,PRN,AUX, andNUL. - macOS disallows the colon (
:) and the forward slash (/). - Linux is more permissive but still forbids the forward slash and null character.
A file named on one system can become unusable when moved to another, and cloud storage often rejects names with illegal characters or trailing spaces and dots.
How to Clean File Names Online
- Paste your file name (or a list of names) into the input box.
- Choose your target system — Windows, Mac, or Linux.
- Get a cleaned name with invalid characters removed or replaced and reserved names handled.
- Copy the safe file name with one click.
Everything runs locally in your browser, so your file names stay private.
Common Uses
Cross-platform transfers — Clean names before moving files between Windows, Mac, and Linux to avoid errors.
Cloud uploads — Sanitize names so they are accepted by services that reject illegal characters.
Batch renaming — Clean a whole list of file names at once before a bulk rename.
Web downloads — Generate safe file names for files served from a website.
Tips for Safe File Names
- Avoid special characters. Stick to letters, numbers, hyphens, and underscores for maximum compatibility.
- Watch for trailing spaces and dots. Windows silently strips them, which can cause mismatches.
- Keep names reasonably short. Very long paths can exceed system limits.
Frequently Asked Questions
Is the filename cleaner free? Yes — it is free, requires no sign-up, and runs entirely in your browser.
Which characters are invalid in file names?
Windows forbids \ / : * ? " < > |; Mac forbids : and /; Linux forbids /. The cleaner removes or replaces them based on your target system.
What are reserved file names?
Windows reserves names like CON, PRN, AUX, and NUL, which cannot be used even with an extension. The tool handles these automatically.
Is my data uploaded anywhere? No. All cleaning happens locally in your browser.
Got a file that will not save? Paste the name and clean it for your system in seconds.