# Modify filename with action entry

**URL:** https://community.mp3tag.de/t/modify-filename-with-action-entry/53394
**Category:** Support
**Created:** [June 2, 2021, 1:45pm UTC](https://community.mp3tag.de/t/modify-filename-with-action-entry/53394 "2021-06-02T13:45:38Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Dennisle](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/d/e480ec/32.png) [@Dennisle](https://community.mp3tag.de/u/Dennisle)
#### Post date: [June 2, 2021, 1:45pm UTC](https://community.mp3tag.de/t/modify-filename-with-action-entry/53394/1 "2021-06-02T13:45:38Z")

</div>

Is it possible to edit/modify the filename of a MP3 file with an action command? I tried to use "replace with regular expression" and $meta(artist), but the output is always empty. It seems there is no possibility to modify the filenam over an action command with tag fields.

---

<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: [June 2, 2021, 1:48pm UTC](https://community.mp3tag.de/t/modify-filename-with-action-entry/53394/2 "2021-06-02T13:48:27Z")

</div>

It's possible using the `_FILENAME` field, e.g., with an action "Format value" or "Replace". See for example this post from the FAQ:

> [@Actions and batch-operations](https://community.mp3tag.de/t/actions-and-batch-operations/967/7):
>
> How to add additional spaces around dash? In order to get better readability for a filename like "Artist&nbsp;-&nbsp;Title", you can add spaces so that it reads "Artist&nbsp;&nbsp;-&nbsp;&nbsp;Title" Create a [new action](https://community.mp3tag.de/t/actions/967/2) in an existing action group, choose Replace as action type and enter (without the quotes): Field: \_FILENAME Original: " - " Replace with: "&nbsp;&nbsp;-&nbsp;&nbsp;" You can activate the action group via Convert, [Actions] Actions and apply it to the selected files. Unintended duplication of spaces can occur, if you're e…

---

<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:29pm UTC](https://community.mp3tag.de/t/modify-filename-with-action-entry/53394/3 "2026-02-09T12:29:15Z")

</div>


