# File name Conversion

**URL:** <https://community.mp3tag.de/t/file-name-conversion/45568>\
**Category:** Support\
**Created:** [May 29, 2019, 6:01pm UTC](https://community.mp3tag.de/t/file-name-conversion/45568 "2019-05-29T18:01:09Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![pazzag](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/p/8c91f0/32.png) [@pazzag](https://community.mp3tag.de/u/pazzag)\
**Post date:** [May 29, 2019, 6:01pm UTC](https://community.mp3tag.de/t/file-name-conversion/45568/1 "2019-05-29T18:01:09Z")

</div>

Hello

I'm a newbie and would really appreciate a little help. What i want to do is if a title has a symbol that doesn't transfer to file name e.g '?' I would like it to be replaced simply with a '\_' or if it has '/' change to '-'.  
I know how to do it for a simple file name by using a format but what if title has both '?' & '/', can I create a type of IF OR formula like in excel?

Many Thanks for the help.

---

<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:** [May 29, 2019, 6:10pm UTC](https://community.mp3tag.de/t/file-name-conversion/45568/2 "2019-05-29T18:10:36Z")

</div>

either you use the function `$validate(%title%,_)` which would turn every illegal character into an underscore ...  
or you use `$replace(%title%,?,_,/,-)`  
Both functions can be used in the format string in Convert\>Tag-Filename.  
So a format string could look like  
`$num(%track%,2) _ %artist% _ $replace(%title%,?,_,/,-)`

---

<div class="post-metadata">

**Author:** ![pazzag](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/p/8c91f0/32.png) [@pazzag](https://community.mp3tag.de/u/pazzag)\
**Post date:** [May 29, 2019, 6:27pm UTC](https://community.mp3tag.de/t/file-name-conversion/45568/3 "2019-05-29T18:27:32Z")

</div>

Thank you for such a quick response, I'll try tomorrow and let you know my results?

---

<div class="post-metadata">

**Author:** ![pazzag](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/p/8c91f0/32.png) [@pazzag](https://community.mp3tag.de/u/pazzag)\
**Post date:** [May 30, 2019, 8:30am UTC](https://community.mp3tag.de/t/file-name-conversion/45568/4 "2019-05-30T08:30:43Z")

</div>

Thank you ohrenkino it works perfect!

---

<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:** [June 29, 2019, 8:30am UTC](https://community.mp3tag.de/t/file-name-conversion/45568/5 "2019-06-29T08:30:50Z")

</div>

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