# Changing Double Quotes In Title to Single Quote In Filename

**URL:** <https://community.mp3tag.de/t/changing-double-quotes-in-title-to-single-quote-in-filename/15211>\
**Category:** Support\
**Created:** [November 17, 2013, 12:51am UTC](https://community.mp3tag.de/t/changing-double-quotes-in-title-to-single-quote-in-filename/15211 "2013-11-17T00:51:45Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Estlin](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/e/9dc877/32.png) [@Estlin](https://community.mp3tag.de/u/Estlin)\
**Post date:** [November 17, 2013, 12:51am UTC](https://community.mp3tag.de/t/changing-double-quotes-in-title-to-single-quote-in-filename/15211/1 "2013-11-17T00:51:45Z")

</div>

Try as I may I cannot sort out how to convert the existing Double Quotes in a Title to Single Quotes in the Filename.  
For example:  
If the Title is:  
My Generation [Live On "The Smothers Brothers Show"]

- I would like the Filename end up being:  
My Generation [Live On 'The Smothers Brothers Show']  
I suppose another way to ask this is: How to I convert A Quotation Mark in the Title to An Apostrophe in the Filename?

Thanks In Advance for any help.  
Cheers.

---

<div class="post-metadata">

**Author:** ![stanman](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/c5a1d2/32.png) [@stanman](https://community.mp3tag.de/u/stanman)\
**Post date:** [November 17, 2013, 2:16am UTC](https://community.mp3tag.de/t/changing-double-quotes-in-title-to-single-quote-in-filename/15211/2 "2013-11-17T02:16:23Z")

</div>

I get around that problem by using two single quotes instead of a double-quote.

It looks the same and you don't have to worry about conversion to the filename.

---

<div class="post-metadata">

**Author:** ![Estlin](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/e/9dc877/32.png) [@Estlin](https://community.mp3tag.de/u/Estlin)\
**Post date:** [November 17, 2013, 5:38pm UTC](https://community.mp3tag.de/t/changing-double-quotes-in-title-to-single-quote-in-filename/15211/3 "2013-11-17T17:38:47Z")

</div>

@stanman  
Thanks. I have tried that. But I am looking for a solution that, if possible, does not first require converting Double Quotes to Single Quotes. I need to preserve the Double Quotes in the Title.  
At present, I do the following:  
Export all Titles to text file.  
Then Replace all Double Quotes with Single Quotes in Titles.  
Then Tag to Filename.  
Then restore original Titles with Double Quotes with Convert Text File To Tag.  
It is effective and preserves all the original Title information.  
But if there is some Action which exists to directly and globally convert Double Quotes in the Title to Single Quotes (Apostrophe) in the Filename it would save a few steps.

---

<div class="post-metadata">

**Author:** ![DetlevD](https://community.mp3tag.de/user_avatar/community.mp3tag.de/detlevd/32/123_2.png) [@DetlevD](https://community.mp3tag.de/u/DetlevD)\
**Post date:** [November 17, 2013, 5:54pm UTC](https://community.mp3tag.de/t/changing-double-quotes-in-title-to-single-quote-in-filename/15211/4 "2013-11-17T17:54:24Z")

</div>

> [@Estlin](#):
>
> ... I need to preserve the Double Quotes in the Title ... Then Replace all Double Quotes with Single Quotes ... in Filename.

Do you know the Mp3tag scripting functions?  
Try it out ...

**$replace(%TITLE%,'"','') $replace(%TITLE%,$char(34),$char(39))**

Use such an scripting expression to build the proper filename from tag fields.

DD.20131117.1954.CET

---

<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 17, 2013, 5:55pm UTC](https://community.mp3tag.de/t/changing-double-quotes-in-title-to-single-quote-in-filename/15211/5 "2013-11-17T17:55:21Z")

</div>

> [@Estlin](#):
>
> @stanman  
> Thanks. I have tried that. But I am looking for a solution that, if possible, does not first require converting Double Quotes to Single Quotes. I need to preserve the Double Quotes in the Title.  
> At present, I do the following:  
> Export all Titles to text file.  
> Then Replace all Double Quotes with Single Quotes in Titles.  
> Then Tag to Filename.  
> Then restore original Titles with Double Quotes with Convert Text File To Tag.  
> It is effective and preserves all the original Title information.  
> But if there is some Action which exists to directly and globally convert Double Quotes in the Title to Single Quotes (Apostrophe) in the Filename it would save a few steps.

When you create the filenames, use instead this expression of plain %title%:  
$replace(%title%,",'')

---

<div class="post-metadata">

**Author:** ![Estlin](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/e/9dc877/32.png) [@Estlin](https://community.mp3tag.de/u/Estlin)\
**Post date:** [November 18, 2013, 8:18pm UTC](https://community.mp3tag.de/t/changing-double-quotes-in-title-to-single-quote-in-filename/15211/6 "2013-11-18T20:18:10Z")

</div>

@DetlevD @ohrenkino  
I had never before had the need to learn about Replace Scripting Functions in Tag \> Filename.  
Thank You So Very Much for explaining this.  
Works perfectly.  
Now I that better understand, these Scripting functions will be fun to experiment with and useful in other ways.  
And further to this, a follow up question:  
Is is possible to add a second Replace Scripting Function to that?  
For example, if I also want to change "/" in Title to "-" in Filename (without using validate), can this second function be added to the original Quotes change and, if so, how?  
I have gone here:  
[https://docs.mp3tag.de/scripting](https://docs.mp3tag.de/scripting)

- trying to figure it out but without success. All my experiments end up with a 'SYNTAX ERROR IN FORMATTING STRING' error.  
How is adding a second Replace Scripting Function properly done?  
Thank Again.

---

<div class="post-metadata">

**Author:** ![DetlevD](https://community.mp3tag.de/user_avatar/community.mp3tag.de/detlevd/32/123_2.png) [@DetlevD](https://community.mp3tag.de/u/DetlevD)\
**Post date:** [November 18, 2013, 9:17pm UTC](https://community.mp3tag.de/t/changing-double-quotes-in-title-to-single-quote-in-filename/15211/7 "2013-11-18T21:17:27Z")

</div>

> [@Estlin](#):
>
> ... Is is possible to add a second Replace Scripting Function to that? ...

See Mp3tag main menu item "Actions", then create a new Action Group.  
Take this example and try it out.

Begin Action Group **20131118.Estlin.Replace** 

Action #1  
_Actiontype 5:_ **Format value**  
_Field \_\_\_\_\_\_:_ **TEST\_0**  
_Formatstring:_ **'This is a "test" 1\2\3.'**

 

Action #2  
_Actiontype 5:_ **Format value**  
_Field \_\_\_\_\_\_:_ **TEST\_1**  
_Formatstring:_ **$replace(%TEST\_0%,'"','')**

 

Action #3  
_Actiontype 5:_ **Format value**  
_Field \_\_\_\_\_\_:_ **TEST\_2**  
_Formatstring:_ **$replace(%TEST\_0%,'\<!--colorc--\>','-')**

 

Action #4  
_Actiontype 5:_ **Format value**  
_Field \_\_\_\_\_\_:_ **TEST\_3**  
_Formatstring:_ **$replace(%TEST\_0%,'"','','\<!--colorc--\>','-')**

 

End Action Group **20131118.Estlin.Replace** (4 Actions)

 

DD.20131118.2317.CET

---

<div class="post-metadata">

**Author:** ![Estlin](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/e/9dc877/32.png) [@Estlin](https://community.mp3tag.de/u/Estlin)\
**Post date:** [November 19, 2013, 9:48pm UTC](https://community.mp3tag.de/t/changing-double-quotes-in-title-to-single-quote-in-filename/15211/8 "2013-11-19T21:48:59Z")

</div>

@DetlevD  
Thank You Once again.  
This is so very helpful.  
Cheers.

---

<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:24pm UTC](https://community.mp3tag.de/t/changing-double-quotes-in-title-to-single-quote-in-filename/15211/9 "2026-02-09T12:24:45Z")

</div>

Closed on February 9, 2026, 12:24pm UTC


