# Use last part of filename as tag

**URL:** https://community.mp3tag.de/t/use-last-part-of-filename-as-tag/18579
**Category:** General Discussion
**Created:** [January 2, 2017, 9:40am UTC](https://community.mp3tag.de/t/use-last-part-of-filename-as-tag/18579 "2017-01-02T09:40:58Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![56up](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/5/9fc348/32.png) [@56up](https://community.mp3tag.de/u/56up)
#### Post date: [January 2, 2017, 9:40am UTC](https://community.mp3tag.de/t/use-last-part-of-filename-as-tag/18579/1 "2017-01-02T09:40:58Z")

</div>

Apologies, but I am struggling here

Using Convert Filename - Tag I want to strip away a common part of the filename leaving only the rest as a tag  
For example in :  
No Commitments 12\_1 Settling Down  
No Commitments 12\_2 Darling Daughters

I wish to remove the first 15 characters in both leaving only  
12\_1 Settling Down  
12\_2 Darling Daughters

Quite happy to alter the no of characters to be removed manually each time

Sorry if this has been covered before but I have looked for an answer.

---

<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: [January 2, 2017, 10:18am UTC](https://community.mp3tag.de/t/use-last-part-of-filename-as-tag/18579/2 "2017-01-02T10:18:54Z")

</div>

> [@DavidUK](#):
>
> Quite happy to alter the no of characters to be removed manually each time

Converter Tag-\>Tag  
Field: TITLE  
Formatstring: $cutleft(%\_filename%,15)

Instead of counting characters I think an easier solution would be to only count words:  
Converter Filename-\>Tag  
%dummy% %dummy% %title%

You have to write a %dummy% for each word you want to cut off.

There might be better and general solutions for alle your files but to advice you you should tell more about the scheme of the filenames and the tags you want to use.

---

<div class="post-metadata">

### Author: ![56up](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/5/9fc348/32.png) [@56up](https://community.mp3tag.de/u/56up)
#### Post date: [November 2, 2019, 2:32pm UTC](https://community.mp3tag.de/t/use-last-part-of-filename-as-tag/18579/3 "2019-11-02T14:32:17Z")

</div>

Thanks for the advice above and I have been using this successfully for the last 2 years.

However, since the update to version 2.99a it has stopped working. The revised tag is shown in the dialogue box, but on pressing OK, the tag is not altered.

Any advice?

---

<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: [November 2, 2019, 2:35pm UTC](https://community.mp3tag.de/t/use-last-part-of-filename-as-tag/18579/4 "2019-11-02T14:35:39Z")

</div>

If you have entered the mask recently: could you check if you have written %titel% instead of %title%?  
Also, check the extended tags dialogue if you now have a field called TITEL.
