# Filenames to tags and uppercase

**URL:** https://community.mp3tag.de/t/filenames-to-tags-and-uppercase/7265
**Category:** Support
**Created:** [October 1, 2008, 4:13pm UTC](https://community.mp3tag.de/t/filenames-to-tags-and-uppercase/7265 "2008-10-01T16:13:26Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![JediSthlm](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/j/9dc877/32.png) [@JediSthlm](https://community.mp3tag.de/u/JediSthlm)
#### Post date: [October 1, 2008, 4:13pm UTC](https://community.mp3tag.de/t/filenames-to-tags-and-uppercase/7265/1 "2008-10-01T16:13:26Z")

</div>

Howdy!

I searched the forum but found nothing that would help me.  
It's really some strange files I have, help would be great 🙂

My files have no tags. I want to get the tags from the filename.  
The file name are like this

001 STAN Eminem.mp3  
010 DREAM ON Depeche Mode.mp3

It's quite easy to see how to get the tags from the filesname but not sure if Mp3Tag could do this.

Cheers,  
JedisThlm

---

<div class="post-metadata">

### Author: ![Florian](https://community.mp3tag.de/user_avatar/community.mp3tag.de/florian/32/5759_2.png) [@Florian](https://community.mp3tag.de/u/Florian)
#### Post date: [October 2, 2008, 5:12pm UTC](https://community.mp3tag.de/t/filenames-to-tags-and-uppercase/7265/2 "2008-10-02T17:12:12Z")

</div>

It's not possible, because there is no unique delimiter between the different parts in the filename.

Kind regards,  
Florian

---

<div class="post-metadata">

### Author: ![JediSthlm](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/j/9dc877/32.png) [@JediSthlm](https://community.mp3tag.de/u/JediSthlm)
#### Post date: [October 2, 2008, 6:54pm UTC](https://community.mp3tag.de/t/filenames-to-tags-and-uppercase/7265/3 "2008-10-02T18:54:55Z")

</div>

Ok, thanks for the answer. Back manual tagging, hehe.

---

<div class="post-metadata">

### Author: ![Stevest](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/a698b9/32.png) [@Stevest](https://community.mp3tag.de/u/Stevest)
#### Post date: [October 2, 2008, 7:38pm UTC](https://community.mp3tag.de/t/filenames-to-tags-and-uppercase/7265/4 "2008-10-02T19:38:29Z")

</div>

In most case this works:

Step 1:

Action: Format value  
Field: TITLE  
Format string: $regexp(%\_filename%,(._?)\s(\u\l._),$1 ~ $2)

For example: filename: 010 DREAM ON Depeche Mode  
Result in field TITLE: 010 DREAM ON ~ Depeche Mode

Step 2:

Action: Guess value  
Source format: %title%  
Guessing pattern: %track% %title% ~ %artist%

Result in field TRACK: 010  
Result in field TITLE: DREAM ON  
Result in field ARTIST: Depeche Mode

You can change the title to 'Dream On' with this:

Action: Format value  
Field: TITLE  
Format string: $caps(%title%)

The only restriction is that the first part of the name of the artist mustn't be a one upper case letter (in this case it becomes the last part of the title).

---

<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:21pm UTC](https://community.mp3tag.de/t/filenames-to-tags-and-uppercase/7265/5 "2026-02-09T12:21:07Z")

</div>


