# Remove spaces from file names

**URL:** https://community.mp3tag.de/t/remove-spaces-from-file-names/3699
**Category:** Support
**Created:** [August 26, 2006, 5:45pm UTC](https://community.mp3tag.de/t/remove-spaces-from-file-names/3699 "2006-08-26T17:45:16Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![cableghost](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/c/8797f3/32.png) [@cableghost](https://community.mp3tag.de/u/cableghost)
#### Post date: [August 26, 2006, 5:45pm UTC](https://community.mp3tag.de/t/remove-spaces-from-file-names/3699/1 "2006-08-26T17:45:16Z")

</div>

How can I auto remove spaces from file names...

I have: Goldfrapp -Strict Machine - Black Cherry

change to: Goldfrapp-Strict Machine-Black Cherry

Note that the spaces are trailing or leading spaces within the actual file name

---

<div class="post-metadata">

### Author: ![Nisl](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/n/d78d45/32.png) [@Nisl](https://community.mp3tag.de/u/Nisl)
#### Post date: [August 27, 2006, 11:16am UTC](https://community.mp3tag.de/t/remove-spaces-from-file-names/3699/2 "2006-08-27T11:16:10Z")

</div>

I think this will help you.

_Action type:_ **Replace with regular expression**  
_Field:_ **\_FILENAME**  
_Regular expression:_ **[\s]_-[\s]_**  
_Replace matches with:_ **-**

[] case-sensitive comparison

Nisl

---

<div class="post-metadata">

### Author: ![cableghost](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/c/8797f3/32.png) [@cableghost](https://community.mp3tag.de/u/cableghost)
#### Post date: [August 28, 2006, 1:21am UTC](https://community.mp3tag.de/t/remove-spaces-from-file-names/3699/3 "2006-08-28T01:21:08Z")

</div>

I will give it a try...thank you.

---

<div class="post-metadata">

### Author: ![cableghost](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/c/8797f3/32.png) [@cableghost](https://community.mp3tag.de/u/cableghost)
#### Post date: [August 28, 2006, 1:43am UTC](https://community.mp3tag.de/t/remove-spaces-from-file-names/3699/4 "2006-08-28T01:43:50Z")

</div>

It worked perfect, thanks again!

---

<div class="post-metadata">

### Author: ![system](https://community.mp3tag.de/uploads/default/original/2X/c/ce7035d426cb755a7916793326d23b465222a407.png) [@system](https://community.mp3tag.de/u/system)
#### Post date: [February 9, 2026, 12:19pm UTC](https://community.mp3tag.de/t/remove-spaces-from-file-names/3699/5 "2026-02-09T12:19:52Z")

</div>


