# How to add and delete to filename, title, and artist

**URL:** https://community.mp3tag.de/t/how-to-add-and-delete-to-filename-title-and-artist/67814
**Category:** Mac
**Created:** [March 13, 2025, 12:20am UTC](https://community.mp3tag.de/t/how-to-add-and-delete-to-filename-title-and-artist/67814 "2025-03-13T00:20:33Z")
**Posts on this page:** 14
**Page:** 1

<div class="post-metadata">

### Author: ![bvon](https://community.mp3tag.de/user_avatar/community.mp3tag.de/bvon/32/19118_2.png) [@bvon](https://community.mp3tag.de/u/bvon)
#### Post date: [March 13, 2025, 12:20am UTC](https://community.mp3tag.de/t/how-to-add-and-delete-to-filename-title-and-artist/67814/1 "2025-03-13T00:20:33Z")

</div>

I running mp3tag on Mac and trying to figure out 3 things.

1)I'd like to delete from a title if it has song name - singer.aiff e.g.  
Sweet Pea - Amos Lee.aiff to just be Sweet Pea

1. I'd also like to add a singer name to a filename with something like  
Sweet Pea.aiff to Sweet Pea - Amos Lee.aiff

2. In some compilations the singer is in the filename after the name like Sweet Pea - Amos Lee.aiff. When I retrieve data from the internet or database search feature it populates the incorrect artist name. How would I say grab the name in the filename and populate the artist tag with it e.g. Sweet Pea - Amos Lee.aiff in Filename to Amos Lee in the Artist tag?

I've looked up examples of how to add and delete strings and tried a few things out to no avail. Any guidance would be great. Thank you.

---

<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: [March 13, 2025, 7:31am UTC](https://community.mp3tag.de/t/how-to-add-and-delete-to-filename-title-and-artist/67814/2 "2025-03-13T07:31:00Z")

</div>

There is a whole chapter in the Mac documentation about how to get information from or write it to filenames, see here:

> [@Rename Files and Import Tags from Files](https://community.mp3tag.de/t/rename-files-and-import-tags-from-files/51720):
>
> Mp3tag provides a variety of possibilities to get tag information from parts of the filename or to rename files based on the information stored in the tag of a file. The base concept behind all converters in Mp3tag is the format string, which describes a pattern or template of a filename. A format string consists of any characters and predefined placeholders or scripting functions. Every placeholder begins with the percent sign %, followed by a tag field name and ends with the percent sign. …

If you have a specifc problem, then give a real example.  
A general hint: if you want to modify a filename, then use the tag information and write a completely new filename. Use Convert\>Tag-Filename  
If you want to get information from a filename, use Convert\>Filename-Tag. If the filename has parts that you don't need, mask these parts with %dummy%

---

<div class="post-metadata">

### Author: ![bvon](https://community.mp3tag.de/user_avatar/community.mp3tag.de/bvon/32/19118_2.png) [@bvon](https://community.mp3tag.de/u/bvon)
#### Post date: [March 13, 2025, 5:11pm UTC](https://community.mp3tag.de/t/how-to-add-and-delete-to-filename-title-and-artist/67814/3 "2025-03-13T17:11:47Z")

</div>

Thanks. Your hints were helpful. I still get a space before the info. I replace with since the filename is something like The Chain - Fleetwood Mac.aiff when I use Convert Filename-Tag with dummy - %artist% it places the space in the filename after - and before Fleetwood Mac. How do I get rid of that?

I have a similar problem with a . in Filenames with a file like 6. Blue Light Yokohama.aiff and I use Quick Actions -\> Replace with Regular Expression  
-\>  
Field \_FILENAME  
Regexp \[1\]+\s\*.  
There is still a space before the new filename. I'm not sure how to eliminate it there either.

* * *

1. 0-9

---

<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: [March 13, 2025, 5:17pm UTC](https://community.mp3tag.de/t/how-to-add-and-delete-to-filename-title-and-artist/67814/4 "2025-03-13T17:17:49Z")

</div>

> [@bvon](#):
>
> Convert Filename-Tag with dummy - %artist%

It should be %dummy% - %artist%  
Screenshots would help in such cases as you see that every character counts.  
In respect to

> [@bvon](#):
>
> 1. Blue Light Yokohama.aiff

wouldn't Convert\>Tag-Filename with  
Format string: %title%  
be just as effective and you do not have to worry about regular expressions?

---

<div class="post-metadata">

### Author: ![bvon](https://community.mp3tag.de/user_avatar/community.mp3tag.de/bvon/32/19118_2.png) [@bvon](https://community.mp3tag.de/u/bvon)
#### Post date: [March 17, 2025, 10:07pm UTC](https://community.mp3tag.de/t/how-to-add-and-delete-to-filename-title-and-artist/67814/5 "2025-03-17T22:07:41Z")

</div>

![Screenshot 2025-03-17 at 3.05.58 PM](https://community.mp3tag.de/uploads/default/original/3X/1/4/1405aef2a9ff0e78d82c4d3c8c66e12d59098cf1.png)  
I tried your technique and it worked well but I still can't figure out how to change what's within a filename for example how to I get rid of the information in () and the parenthesis if I am trying to take just the first part i.e. Los Reyes, and place that as the tag in artist?

---

<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: [March 18, 2025, 5:51am UTC](https://community.mp3tag.de/t/how-to-add-and-delete-to-filename-title-and-artist/67814/6 "2025-03-18T05:51:40Z")

</div>

What do the tag fields look like that you use to create the new filename, e.g. the one with Los Reyes?

---

<div class="post-metadata">

### Author: ![bvon](https://community.mp3tag.de/user_avatar/community.mp3tag.de/bvon/32/19118_2.png) [@bvon](https://community.mp3tag.de/u/bvon)
#### Post date: [March 18, 2025, 9:09pm UTC](https://community.mp3tag.de/t/how-to-add-and-delete-to-filename-title-and-artist/67814/7 "2025-03-18T21:09:12Z")

</div>

![Screenshot 2025-03-18 at 2.06.20 PM](https://community.mp3tag.de/uploads/default/original/3X/d/8/d8a24f556da9fafd179d68d39d66228a100260af.png)  
Here's a wider screen shot with the Filename, Path, Tag, and Title. I manually eliminated the (Country) info. in the filename but there are several albums where I have something listed in the filename field, often in (), sometimes in that I'm sure there's a way to batch delete or modify but no idea how to do it.

---

<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: [March 18, 2025, 9:17pm UTC](https://community.mp3tag.de/t/how-to-add-and-delete-to-filename-title-and-artist/67814/8 "2025-03-18T21:17:38Z")

</div>

Actually, I would be much more interested in the tag data of such a file.  
Any decent player should interpret the metadata but not the filename.  
So I would assume that all the information is present in the tags.  
Your screenshot (thank you for that) shows that the title is something completely different than the filename - which leaves me puzzles somehow.  
I would have expected to see e.g.  
Joyeux Noel as TITLE  
New York Twoubadou as ARTIST  
but what is "God rest Ye Merry Gentlemen"? which currently is found in TITLE - is that the data for ALBUM?  
Could you show the screenshot of the extended tags dialogue for a single file?

---

<div class="post-metadata">

### Author: ![MotleyG](https://community.mp3tag.de/user_avatar/community.mp3tag.de/motleyg/32/440_2.png) [@MotleyG](https://community.mp3tag.de/u/MotleyG)
#### Post date: [March 18, 2025, 10:41pm UTC](https://community.mp3tag.de/t/how-to-add-and-delete-to-filename-title-and-artist/67814/9 "2025-03-18T22:41:04Z")

</div>

> [@ohrenkino](#):
>
> Your screenshot (thank you for that) shows that the title is something completely different than the filename - which leaves me puzzles somehow.

It does appear that the filenames and Titles are mixed up somehow. All the right matches exist but jumbled up from the files.

---

<div class="post-metadata">

### Author: ![bvon](https://community.mp3tag.de/user_avatar/community.mp3tag.de/bvon/32/19118_2.png) [@bvon](https://community.mp3tag.de/u/bvon)
#### Post date: [March 20, 2025, 8:10pm UTC](https://community.mp3tag.de/t/how-to-add-and-delete-to-filename-title-and-artist/67814/10 "2025-03-20T20:10:36Z")

</div>

Thanks for your help on this. The reason the filename title doesn't match the title is because when I use the feature to look up the album via the database, the files are sorted alphabetically by mp3tag, rather in their original order so mp3tag will populate the title field according to the original order and often leads to a mismatch with the alphabetical listing. I usually just bulk change the title in the filename to populate the title with the correct name. I hadn't yet done it for this set of files.

Here is a screenshot of the extended tags.

 ![Screenshot 2025-03-20 at 1.06.28 PM](https://community.mp3tag.de/uploads/default/original/3X/6/2/62a6780c1419b427cc3a2afeeb6c5415f94d3f75.jpeg)  
 ![Screenshot 2025-03-20 at 1.06.43 PM](https://community.mp3tag.de/uploads/default/original/3X/5/5/55c9a0b75d74bbb0e10c417dfda8befc8350e826.png)

---

<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: [March 20, 2025, 8:13pm UTC](https://community.mp3tag.de/t/how-to-add-and-delete-to-filename-title-and-artist/67814/11 "2025-03-20T20:13:50Z")

</div>

> [@bvon](#):
>
> rather in their original order so mp3tag will populate the title field according to the original order

You would have to align the files in the right list with the titles in the left list. Use the arrow buttons to move the files up or down.

---

<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: [March 20, 2025, 8:16pm UTC](https://community.mp3tag.de/t/how-to-add-and-delete-to-filename-title-and-artist/67814/12 "2025-03-20T20:16:00Z")

</div>

I see that there is no country reference in the data in Artist I would rename the files with data from ARTIST and TITLE.  
Use Convert\>Tag-Filename  
Format string: %title% - %artist%

---

<div class="post-metadata">

### Author: ![bvon](https://community.mp3tag.de/user_avatar/community.mp3tag.de/bvon/32/19118_2.png) [@bvon](https://community.mp3tag.de/u/bvon)
#### Post date: [March 21, 2025, 6:40pm UTC](https://community.mp3tag.de/t/how-to-add-and-delete-to-filename-title-and-artist/67814/13 "2025-03-21T18:40:07Z")

</div>

Thanks. Actually if you look at files 10 through 12 you'll see the country in (). The only reason it isn't there in the other files is because I already removed it manually. I have several other albums with this kind of issue, info. in filename and/or artist in (), [], after a comma, a -, or some other way it's expressed. I'm sure there's some way to remove that kind of thing if you don't have a clean reference to say copy from here but I don't know how to accomplish that.

---

<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: [March 21, 2025, 8:20pm UTC](https://community.mp3tag.de/t/how-to-add-and-delete-to-filename-title-and-artist/67814/14 "2025-03-21T20:20:45Z")

</div>

You yould filter for files which have something in brackets  
Filter: %artist% HAS "(" AND %artist% HAS ")"

And then you apply Convert\>Tag-Tag for ARTIST  
Format string: `$replace(%artist%,(USA),,(France),)`  
... which you can complete for all the country names.
