# Fix File Name From Tags

**URL:** <https://community.mp3tag.de/t/fix-file-name-from-tags/16589>\
**Category:** Support\
**Created:** [February 9, 2015, 7:56pm UTC](https://community.mp3tag.de/t/fix-file-name-from-tags/16589 "2015-02-09T19:56:42Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![mikeyb](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/edb3f5/32.png) [@mikeyb](https://community.mp3tag.de/u/mikeyb)\
**Post date:** [February 9, 2015, 7:56pm UTC](https://community.mp3tag.de/t/fix-file-name-from-tags/16589/1 "2015-02-09T19:56:42Z")

</div>

Hi all,

If anyone can help me with this.

Current file names are:

2002 020 - Creed My Sacrifice

Artist and title tags are already correct, so I am trying to correct the file name to include the - whilst retaining that 2002 020 as well

So i would end up with this:

2002 020 - Creed - My Sacrifice

I have played around with the actions using guess values, and i was able to populate the tags, using the file name, but cant figure out to do the reverse, to correct the file name with -

Thanks for any help

Mikey

 ![](https://community.mp3tag.de/uploads/default/original/2X/1/142672924f36014a8fe3442c95397a9fcb563a24.jpg)

---

<div class="post-metadata">

**Author:** ![mikeyb](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/edb3f5/32.png) [@mikeyb](https://community.mp3tag.de/u/mikeyb)\
**Post date:** [February 9, 2015, 8:04pm UTC](https://community.mp3tag.de/t/fix-file-name-from-tags/16589/2 "2015-02-09T20:04:46Z")

</div>

> [@mikeyb](#):
>
> I should also mention the 2002 020 part of the file name, is not a tag, so I was thinking, if i could populate the track number tag, with that first bit, then maybe i can rebuild the file names like Track - Artist - Title ?
> 
> Mikey

---

<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:** [February 9, 2015, 8:06pm UTC](https://community.mp3tag.de/t/fix-file-name-from-tags/16589/3 "2015-02-09T20:06:26Z")

</div>

> [@mikeyb](#):
>
> 2002 020 - Creed - My Sacrifice

What does 2002 020 mean?  
Are these numbers tags like 2002 for the year and 20 for the track number or something else?

---

<div class="post-metadata">

**Author:** ![mikeyb](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/edb3f5/32.png) [@mikeyb](https://community.mp3tag.de/u/mikeyb)\
**Post date:** [February 9, 2015, 8:11pm UTC](https://community.mp3tag.de/t/fix-file-name-from-tags/16589/4 "2015-02-09T20:11:45Z")

</div>

> [@poster](#):
>
> What does 2002 020 mean?  
> Are these numbers tags like 2002 for the year and 20 for the track number or something else?

hi there,

that's correct, its the year then chart number

---

<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:** [February 10, 2015, 5:52am UTC](https://community.mp3tag.de/t/fix-file-name-from-tags/16589/5 "2015-02-10T05:52:32Z")

</div>

> [@mikeyb](#):
>
> that's correct, its the year then chart number

So there are no tags filled at the moment with year and chart number?

There is no official tag "chart number" in MP3Tag. The track-number ist not meant for this but meant for a track of an album. But if you want you can use it for this purpose or you can create a selfdefined chartnumer-tag.

Create an action group with 2 actions in a row:

1. Action to fill the tags of year and tracknumber  
Type: Guess values  
Source format: %\_filename%  
Guessing Pattern: %year% %track% - %dummy%

2. Action to rename the filename:  
Type: Format Value  
Field: \_FILENAME  
Format String: %year% %track% - %artist% - %title%

If you want to create the selfdefined tag chartnumber instead of using tracknumber you only have to replace %track% with %chartnumber% in the two actions.

Advice: You should experiment with these actions always with duplicates and not with originals as long as are not sure kwhether they work as you expect them to work.

There also are ways to directly change only the filename without creating tags first but I think it is alsway a better solution to have tags properly filled and then rename the filename with the tags as source.

---

<div class="post-metadata">

**Author:** ![mikeyb](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/edb3f5/32.png) [@mikeyb](https://community.mp3tag.de/u/mikeyb)\
**Post date:** [February 10, 2015, 7:12am UTC](https://community.mp3tag.de/t/fix-file-name-from-tags/16589/6 "2015-02-10T07:12:00Z")

</div>

wow !

works perfectly

so many thanks for taking the time to do that  
🙂

cheers  
mikey

---

<div class="post-metadata">

**Author:** ![DetlevD](https://community.mp3tag.de/user_avatar/community.mp3tag.de/detlevd/32/123_2.png) [@DetlevD](https://community.mp3tag.de/u/DetlevD)\
**Post date:** [February 10, 2015, 8:24am UTC](https://community.mp3tag.de/t/fix-file-name-from-tags/16589/7 "2015-02-10T08:24:02Z")

</div>

> [@mikeyb](#):
>
> Hi all, If anyone can help me with this.  
> Current file names are:  
> 2002 020 - Creed My Sacrifice  
> Artist and title tags are already correct, so I am trying to correct the file name to include the - whilst retaining that 2002 020 as well  
> So i would end up with this: 2002 020 - Creed - My Sacrifice  
> ...

Examples for your studies ...

**Action: Format value Field : \_FILENAME Formatstring: $replace(%\_filename%,%ARTIST%,%ARTIST%' -') ... or ... Formatstring: $replace(%\_filename%,%TITLE%,'- '%TITLE%) ... or ... Formatstring: $replace(%\_filename%,%ARTIST%' '%TITLE%,%ARTIST%' - '%TITLE%) ... or ... Formatstring: $left(%\_filename%,$add($strstr(%\_filename%,%ARTIST%),$len(%ARTIST%)))'- '%TITLE%**

DD.20150210.1028.CET

---

<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/fix-file-name-from-tags/16589/8 "2026-02-09T12:25:31Z")

</div>

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


