# Removing single & double quotation marks from file name

**URL:** <https://community.mp3tag.de/t/removing-single-double-quotation-marks-from-file-name/62796>\
**Category:** Support\
**Created:** [November 19, 2023, 6:51am UTC](https://community.mp3tag.de/t/removing-single-double-quotation-marks-from-file-name/62796 "2023-11-19T06:51:15Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ConversingWithC](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/c/df705f/32.png) [@ConversingWithC](https://community.mp3tag.de/u/ConversingWithC)\
**Post date:** [November 19, 2023, 6:51am UTC](https://community.mp3tag.de/t/removing-single-double-quotation-marks-from-file-name/62796/1 "2023-11-19T06:51:15Z")

</div>

I am having trouble using the replace function to remove punctuation from filenames after using tags to rename files. So far I have successfully removed the troublesome &, !, ., $, +, and = but am struggling to figure out how to use the replace function to replace ' and "

---

<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 19, 2023, 7:17am UTC](https://community.mp3tag.de/t/removing-single-double-quotation-marks-from-file-name/62796/2 "2023-11-19T07:17:14Z")

</div>

Have you tried this?  
 ![grafik](https://community.mp3tag.de/uploads/default/original/2X/6/65b87c361b768f8fcdf78eee35bcf639bda6846c.png)

---

<div class="post-metadata">

**Author:** ![poster](https://community.mp3tag.de/user_avatar/community.mp3tag.de/poster/32/4881_2.png) [@poster](https://community.mp3tag.de/u/poster)\
**Post date:** [November 19, 2023, 8:08am UTC](https://community.mp3tag.de/t/removing-single-double-quotation-marks-from-file-name/62796/3 "2023-11-19T08:08:13Z")

</div>

There are different kind of quotation marks in the ascii-code. Are you sure that you picked the right source character? You could C&P the source character from the filename.

To replace the straight double quotation mark " should be no problem but you probably have 2 single quotation marks because a double quotation marks is not allowed within the filename in Windows.

For a single quotation mark you have to put to the source an additional single quotation mark in front. ('')

You can test your replace-functions with the **converter Tag-\>Tag** which has an immediate preview. Here the format strings for different quotation marks:  
Field: \_FILENAME

Single quotation mark:  
Format string: `$replace(%_filename%,'',)`

Double quotation mark:  
Format string: `$replace(%_filename%,",)`

2 single quotation marks:  
Format string: `$replace(%_filename%,''',)`

I wonder why you see `',&,.,+ and =` as "troublesome." In Windows these are allowed characters in filenames.

Do you know that you can already replace characters in the step of renaming filenames from tags instead of correcting the filenames afterwards?

---

<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:30pm UTC](https://community.mp3tag.de/t/removing-single-double-quotation-marks-from-file-name/62796/4 "2026-02-09T12:30:12Z")

</div>


