# How to replace an underscore character with a blank space

**URL:** <https://community.mp3tag.de/t/how-to-replace-an-underscore-character-with-a-blank-space/17233>\
**Category:** Support\
**Created:** [September 15, 2015, 4:18pm UTC](https://community.mp3tag.de/t/how-to-replace-an-underscore-character-with-a-blank-space/17233 "2015-09-15T16:18:21Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![tdalton](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/t/2bfe46/32.png) [@tdalton](https://community.mp3tag.de/u/tdalton)\
**Post date:** [September 15, 2015, 4:18pm UTC](https://community.mp3tag.de/t/how-to-replace-an-underscore-character-with-a-blank-space/17233/1 "2015-09-15T16:18:21Z")

</div>

First off, thanks for the all of the spot on and timely help. I just dug through the forums for this one but can't seem to find this specific case. I have many files that have underscores between different fields which prevent these files from being renamed with this wonderful utility. An example is FIELD1\_-_FIELD2_-\_FIELD3. The desired result for this example is: FIELD1 - FIELD2 - FIELD3

THANK YOU 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:** [September 15, 2015, 4:21pm UTC](https://community.mp3tag.de/t/how-to-replace-an-underscore-character-with-a-blank-space/17233/2 "2015-09-15T16:21:20Z")

</div>

You replace one string constant with another, so use a simple replace action for \_FILENAME:  
Search string: \_  
Replace string:  
(if you look closely, you see the space character ;-))

Or, if you want to make it absolutely sure:  
Search _-_  
Replace: -  
(blank-hyphen-blank)

---

<div class="post-metadata">

**Author:** ![tdalton](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/t/2bfe46/32.png) [@tdalton](https://community.mp3tag.de/u/tdalton)\
**Post date:** [September 15, 2015, 6:05pm UTC](https://community.mp3tag.de/t/how-to-replace-an-underscore-character-with-a-blank-space/17233/3 "2015-09-15T18:05:53Z")

</div>

That makes complete sense. I just don't know where to do this, Convert, Actions and if Actions do I need to make an Action group? What kind?

> [@ohrenkino](#):
>
> You replace one string constant with another, so use a simple replace action for \_FILENAME:  
> Search string: \_  
> Replace string:  
> (if you look closely, you see the space character ;-))
> 
> Or, if you want to make it absolutely sure:  
> Search _-_  
> Replace: -  
> (blank-hyphen-blank)

---

<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:** [September 15, 2015, 6:15pm UTC](https://community.mp3tag.de/t/how-to-replace-an-underscore-character-with-a-blank-space/17233/4 "2015-09-15T18:15:22Z")

</div>

> [@TD69](#):
>
> That makes complete sense. I just don't know where to do this, Convert, Actions and if Actions do I need to make an Action group? What kind?

Yes, it is an action.  
An action group is not really necessary (and only defined by a collection of actions under one name).  
If this is a one-off for cleaning up the collection and not a regular job, then you can create an Action (Quick).

---

<div class="post-metadata">

**Author:** ![tdalton](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/t/2bfe46/32.png) [@tdalton](https://community.mp3tag.de/u/tdalton)\
**Post date:** [September 15, 2015, 7:03pm UTC](https://community.mp3tag.de/t/how-to-replace-an-underscore-character-with-a-blank-space/17233/5 "2015-09-15T19:03:57Z")

</div>

Okay that worked perfectly as well. The last task for this mass file clean up, if I want to add a space on each side of a "-", can I do that? so if I have a filename: xxx-xxx-xxx can I rename it to xxx - xxx - xxx?

> [@ohrenkino](#):
>
> Yes, it is an action.  
> An action group is not really necessary (and only defined by a collection of actions under one name).  
> If this is a one-off for cleaning up the collection and not a regular job, then you can create an Action (Quick).

---

<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:** [September 16, 2015, 3:13am UTC](https://community.mp3tag.de/t/how-to-replace-an-underscore-character-with-a-blank-space/17233/6 "2015-09-16T03:13:23Z")

</div>

> [@TD69](#):
>
> Okay that worked perfectly as well. The last task for this mass file clean up, if I want to add a space on each side of a "-", can I do that? so if I have a filename: xxx-xxx-xxx can I rename it to xxx - xxx - xxx?

You can easily apply a similar action like for the underscore for \_FILENAME.  
Search: -  
Replace: -  
(blank-hyphen-blank)

This may lead to double blanks in files that already have at least one blank in front or behind the hyphen.  
So I would run a second replace action that replaces a double blank with a single blank.  
I think, you know by now how.

---

<div class="post-metadata">

**Author:** ![tdalton](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/t/2bfe46/32.png) [@tdalton](https://community.mp3tag.de/u/tdalton)\
**Post date:** [September 16, 2015, 1:57pm UTC](https://community.mp3tag.de/t/how-to-replace-an-underscore-character-with-a-blank-space/17233/7 "2015-09-16T13:57:26Z")

</div>

Thank you again sir!

> [@ohrenkino](#):
>
> You can easily apply a similar action like for the underscore for \_FILENAME.  
> Search: -  
> Replace: -  
> (blank-hyphen-blank)
> 
> This may lead to double blanks in files that already have at least one blank in front or behind the hyphen.  
> So I would run a second replace action that replaces a double blank with a single blank.  
> I think, you know by now how.

---

<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:25pm UTC](https://community.mp3tag.de/t/how-to-replace-an-underscore-character-with-a-blank-space/17233/8 "2026-02-09T12:25:52Z")

</div>

Closed on February 9, 2026, 12:25pm UTC


