Remove whitespace characters from filenames

You can use Renamer4Mac to remove whitespace characters such as spaces and tabs from filenames. This tutorial will show you how.

Step 1: Install Renamer4Mac

Download Renamer4Mac and then install it by dragging it into your Applications directory.


Step 2: Drag in files

Drag the files whose extensions you wish to rename into Renamer4Mac.

Drag in files

Tip: You can also drag in entire directories. This way you can include entire folder hierarchies in one go.


Step 3: Switch to Search & Replace mode

Click on the Search & Replace tab:
Switch to Search and Replace mode


Step 4: Enter search and replace text

Enter "\s" in the "Search for" box while leaving the "Replace with" box empty. Tick the "Regular expression" tick box.

RemoveWhitespaceCharactersStep4


Step 5: Check with live preview

Before you commit the changes it's a good idea to check with Renamer4Mac's built-in live preview table that your files will be renamed correctly.

RemoveWhitespaceCharactersStep5

Step 7: Rename!

Click Rename to commit your changes.