# Renaming Title and Artist with Action

**URL:** https://community.mp3tag.de/t/renaming-title-and-artist-with-action/45192
**Category:** General Discussion
**Created:** [April 19, 2019, 4:02pm UTC](https://community.mp3tag.de/t/renaming-title-and-artist-with-action/45192 "2019-04-19T16:02:29Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![izzyforeal](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/i/8491ac/32.png) [@izzyforeal](https://community.mp3tag.de/u/izzyforeal)
#### Post date: [April 19, 2019, 4:02pm UTC](https://community.mp3tag.de/t/renaming-title-and-artist-with-action/45192/1 "2019-04-19T16:02:29Z")

</div>

Hello all, forgive me if this seems like a ridiculous question but is there an action you could setup that would take this song TITLE: "frank sinatra-New York" and convert it to "Frank Sinatra - New York" and do it for all files with mixed information like: "frank sinatra-New York (producer Joe Miller)" and reduce it to "Frank Sinatra - New York". Thanks for the help.

\_Izzy

---

<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: [April 19, 2019, 4:28pm UTC](https://community.mp3tag.de/t/renaming-title-and-artist-with-action/45192/2 "2019-04-19T16:28:28Z")

</div>

> [@izzyforeal](#):
>
> TITLE: "frank sinatra-New York" and convert it to "Frank Sinatra - New York"

Create an action of the type "Replace"  
Search string: frank sinatra-  
Replace string: Frank Sinatra -  
(which reads minus-space at the end but does not show like that here)

> [@izzyforeal](#):
>
> frank sinatra-New York (producer Joe Miller)" and reduce it to "Frank Sinatra - New York".

Create another action of the type "Replace" for TITLE  
Search string: `(producer Joe Miller)`  
Replace string:  
(leave empty)

I hope, we are really talking about the tag field TITLE and not the filename.

---

<div class="post-metadata">

### Author: ![izzyforeal](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/i/8491ac/32.png) [@izzyforeal](https://community.mp3tag.de/u/izzyforeal)
#### Post date: [April 19, 2019, 4:58pm UTC](https://community.mp3tag.de/t/renaming-title-and-artist-with-action/45192/3 "2019-04-19T16:58:56Z")

</div>

Ok gotcha, but this won’t work for every other file opened in the same folder correct? As you point out, it is the TITLE not the file name. Is there an action to just use the file name as sometimes the actual file name and TITLE are not the same.

Thx

---

<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: [April 19, 2019, 5:10pm UTC](https://community.mp3tag.de/t/renaming-title-and-artist-with-action/45192/4 "2019-04-19T17:10:17Z")

</div>

I would suggest that you first get the tag fields right - and then you construct a filename from the tag data.  
Use the function Convert\>Filename-Tag to get the tag fields filled for

> [@izzyforeal](#):
>
> frank sinatra-New York

with  
Format string: %artist%-title%  
For

> [@izzyforeal](#):
>
> Frank Sinatra - New York

there is the  
Format String: %artist% - %title%  
For

> [@izzyforeal](#):
>
> frank sinatra-New York (producer Joe Miller)

use the  
format string: %artist%-%title% (producer %producer%)  
or if you want to ignore everything in parenthesis:  
format string: %artist%-%title% (%dummy%)

If you are not satisfied with the cases of the fields, use an action of the type "Case Conversion", here probably "mixed case".  
(see the help: [Case Conversion – Mp3tag Documentation](https://docs.mp3tag.de/actions/case-conversion))

And once you have all the tag data in the way you want it, then use  
Convert\>Tag-Filename  
Format string: %artist% - %title%

---

<div class="post-metadata">

### Author: ![poster](https://community.mp3tag.de/user_avatar/community.mp3tag.de/poster/32/4881_2.png) [@poster](https://community.mp3tag.de/u/poster)
#### Post date: [April 20, 2019, 11:08am UTC](https://community.mp3tag.de/t/renaming-title-and-artist-with-action/45192/5 "2019-04-20T11:08:52Z")

</div>

> [@izzyforeal](#):
>
> is there an action you could setup that would take this song TITLE: "frank sinatra-New York" and convert it to "Frank Sinatra - New York"

As Ohrenkino already wrote there are possibilities to do that.  
But of course there are limitations if your artist/band-name comes with a hyphen itself, i.e.  
`Swiss-German-Dixie-Corporation`

---

<div class="post-metadata">

### Author: ![izzyforeal](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/i/8491ac/32.png) [@izzyforeal](https://community.mp3tag.de/u/izzyforeal)
#### Post date: [April 20, 2019, 11:26am UTC](https://community.mp3tag.de/t/renaming-title-and-artist-with-action/45192/6 "2019-04-20T11:26:50Z")

</div>

It seems there are too many variables with the extended tags that come with the music I download for this to be effective. In many instances once downloaded, I open the file and there’s no data in mp3Tag, not even the song title. This would take me forever to code and there’s so much garbage in the tags and different scenarios with the renaming to ensure the effectiveness. Thanks to everyone that responded. I love this software and I love the community. This is an example of doing it right. I commend all of you.
