# Convert tag to filename

**URL:** https://community.mp3tag.de/t/convert-tag-to-filename/7773
**Category:** Support
**Created:** [January 15, 2009, 8:42pm UTC](https://community.mp3tag.de/t/convert-tag-to-filename/7773 "2009-01-15T20:42:08Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![gsa999](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/g/c6cbf5/32.png) [@gsa999](https://community.mp3tag.de/u/gsa999)
#### Post date: [January 15, 2009, 8:42pm UTC](https://community.mp3tag.de/t/convert-tag-to-filename/7773/1 "2009-01-15T20:42:08Z")

</div>

I have a number of mp3's with a "/" in the title of the track. WHen I copy tag to filename it gets rid of this becuase filenames cannot have a "/" in them. How can I change it so that it puts a "" in the filename instead instead of just removing the slash

---

<div class="post-metadata">

### Author: ![gsa999](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/g/c6cbf5/32.png) [@gsa999](https://community.mp3tag.de/u/gsa999)
#### Post date: [January 17, 2009, 8:40am UTC](https://community.mp3tag.de/t/convert-tag-to-filename/7773/2 "2009-01-17T08:40:25Z")

</div>

I have found the replace function and tried the following

%artist% - %album% - $num(%track%,2) - %title% $replace(%title%,/,)

but this seems does not work and seem to create a subfolder as well. What am I doing wrong?

---

<div class="post-metadata">

### Author: ![dano](https://community.mp3tag.de/user_avatar/community.mp3tag.de/dano/32/6_2.png) [@dano](https://community.mp3tag.de/u/dano)
#### Post date: [January 17, 2009, 10:23am UTC](https://community.mp3tag.de/t/convert-tag-to-filename/7773/3 "2009-01-17T10:23:41Z")

</div>

1. "" is also an illegal filename character which you cannot use

2. if you use "" in the format string Mp3tag will make a new directory i.e. Test\Filename.mp3 will create the directory "Test" move Filename.mp3 to it

3. You should use i.e.  
%artist% - %album% - $num(%track%,2) - $replace(%title%,/,\_)  
or whatever character you want that also is a legal filename character

---

<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:21pm UTC](https://community.mp3tag.de/t/convert-tag-to-filename/7773/4 "2026-02-09T12:21:19Z")

</div>


