# Remove Spaces from Filename

**URL:** <https://community.mp3tag.de/t/remove-spaces-from-filename/18697>\
**Category:** Support\
**Created:** [February 11, 2017, 1:28pm UTC](https://community.mp3tag.de/t/remove-spaces-from-filename/18697 "2017-02-11T13:28:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![SirFatty](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/8c91f0/32.png) [@SirFatty](https://community.mp3tag.de/u/SirFatty)\
**Post date:** [February 11, 2017, 1:28pm UTC](https://community.mp3tag.de/t/remove-spaces-from-filename/18697/1 "2017-02-11T13:28:07Z")

</div>

Hello all,

I've been looking for a resolution to this, but cannot find exactly how to do this.

When I convert from tag to filename, I would like to remove spaces. For example, the artist and song:

The Smashing Pumpkins, Bullet With Butterfly Wings

I would like the filename to be

TheSmashingPumpkins\_BulletWithButterflyWings

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)\
**Post date:** [February 11, 2017, 2:37pm UTC](https://community.mp3tag.de/t/remove-spaces-from-filename/18697/2 "2017-02-11T14:37:03Z")

</div>

> [@SirFatty](#):
>
> ...The Smashing Pumpkins, Bullet With Butterfly Wings  
> I would like the filename to be
> 
> TheSmashingPumpkins\_BulletWithButterflyWings
> 
> Thanks in advance!

If you use the Convert\>Tag-Filename function, enclose the mask for the filename in a $replace() function, e.g.:  
$replace(%artist%\_%title%, ,)

---

<div class="post-metadata">

**Author:** ![SirFatty](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/8c91f0/32.png) [@SirFatty](https://community.mp3tag.de/u/SirFatty)\
**Post date:** [February 11, 2017, 2:39pm UTC](https://community.mp3tag.de/t/remove-spaces-from-filename/18697/3 "2017-02-11T14:39:49Z")

</div>

> [@ohrenkino](#):
>
> If you use the Convert\>Tag-Filename function, enclose the mask for the filename in a $replace() function, e.g.:  
> $replace(%artist%\_%title%, ,)

Absolutely perfect. Thank you!

---

<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:26pm UTC](https://community.mp3tag.de/t/remove-spaces-from-filename/18697/4 "2026-02-09T12:26:40Z")

</div>


