# Create folders based on music tracks

**URL:** https://community.mp3tag.de/t/create-folders-based-on-music-tracks/55127
**Category:** Support
**Created:** [November 16, 2021, 11:48am UTC](https://community.mp3tag.de/t/create-folders-based-on-music-tracks/55127 "2021-11-16T11:48:27Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Palladio](https://community.mp3tag.de/user_avatar/community.mp3tag.de/palladio/32/10154_2.png) [@Palladio](https://community.mp3tag.de/u/Palladio)
#### Post date: [November 16, 2021, 11:48am UTC](https://community.mp3tag.de/t/create-folders-based-on-music-tracks/55127/1 "2021-11-16T11:48:27Z")

</div>

![2021-11-16_142120](https://community.mp3tag.de/uploads/default/original/2X/2/2767a3b10afe5b921dba432c716931d76d71f739.png)

Hi friends, I have a folder containing a number of tracks from different artists, I want **each track** to be **in a folder** with the **same name as the file**. And **all tracks related to each artist** should all be in the same folder. Similar to the following example:

Artist ( folder) \ title (folder) \ title. **mp3** ( The file itself ) & title. **flac** ( The file itself )

How can this be done?

---

<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 16, 2021, 11:54am UTC](https://community.mp3tag.de/t/create-folders-based-on-music-tracks/55127/2 "2021-11-16T11:54:08Z")

</div>

See the FAQs:

> [@Converters to rename files or to import tags](https://community.mp3tag.de/t/converters-to-rename-files-or-to-import-tags/8016/2):
>
> How to rename files based on tags? Renaming files, creating folders and complete directory structures from tags can be done by using the [:mt\_ttf:] Converter \> Tag - Filename with a format string. A format string is used to describe the structure of the desired filename. Besides using normal placeholders (such as %artist%, %title%, ...) and arbitrary text (e.g., Music) it also allows for separating folders with the backslash \ character. Here is an example that renames the file based on the t…

This post is the first entry that the search presents with the search words "create folders".

---

<div class="post-metadata">

### Author: ![Palladio](https://community.mp3tag.de/user_avatar/community.mp3tag.de/palladio/32/10154_2.png) [@Palladio](https://community.mp3tag.de/u/Palladio)
#### Post date: [November 16, 2021, 1:35pm UTC](https://community.mp3tag.de/t/create-folders-based-on-music-tracks/55127/3 "2021-11-16T13:35:08Z")

</div>

This can be done with this code snippet:

**Go to Tag - Filename**

Set **Format String** :

`newFolder\%albumartist%\%year% - %album% ( %artist% )\%title%`

thank you dear friend 🙏 🙏 🍀 🍀

---

<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 16, 2021, 1:49pm UTC](https://community.mp3tag.de/t/create-folders-based-on-music-tracks/55127/4 "2021-11-16T13:49:17Z")

</div>

> [@Palladio](#):
>
> newFolder%albumartist%%year% - %album% ( %artist% )%title%

If you do not want to see any surprises, I would suggest an absolute path:  
`D:\mymusic\%albumartist%\%year% - %album% ( %artist% )\%title%`

and to get the same order of files as tracks on the album  
`D:\mymusic\%albumartist%\%year% - %album% (%artist%)\$num(%track%,2)_%title%`  
And: by adding %artist% to the album folder name, you may get several album folders if the artist varies e.g. Peter Gabriel "So" wth the track where he sings the duet with Kate Bush - the artist would be "Peter Gabriel & Kate Bush". TBH: I would leave out `(%artist%)`

---

<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: [December 16, 2021, 1:49pm UTC](https://community.mp3tag.de/t/create-folders-based-on-music-tracks/55127/5 "2021-12-16T13:49:47Z")

</div>

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