# How to add custom name from folder name to filename?

**URL:** <https://community.mp3tag.de/t/how-to-add-custom-name-from-folder-name-to-filename/19079>\
**Category:** Support\
**Created:** [June 23, 2017, 8:52pm UTC](https://community.mp3tag.de/t/how-to-add-custom-name-from-folder-name-to-filename/19079 "2017-06-23T20:52:04Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![JoeSpeaksEnglish](https://community.mp3tag.de/user_avatar/community.mp3tag.de/joespeaksenglish/32/5679_2.png) [@JoeSpeaksEnglish](https://community.mp3tag.de/u/JoeSpeaksEnglish)\
**Post date:** [June 23, 2017, 8:52pm UTC](https://community.mp3tag.de/t/how-to-add-custom-name-from-folder-name-to-filename/19079/1 "2017-06-23T20:52:04Z")

</div>

Hello everyone 🙂

I've used Mp3tag for awhile now. I love it. I have lots of mp3 files that I want to edit and I'd like to do it efficiently to save time.

I want to edit in this format:

'Artist - title (album)(year)'

Here's my questions. Here we go....

The folder name looks like this:

"1996 - 18 Til I Die"

The Mp3 filename looks like this:

"02. Have You Ever Really Loved A Woman.mp3"

How do I rename it to this?

"Bryan Adams - Have You Ever Really Loved A Woman (18 Til I Die)(1996).mp3" (This is how I want it to look)

What do I use to automate the process for hundreds of mp3 files? Taking the Folder Name and adding to the Mp3 filename?

I want to add the Artist name, remove the numbering and dots(.), add artist name before the title with a "space dash(-) space", and add the album name and year with both in parentheses.

If anyone knows how to make a batch file... that would be great too! 😉

Any help would be appreciated! Thanks for taking the time to read my post and I hope to hear from you guys soon 🙂

---

<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:** [June 24, 2017, 4:46am UTC](https://community.mp3tag.de/t/how-to-add-custom-name-from-folder-name-to-filename/19079/2 "2017-06-24T04:46:50Z")

</div>

> [@JoeSpeaksEnglish](#):
>
> ... I've used Mp3tag for awhile now. ...

Just a question about clarification: Do the files already have correct data in tag-fields?

DD.20170624.0846.CEST

---

<div class="post-metadata">

**Author:** ![JoeSpeaksEnglish](https://community.mp3tag.de/user_avatar/community.mp3tag.de/joespeaksenglish/32/5679_2.png) [@JoeSpeaksEnglish](https://community.mp3tag.de/u/JoeSpeaksEnglish)\
**Post date:** [June 25, 2017, 12:34pm UTC](https://community.mp3tag.de/t/how-to-add-custom-name-from-folder-name-to-filename/19079/3 "2017-06-25T12:34:51Z")

</div>

> [@DetlevD](#):
>
> Just a question about clarification: Do the files already have correct data in tag-fields?
> 
> DD.20170624.0846.CEST

Yes, they have all the correct info in the tag-fields.

---

<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:** [June 25, 2017, 1:01pm UTC](https://community.mp3tag.de/t/how-to-add-custom-name-from-folder-name-to-filename/19079/4 "2017-06-25T13:01:20Z")

</div>

> [@JoeSpeaksEnglish](#):
>
> Yes, they have all the correct info in the tag-fields.

From that what you have showed us in the first thread, the ARTIST information is missing.  
So you would have to update the filenames from the tags anyway:  
Bryan Adams - Have You Ever Really Loved A Woman (18 Til I Die)(1996)

would be  
function Convert\>Tag-Filename  
Format string: %albumartist% - %title% (%album%)(%year%)

---

<div class="post-metadata">

**Author:** ![JoeSpeaksEnglish](https://community.mp3tag.de/user_avatar/community.mp3tag.de/joespeaksenglish/32/5679_2.png) [@JoeSpeaksEnglish](https://community.mp3tag.de/u/JoeSpeaksEnglish)\
**Post date:** [June 25, 2017, 4:36pm UTC](https://community.mp3tag.de/t/how-to-add-custom-name-from-folder-name-to-filename/19079/5 "2017-06-25T16:36:42Z")

</div>

> [@ohrenkino](#):
>
> From that what you have showed us in the first thread, the ARTIST information is missing.  
> So you would have to update the filenames from the tags anyway:  
> Bryan Adams - Have You Ever Really Loved A Woman (18 Til I Die)(1996)
> 
> would be  
> function Convert\>Tag-Filename  
> Format string: %albumartist% - %title% (%album%)(%year%)

Thanks for your reply ohrenkino,

The folder name does not have the "Artist" information. I'd prefer if there was a way to include the Artist Name using mp3tag without using other tools.

Thanks again for the format string. I'll try it out and let you know if it works out or if I need any more help in the details 🙂

Been using mp3tag for basic functions for about a year now. Only starting to use the more advanced functions.

---

<div class="post-metadata">

**Author:** ![JoeSpeaksEnglish](https://community.mp3tag.de/user_avatar/community.mp3tag.de/joespeaksenglish/32/5679_2.png) [@JoeSpeaksEnglish](https://community.mp3tag.de/u/JoeSpeaksEnglish)\
**Post date:** [June 27, 2017, 1:49am UTC](https://community.mp3tag.de/t/how-to-add-custom-name-from-folder-name-to-filename/19079/6 "2017-06-27T01:49:47Z")

</div>

> [@JoeSpeaksEnglish](#):
>
> Thanks for your reply ohrenkino,
> 
> The folder name does not have the "Artist" information. I'd prefer if there was a way to include the Artist Name using mp3tag without using other tools.
> 
> Thanks again for the format string. I'll try it out and let you know if it works out or if I need any more help in the details 🙂
> 
> Been using mp3tag for basic functions for about a year now. Only starting to use the more advanced functions.

The Format String sample worked out great! Thanks guys!!!! 🙂

---

<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:26pm UTC](https://community.mp3tag.de/t/how-to-add-custom-name-from-folder-name-to-filename/19079/7 "2026-02-09T12:26:52Z")

</div>


