# Create folders from tags. Possible?

**URL:** https://community.mp3tag.de/t/create-folders-from-tags-possible/8014
**Category:** General Discussion
**Created:** [February 28, 2009, 12:39am UTC](https://community.mp3tag.de/t/create-folders-from-tags-possible/8014 "2009-02-28T00:39:32Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![eqblues](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/e/a4c791/32.png) [@eqblues](https://community.mp3tag.de/u/eqblues)
#### Post date: [February 28, 2009, 12:39am UTC](https://community.mp3tag.de/t/create-folders-from-tags-possible/8014/1 "2009-02-28T00:39:32Z")

</div>

I hope this is the right part of the forum to post this question.

Is it possible to create folders based on the ID3 tags from a batch of mp3s? and move the mp3s themselves into the designated folder?

Ideally Id like for the folders to be created with a structure of: Artist/Album

Thanks for any help.

---

<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: [February 28, 2009, 7:18am UTC](https://community.mp3tag.de/t/create-folders-from-tags-possible/8014/2 "2009-02-28T07:18:44Z")

</div>

Creating folders and complete directory structures from tags can be done by using the ![:mt_ttf:](https://community.mp3tag.de/uploads/default/original/1X/922db76db5d45b2e558d10f3d8c25fb8bc04fd27.png ":mt\_ttf:") Converter \> Tag - 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.

When you're using a backslash in a format string, Mp3tag will create a directory from the part of the format string in front of a backslash.

Here is an example that creates new directories under C:\Music:

```
C:\Music\$left(%artist%,1)\\%artist%-%year%-%album%\$num(%track%,2). %title%

```

The same is also possible using relative path names (instead of an absolute path in the example above) which creates the new directory below the current working directory:

```
%artist%-%year%-%album%\$num(%track%,2). %title%

```

Please note that the whole range of Mp3tag's internal [Scripting Functions](https://docs.mp3tag.de/scripting) can be used in the format string.

---

<div class="post-metadata">

### Author: ![eqblues](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/e/a4c791/32.png) [@eqblues](https://community.mp3tag.de/u/eqblues)
#### Post date: [February 28, 2009, 8:40pm UTC](https://community.mp3tag.de/t/create-folders-from-tags-possible/8014/3 "2009-02-28T20:40:08Z")

</div>

Thanks a whole lot, youre a lifesaver. I would have never figured this out on my own. The "language" used to do certain things on Mp3Tag is not exactly easy for newbs like me, but I still love the program with a passion.

---

<div class="post-metadata">

### Author: ![dway](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/d/ea666f/32.png) [@dway](https://community.mp3tag.de/u/dway)
#### Post date: [June 7, 2009, 10:44am UTC](https://community.mp3tag.de/t/create-folders-from-tags-possible/8014/4 "2009-06-07T10:44:18Z")

</div>

what if just want it to rename the folder where the mp3 files are?  
or alternatively, can it move files like .jpg and .cue to the new folder?

---

<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: [April 5, 2022, 8:50am UTC](https://community.mp3tag.de/t/create-folders-from-tags-possible/8014/5 "2022-04-05T08:50:37Z")

</div>

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