# How to replace special characters when renaming directory?

**URL:** https://community.mp3tag.de/t/how-to-replace-special-characters-when-renaming-directory/71563
**Category:** Mac
**Created:** [July 3, 2026, 10:11pm UTC](https://community.mp3tag.de/t/how-to-replace-special-characters-when-renaming-directory/71563 "2026-07-03T22:11:15Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![aspnxl](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/a/5f9b8f/32.png) [@aspnxl](https://community.mp3tag.de/u/aspnxl)
#### Post date: [July 3, 2026, 10:11pm UTC](https://community.mp3tag.de/t/how-to-replace-special-characters-when-renaming-directory/71563/1 "2026-07-03T22:11:16Z")

</div>

I am trying to replace backslash "/" characters with a dash "-" character when I rename a directory from the album name. By default MP3Tag will use an underscore "\_" but I want to use a dash instead. I tried using the technique from this thread but it's not having any effect. [Tag - Filename (Special Characters) - #4 by abdulkhan0567](https://community.mp3tag.de/t/tag-filename-special-characters/18539/4)

 ![Screenshot 2026-07-03 at 6.10.22 PM](https://community.mp3tag.de/uploads/default/original/3X/0/5/0565461b3d06f77c68e44df11cc5ed2d195af8bc.jpeg)

---

<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: [July 4, 2026, 6:09am UTC](https://community.mp3tag.de/t/how-to-replace-special-characters-when-renaming-directory/71563/2 "2026-07-04T06:09:11Z")

</div>

I am not sure if the evaluation of the Mac directory formatting also takes care of characters that are valid but may create another folder.  
In the windows version you find the settings for the replacement charcter in Options\>Files - the default is an underscore.  
So it could be that you have to either modify this option or replace the underscore with the hyphen as the caretaker function has already replaced the slash with an underscore.

---

<div class="post-metadata">

### Author: ![aspnxl](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/a/5f9b8f/32.png) [@aspnxl](https://community.mp3tag.de/u/aspnxl)
#### Post date: [July 4, 2026, 4:14pm UTC](https://community.mp3tag.de/t/how-to-replace-special-characters-when-renaming-directory/71563/3 "2026-07-04T16:14:42Z")

</div>

I don't think there is the same option on macOS to set custom replacement characters like you can on Windows unfortunately.

---

<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: [July 5, 2026, 8:28am UTC](https://community.mp3tag.de/t/how-to-replace-special-characters-when-renaming-directory/71563/4 "2026-07-05T08:28:29Z")

</div>

Please try this command via Terminal.app

```auto
defaults write app.mp3tag.Mp3tag ConvertTagToFilenameReplacements -dict-add "/" "-"

```

---

<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: [July 12, 2026, 8:28am UTC](https://community.mp3tag.de/t/how-to-replace-special-characters-when-renaming-directory/71563/5 "2026-07-12T08:28:36Z")

</div>

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