Filename Sanitizer

Turn messy file names into safe ones for Windows, Mac, Linux and websites: no forbidden characters, optional dashes and lowercase.

Runs in your browserNo sign-upWorks offline
↑Drop files here

or

Any file type · Files stay on your device

FileSizeStatus
report-final.pdf1.4 MBReady
photos-june.zip38.2 MBReady
notes.txt4 KBReady
Sample files shown

What the Filename Sanitizer does

The Filename Sanitizer cleans up file names so they work everywhere. It removes characters that Windows, macOS or Linux do not allow, invisible characters, extra spaces and names Windows reserves, and can replace spaces with dashes, change to lowercase and turn accented letters into plain ones. Paste a list of names and copy the cleaned versions.

How to use it

  1. Paste file names, one per line.
  2. Choose how spaces are handled, and whether to use lowercase and plain letters.
  3. Set the longest name allowed if a system needs short names.
  4. Copy the safe names.

Example

“My Résumé (final)?.PDF” becomes “my-resume-(final).pdf”, and “Report: Q3/Q4 *draft*.docx” becomes “report-q3-q4-draft.docx”. “CON.txt”, a name Windows refuses, becomes “con_.txt”. A Hindi name such as “नमस्ते दुनिया.txt” keeps its letters even with plain letters on, becoming “नमस्ते-दुनिया.txt”.

Why names cause problems

Windows forbids the characters < > : " / \ | ? * in names, and refuses names like CON, PRN, AUX, NUL, COM1 and LPT1. Spaces and accents can break links in web addresses and scripts. Lowercase names with dashes are the safest choice for websites, because many servers treat Photo.JPG and photo.jpg as different files.

Names copied from documents or chat apps can also contain invisible characters, such as zero-width spaces, that make two names look the same when they are not. The sanitizer removes them, and trims leading dots, which would hide a file on Mac and Linux.

Questions people ask

Does it rename my files?

No. It cleans the names you paste. To rename actual files, use the Bulk File Renamer.

What happens to the extension?

It is kept and cleaned, and becomes lowercase if you choose lowercase.

What if a name becomes empty?

It becomes “file”, so every name stays usable.

Is anything stored?

No. The names are cleaned in your browser.

Can I clean hundreds of names at once?

Yes. Paste one name per line, as many as you like, then copy all the safe names together.

Related tools