# Remove string from filenames

**URL:** <https://community.mp3tag.de/t/remove-string-from-filenames/51028>\
**Category:** Support\
**Created:** [December 3, 2020, 3:03pm UTC](https://community.mp3tag.de/t/remove-string-from-filenames/51028 "2020-12-03T15:03:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![CKOnline](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/c/5e9695/32.png) [@CKOnline](https://community.mp3tag.de/u/CKOnline)\
**Post date:** [December 3, 2020, 3:03pm UTC](https://community.mp3tag.de/t/remove-string-from-filenames/51028/1 "2020-12-03T15:03:24Z")

</div>

So I just downloaded a playlist (Sonic Mania OST) and I want a fast way to rename these files.  
An example of this file title is "Oil Ocean Zone Act 1 - Sonic Mania", I want to remove " - Sonic Mania".

I have two more requests, there is another type of file title but with more dashes, "Rogues Gallery - Mirage Saloon Zone Act 2 - Sonic Mania", again I want to just remove "Sonic Mania".

My last request is the file name, "023. Rogues Gallery - Mirage Saloon Zone Act 2 - Sonic Mania" and "024. Oil Ocean Zone Act 1 - Sonic Mania" I want to keep the numbers and just remove "Sonic Mania".

I would appreciate it if someone can make these action commands for me.

---

<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:** [December 3, 2020, 5:49pm UTC](https://community.mp3tag.de/t/remove-string-from-filenames/51028/2 "2020-12-03T17:49:25Z")

</div>

I wonder which data you have in the tag fields.  
Because ... if the tag fields are already filled, then you could simply rename the file with  
Convert\>Tag-Filename  
Format string: %track%. %title%

If there is not yet any data in the fields, then it would be a good time to import the data into the tags first before you throw it away.  
Use Convert\>Filename-Tag for it and  
Mask: %album% - %title% - %artist%  
for tracks that follow the pattern of

> [@CKOnline](#):
>
> Oil Ocean Zone Act 1 - Sonic Mania", I want to remove " - Sonic Mania".

and  
%track%. %album% - %title% - %artist%  
for those with this pattern:

> [@CKOnline](#):
>
> 1. Rogues Gallery - Mirage Saloon Zone Act 2 - Sonic Mania

And if all this is not really the thing that you want to do but still manipulate the filename, try  
Convert\>Filename-Filename  
Source: %1 - Sonic Mania  
Target: %1

---

<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:28pm UTC](https://community.mp3tag.de/t/remove-string-from-filenames/51028/3 "2026-02-09T12:28:57Z")

</div>


