# Not possible to change filename w/ extension via file view

**URL:** https://community.mp3tag.de/t/not-possible-to-change-filename-w-extension-via-file-view/12107
**Category:** Support
**Created:** [June 6, 2011, 7:09pm UTC](https://community.mp3tag.de/t/not-possible-to-change-filename-w-extension-via-file-view/12107 "2011-06-06T19:09:15Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![ptrk.mj](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ptrk.mj/32/300_2.png) [@ptrk.mj](https://community.mp3tag.de/u/ptrk.mj)
#### Post date: [June 6, 2011, 7:09pm UTC](https://community.mp3tag.de/t/not-possible-to-change-filename-w-extension-via-file-view/12107/1 "2011-06-06T19:09:15Z")

</div>

Even if you set 'Field' parameter of a column to %\_filename\_ext%, renaming still modifies part before the extension.

---

<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: [June 7, 2011, 7:28am UTC](https://community.mp3tag.de/t/not-possible-to-change-filename-w-extension-via-file-view/12107/2 "2011-06-07T07:28:25Z")

</div>

I wouldn't call this a bug as the extension determines how the file is treated. Or: a text does become a picture simply by changing ".txt" to ".jpg".  
Also, renaming the extention could lead to the fact that mp3tag does not display that file any more.

The file can be renamed. Please note that you have to enter %\_filename% as value and as field.  
If you leave Field empty then the display is read-only.

---

<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: [June 7, 2011, 7:55am UTC](https://community.mp3tag.de/t/not-possible-to-change-filename-w-extension-via-file-view/12107/3 "2011-06-07T07:55:03Z")

</div>

> [@ptrk.mj](#):
>
> Even if you set 'Field' parameter of a column to %\_filename\_ext%, renaming still modifies part before the extension.

Basically the content of a read-only pseudo tag-field, like %\_filename\_ext%, cannot be changed by the user.

Changing the content of %\_filename\_ext% from within a list view cell with consequence to the real filename should not be accepted anyway by Mp3tag - and indeed it is not accepted.  
Mp3tag opens only an edit area just for the filename part.  
This restricted behaviour should be mentioned in the manual.

If you want to change parts of the filename, also filename extension, then use the action "Replace using Regular Expression" on the pseudo tag-field "\_FILENAME".

DD.20110607.1810.CEST

---

<div class="post-metadata">

### Author: ![pone](https://community.mp3tag.de/user_avatar/community.mp3tag.de/pone/32/272_2.png) [@pone](https://community.mp3tag.de/u/pone)
#### Post date: [June 7, 2011, 7:58am UTC](https://community.mp3tag.de/t/not-possible-to-change-filename-w-extension-via-file-view/12107/4 "2011-06-07T07:58:54Z")

</div>

There is only one action in Mp3tag which can do this:

Action: Replace with regular expression  
Field: \_FILENAME  
Regular expression: .tmp$  
Replace matches with: .mp3

This example is a action I have stored which chages .tmp files into .mp3 files.

---

<div class="post-metadata">

### Author: ![ptrk.mj](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ptrk.mj/32/300_2.png) [@ptrk.mj](https://community.mp3tag.de/u/ptrk.mj)
#### Post date: [June 7, 2011, 3:00pm UTC](https://community.mp3tag.de/t/not-possible-to-change-filename-w-extension-via-file-view/12107/5 "2011-06-07T15:00:50Z")

</div>

I'm not searching for a workaround. I know I can do this with an action. I've reported this as I considered it a bug/oversight.

> [@](#):
>
> Changing the content of %\_filename\_ext% from within a list view cell with consequence to the real filename **should not be accepted** anyway by Mp3tag.

Why?

In my opinion setting 'Field' to %\_filename\_ext% should result in modification of filename _with_ extension even though it may cause Mp3tag not see the file (if you change extension to one denoting unsupported file format).

The default setting is %\_filename% so it wouldn't cause any trouble for those not fiddling with their column settings.

> [@](#):
>
> There is **only one** action in Mp3tag which can do this:

That's right. Another inconsistency. If "Replace with regular expression" applies regex to the whole filename than why "Format value" should act different?

I think the best solution would be to provide two pseudo tag-fields \_FILENAME and \_FILENAME\_EXT in the future.

---

<div class="post-metadata">

### Author: ![wneclass2018](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/w/cdc98d/32.png) [@wneclass2018](https://community.mp3tag.de/u/wneclass2018)
#### Post date: [November 8, 2022, 9:23am UTC](https://community.mp3tag.de/t/not-possible-to-change-filename-w-extension-via-file-view/12107/6 "2022-11-08T09:23:13Z")

</div>

I'm aware that this is a 12-year-old response, but I wrote an action that will CHANGE the file extension, for ANY Mp3Tag Readable input file, to your choosing. Basically, on a new Mp3Tag field (i.e. see "[#3]" from the excerpt), which you MUST create, such as %new\_file\_extension%, you can freely enter the extension of your choosing. However, keep in mind that, even though Mp3Tag will push your entry from %new\_file\_extension%, Mp3Tag will ONLY read "changed" file extensions from the same family tree (i.e. container). For example, if the original input file extension was .mp4, and you changed it to .m4v, .m4a, or .m4b, Mp3Tag will be able to read those changes and allow you to write back to .mp4 as well, if you wish. However, if you changed the .mp4 to .mkv, .m4r, .goku, etc, Mp3Tag, even though it's capable of reading an mkv file, will NOT read the newly changed extension from mp4 to mkv, and .m4r (iTunes ringtone) and .goku aren't readable via Mp3Tag. Therefore, you can just use the "undo" button (or Ctrl + Z). Basically, you can write to anything, but Mp3Tag might not be capable of reading the newly outputted extension. Likewise, it will read an .mka file extension that was previously .mkv extension. Nonetheless, I will also attach the .mta file as well.

EXPLANATION (Excerpt from .mta file):  
[#0] Preserves the ORIGINAL filename by copying %\_filename% to %preserve\_original\_filename%.  
[#1] Preserves the ORIGINAL file extension by copying %\_extension% to %preserve\_original\_extension%.  
[#2] DELETES both the filename (i.e. %\_filename%) and file extension (i.e. %\_extension%), COMPLETELY, which was why I replaced with nothing.  
[#3] Will combine "[#0]" and the NEW file extension. Moreover, I included an $if2(x,y) format string to PRESERVE the original file extension (i.e. %preserve\_original\_extension%) from "[#1]", just in case the %new\_file\_extension% Mp3Tag field was blank because if the $if2(x,y) string was absent, and the action was ran without an entry present in %new\_file\_extension%, the action will delete the file extension, leaving your file without a file extension.  
[#4] Deletes the fields %preserve\_original\_filename% and %preserve\_original\_extension%.

> [#0]  
> T=5  
> 1=%\_filename%  
> F=PRESERVE\_ORIGINAL\_FILENAME
> 
> [#1]  
> T=5  
> 1=%\_extension%  
> F=PRESERVE\_ORIGINAL\_EXTENSION
> 
> [#2]  
> T=4  
> F=\_FILENAME  
> 1=^(._?).(._)$  
> 2=  
> 3=0
> 
> [#3]  
> T=5  
> 1=%preserve\_original\_filename%.$if2(%NEW\_FILE\_EXTENSION%,%preserve\_original\_extension%)  
> F=\_FILENAME
> 
> [#4]  
> T=9  
> F=PRESERVE\_ORIGINAL\_FILENAME;PRESERVE\_ORIGINAL\_EXTENSION

[UNIVERSAL File Extension CHANGER by wneclass2018 (October 12th 2022).mta](https://community.mp3tag.de/uploads/short-url/2PxacCsrxoZFeODbvWuGsPAbqno.mta) (358 Bytes)

---

<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:23pm UTC](https://community.mp3tag.de/t/not-possible-to-change-filename-w-extension-via-file-view/12107/7 "2026-02-09T12:23:09Z")

</div>


