# Better way to create tags from a filename help

**URL:** https://community.mp3tag.de/t/better-way-to-create-tags-from-a-filename-help/64589
**Category:** Support
**Created:** [May 3, 2024, 6:59am UTC](https://community.mp3tag.de/t/better-way-to-create-tags-from-a-filename-help/64589 "2024-05-03T06:59:41Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![BARTJUNITED](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/b/8491ac/32.png) [@BARTJUNITED](https://community.mp3tag.de/u/BARTJUNITED)
#### Post date: [May 3, 2024, 6:59am UTC](https://community.mp3tag.de/t/better-way-to-create-tags-from-a-filename-help/64589/1 "2024-05-03T06:59:41Z")

</div>

I have used Mp3 tag for a few years but probably not very well.

I sometimes download audio files that have long file names and I want to seperate tags into artist and title.  
. Often if the filename has a - I will use this to seperate the 2 using the convert filename ro tag feature.

However sometimes the filename won't have that and there MIGHT be an \_ or nothing consistent I can use...

Short of creating individual tag creation methods for each potential type is there a better way to do this please?

TIA Bart

---

<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: [May 3, 2024, 7:01am UTC](https://community.mp3tag.de/t/better-way-to-create-tags-from-a-filename-help/64589/2 "2024-05-03T07:01:33Z")

</div>

> [@BARTJUNITED](#):
>
> Short of creating individual tag creation methods for each potential type is there a better way to do this please?

I don't think so.  
And for more ideas, real examples would be helpful.

---

<div class="post-metadata">

### Author: ![LyricsLover](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/c6cbf5/32.png) [@LyricsLover](https://community.mp3tag.de/u/LyricsLover)
#### Post date: [May 3, 2024, 7:08am UTC](https://community.mp3tag.de/t/better-way-to-create-tags-from-a-filename-help/64589/3 "2024-05-03T07:08:10Z")

</div>

> [@BARTJUNITED](#):
>
> there MIGHT be an \_

In this case you can use the same format string in Convert Filename -\> Tag, just replace your `-` with a `_`

> [@BARTJUNITED](#):
>
> ...or nothing consistent I can use...

How would you tell Mp3tag to import the parts from a long filename if there is nothing consistent?  
Mp3tag - as every other software too - always needs a separator to split the parts.

---

<div class="post-metadata">

### Author: ![BARTJUNITED](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/b/8491ac/32.png) [@BARTJUNITED](https://community.mp3tag.de/u/BARTJUNITED)
#### Post date: [May 3, 2024, 7:30am UTC](https://community.mp3tag.de/t/better-way-to-create-tags-from-a-filename-help/64589/4 "2024-05-03T07:30:46Z")

</div>

Is it possible to create a string that uses more than one variable

Eg. \_ or -

---

<div class="post-metadata">

### Author: ![LyricsLover](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/c6cbf5/32.png) [@LyricsLover](https://community.mp3tag.de/u/LyricsLover)
#### Post date: [May 3, 2024, 7:34am UTC](https://community.mp3tag.de/t/better-way-to-create-tags-from-a-filename-help/64589/5 "2024-05-03T07:34:27Z")

</div>

Yes, this would be technically possible.  
BUT  
This also would inrease the risk for a wrong import.

As @ohrenkino already asked:  
Could you please show us some real example filenames?

---

<div class="post-metadata">

### Author: ![BARTJUNITED](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/b/8491ac/32.png) [@BARTJUNITED](https://community.mp3tag.de/u/BARTJUNITED)
#### Post date: [May 3, 2024, 7:59am UTC](https://community.mp3tag.de/t/better-way-to-create-tags-from-a-filename-help/64589/6 "2024-05-03T07:59:38Z")

</div>

here are some examples

Najaa (Full Song) \_ Sooryavanshi \_ Akshay Kumar,Katrina Kaif,Rohit Shetty,Tanishk,Pav Dharia,Nikhita

so i just want the Najaa i dont even want the full song bit as the title  
the rest can go in the artist column

Lat Lag Gayee Lyrical - Race 2 \_ Saif Ali Khan, Jacqueline \_ Benny Dayal, Shalmali \_ Pritam \_ Party.mp3

this one I would use the - seperator, I would like to get rid of the word Lyrical too

Lyrical Tum Par Hum Hai Atke \_ Pagalpanti \_ John A,Ileana D \_ Neha Kakkar, Mika Singh \_Tanishk B.mp3

I would like to remove Lyrical and the title should just be "Tum Par Hum Hai Atke"

with these multiple artist tracks Im only interested in the title and nothing else

hope this makes sense

---

<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: [May 3, 2024, 8:05am UTC](https://community.mp3tag.de/t/better-way-to-create-tags-from-a-filename-help/64589/7 "2024-05-03T08:05:43Z")

</div>

A post was split to a new topic: [How to import old settings](https://community.mp3tag.de/t/how-to-import-old-settings/64590)

---

<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: [May 3, 2024, 8:09am UTC](https://community.mp3tag.de/t/better-way-to-create-tags-from-a-filename-help/64589/8 "2024-05-03T08:09:55Z")

</div>

> [@BARTJUNITED](#):
>
> so i just want the Najaa i dont even want the full song bit as the title  
> ... this one I would use the - seperator, I would like to get rid of the word Lyrical too

As the converter function needs a pattern that is the same for all the files to work, you can see that these files do not have a pattern in common.  
So they have to be treated individually.  
Esp. the case of

> [@BARTJUNITED](#):
>
> Lat Lag Gayee Lyrical - Race 2 \_ Saif Ali Khan, Jacqueline \_ Benny Dayal, Shalmali \_ Pritam \_ Party.mp3

would be a problem for an import when both appear: the hyphen and the underscore - which one is to be used as separator? MP3tag cannot guess what you like, you have to tell it.

---

<div class="post-metadata">

### Author: ![LyricsLover](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/c6cbf5/32.png) [@LyricsLover](https://community.mp3tag.de/u/LyricsLover)
#### Post date: [May 3, 2024, 8:16am UTC](https://community.mp3tag.de/t/better-way-to-create-tags-from-a-filename-help/64589/9 "2024-05-03T08:16:49Z")

</div>

As you can see from an online source like MusicBrainz it is not that obvious what exactly should be imported into TITLE or ARTIST or ALBUM:

> **[Najaa](https://musicbrainz.org/recording/9ab5dbb2-e6eb-4c64-ab58-66c63c06f796)**
>
> Recording
> of Najaa
> by Tanishk Bagchi, Pav Dharia & Nikhita Gandhi
>   
> Duration: 03:11

> **[Lat Lag Gayee](https://musicbrainz.org/recording/3f682503-e1eb-4564-afca-1951345acb38)**
>
> Recording
> of Lat Lag Gayee
> by Pritam
>   
> Duration: 04:40

> **[Tum Par Hum Hai Atke](https://musicbrainz.org/recording/9e03b86e-be05-4b7f-9b29-24900e11527b)**
>
> Recording
> of Tum Par Hum Hai Atke
> by Neha Kakkar & Mika Singh
>   
> Duration: 02:58

Unfortunately for these examples there is no "better way" to automate the import of tags.

---

<div class="post-metadata">

### Author: ![LyricsLover](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/c6cbf5/32.png) [@LyricsLover](https://community.mp3tag.de/u/LyricsLover)
#### Post date: [May 3, 2024, 8:22am UTC](https://community.mp3tag.de/t/better-way-to-create-tags-from-a-filename-help/64589/10 "2024-05-03T08:22:53Z")

</div>

Just another idea:

Are you sure that your downloaded audio files does not already contains information in the TITLE or ARTIST or ALBUM tag?

To be sure press Alt + T on such tracks to inspect the existing tags.

---

<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: [June 2, 2024, 8:23am UTC](https://community.mp3tag.de/t/better-way-to-create-tags-from-a-filename-help/64589/11 "2024-06-02T08:23:01Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
