Actions and batch-operations

Mp3tag provides a variety of actions, which can be applied to filenames and tags. The actions are grouped together into named sets (action groups), which can be applied independently via Alt + 6. If you do not want to create a reusable action group for applying one single action, the Actions (Quick) toolbar button or keyboard shortcut Shift + Alt + 6 can be used.

How to create a new action?

How to ...

Batch file tag processing?
Tracknumbers (again)
Batch file
Adjoining extra text to a field
How to find trailing spaces?
How to batch Im-/Export of Cover Art?
Copy Artist to Title and include brackets
Question about cover art
Adding Text To Title (Sorted)
Four questions from an enthousiastic newbie
Copy values between fields with regexp
removing certain text from title and name
REPLACE values after utmost left character
I want to add information at the beginning or end of title field
Add To "Title" Field
Changing Directory Name
Move THE to end of artist tag
Are batch actions possible ?
[X] Spaces at the beginning and end of tag fields
[Formating] How can i format, rename and export
Insert Space Between Words
How To Edit Composer List
Reduce the number of genre tags to just ONE
Find and Replace list of Album tags
Number and Hiven
Artist/ Album Artist
Action to replace "[ ]" by "( )"
Simple way to change all entries for single field
How to remove part of Title for a number of songs
howto change tracks from 01/16 to 01 format
itunes and filename
Replace (---) with -
Mass Edits
Album art with FLAC files
Spiliting One field to two fields
Various Artists Name Change
Search and replace/delete function missing
regular expressions
Remove trailing spaces
Copying "Artist" to "Album Artist" in iTunes
How to delete numbers in the file name?
Re-Tagging Scripts
Adding the same text to artist name without removing any tag info
Find and replace in names
Change BPM
Create an action to copy from one field to another
Remove cover tags recursively
Replace TITLE with current TITLE and ARTIST
Removing Brackets
[WS] iTunes
Regex to append to Genre
replace é with e
BATCH method to import album art from file to tag?
Removing WWW addresses from MP3 filenames
Tag based on folder information
How to remove space in ID3 title
Copy and Paste
How to change UNSYNCEDLYRICS language identifier?
How to change
Script to import music review files into comments field
Find and Replace in tag
Track Number auto filled in titel
Regular Expressions
Moving artist from parentheses in song title to artist field
Extract text from title or filename
Need help with IF function script
Amend Album Name with Artist name
Adding "totaltracks" tag en mass?
How can I replace characters in the file name
Can I arrange titles the way they are recorded?
How to create a Tag Template
Cutting & pasting fields
Combine artist and title
Action Groups
Tag - Tag Convert
CAPS script
How to insert dash between words?
Switch title with artist
How To Insert A Phrase "X" Spaces From The End Of The Album Name
Live Anhängen
How to remove parentheses and move contents
How to merge Artist + Title into "Title" field?
after compter froze, all my albums label fildname changed to organization
Replacing straight quotes with curly quotes "text">“text”
Need Help With "Case Conversion"; Scripts
removing certain text from title and name
Modify Tag
How To Capitalise Post-Brackets Characters
Modify Tag
How to use the the replace function within tags?
Adding artist name to album name
How to import lyrics from likenamed textfiles in batch?
Need help to do a batch rename
How to delete separate part
How to delete numbers in the file name?
" (feat.) " problem
Do I need to tag in order for what I want to do?
How to add year to Folder "Album title"
divide different values from title
convert charset encoding
Inserting album pictures into tags
Capitalizing every first letter even after ( [ characters
Remove number from artist field
Insert Character at the end of a Field
Tag Tracks With Multiple Artists
creating an action plan to add role/name (;)
Several lines in "comment"
script to input character(s) to any field of choice?
Replace multiple strings
Want to Tag my mp3 song names without the song number
How To Get A Capital Letter
paragraph align Left but keep spacing
how to copy album artist to composer
[Formating] How can i format, rename and export
Change tag from tag
Help needed: Edit multiple tracks with wrong field info
I want to separate two words with Space after comma
Add Renaming Features
Newbie needing scripting help please :)
Filling the COMMENT field with data using REPLACE
Mixed case for French language?
Multi sequential assigment images / cover / jpgs join to mp3 ?
Is it possible to append Extra info to the title of each song in an album at once?
need more efficient approach
Delete All Text After Word
Remove portion of title in brackets
How to batch change word 'FLAC' to 'ALAC' in Album field ??
Sequential MP3 Title
How do you add action groups to Mp3tag?
Rename If Extension
How to Removing Title ending with zeros? ?
Search for song names in freedb etc.?
How do I strip metadata?
Separate all album artist in one tag field
Batch to Remove 1st then Add
How to remove a word and replace it with blank spaces
Merge tags
Names With Apostrophes
Assigning one field's value to another
Tags austauschen
How do I copy "Album Artist" info to "Artist" field?
Possible to batch Copy "Title" to "Part"?
How to remove track number from filename
insert albumartist from artist
replace the last space of the title
Insert Comment in front of Album Title
Setting to Automatically Populate 'Album Artist' w/ 'Artist' value?
Empty space in Title field
Create New Action
Automatically embed a image to all songs in a folder?
How to create Action for Convert Filename - Tag
FLAC - Composer issue with semicolon separator
Convert Tag -> Tag
Action to remove hyphen and add brackets to start and end of artist name in filename and track title
Cover Art and Filename
How can I use ID3V2 to remove embedded artwork and add a link to artwork on my hard drive?
Help with conditional and regex
Column Dropdown
Trying to remove leading track numbers
Is it possible to make an automatic script?
Modification of tags for mp4 and case conversion
Recommendations for Bulk Library
Recommendations for Bulk Library
Remove middle part in brackets from title
Switch fields action
Remove/trim leading track numbers
artist - title want to remove artist
formatting mp3 tags
Is There a Way to Build User Input into an Action?
Adding something to an existing tag?
FolderNames -> Tag?
Where's "Tag - Tag" conversion?
Cut filename MP3 for mastering?
First letter of artist?
Need to remove first 2 characters from mp3's
Suggestions for enhancements
Case Sensitive with prepositions
"artist album" tag not displayed in mp3tag
Delete track number
Various Artists Bulk Convert
Not so newbie questions...
Title and Artist
How to change a blank for underlining?
Append Comment to Title
Strip all tags except the main ones...
No Spaces In Filename
Truncation of comment field to 256 characters
renaming/string issue in one particular case
BPM help pls!
Remove square brackets
Auto-tag cover art for collection
Merging Different Fields?
New here: How do I...
Swap Title & Artist values?
Special Characters added to title
deleting directorys after renaming
building my own tags
Rename files and tags with specific name
Easy Editing of titles would be helpful
Titel und Interpret in 1 Arbeitsgang tauschen?
Delete Filename Based On Current Folder
changing only part of a tag
Converting track numbers
Swap Artist / Album Title around
Replacing ...
Swap tag fields
import cover art from file
Add Artist to album tag
Moving from Field to Field?
Mixed Case - special cases
Problems with Cover Art count
Regex to fix year\\year and year\\year-month-day
Capitalize between brackets
Replacing a word if possible
Convert tags from aaa to Aaa
Trailing white space in Artist tag
How to bulk move tag data to another tag?
Add some text to Title for multiple files
How to remove space in ID3 title
Auto Adding a Space After a Period
Action : copy filename to %title% or to %work%
New suggestion
Insert a word into all titles
Insert a constant into a field
How to Change TagsLikeThis to "Tags Like This
Track und Titel vertausch - wie rückgängig machen?
Rename filename - tag
Suggestion: Remove x number of characters from a field
Quotation Marks
Changing File extensions
Appearance of multiple album art
Replace /, \ with &
Changing part of the title .
Removing numbers from FILENAME
How to copy artist AND titel to titel
Rename "Tag With Uppercase" to "Tag with uppercase"
Tags from lowercase to uppercase character
Removing Artist out of the Title
Automatic/scripted import of album cover
How to replace the Title tag with filename w/o extension?
Trim Filename?!
Rename from tag (fractional track numbers)
Tag to Tag?
Remove Track Numerals
Suggestion: new Action: Convert Russian characters to Russian Unicode
Renaming directories
Help req'd merging fields...
Quick Questions - Help me out, I'm new! :D
Delete trak number from title
Settings for changing .flac and .ogg tags
Tag to tag conversion? Missing Action Groups?
Capitalize first letters in a tag
Switch Title and Artist
Artist / title in the same field
Import covers and other setting from WMP11?
Inserting Spaces
lower upper case in parentheses
Leerzeichen vor großen Buchstb. einfügen
Adding leading zeros to an extended field
problem with codpage
Adding to existing Field
Remove/trim leading track numbers
Automate the albumart process?
Find & Replace text in tags?
Reverse artist
Strip Specific last character of a Tag File
Tag - Filename [Track Number Code]
How can I remove 'underscores' from filenames & tags?
How to get title & track number in 'title' field?
extract cover art from multiple directories
Automatically Save Cover Art
Blank spaces after Title
Release Date field in itunes
regex - where and how?
Remove Artist from Title
Custom Tags, etc. (bugs and additional options)
Custom Tags, etc. (bugs and additional options)
Various Artists tag reformat
Remove string from filename
Removing Underscore
Make Album artist = Artist field
Want to extend strings
composer tags from artist names
removing/changing fields names in extended tag window
Länge des Tracks automatisch in ID3V2 Tag
'And' for '&' or vice versa
Copy Titlename to empty Albumfield
Moving Data from One Tag to Another
Titelnamen in Albumnamen übernehmen
Track numbers
Text File - Tag - Tagging Comment with ultiline
How can I modify TRACK please?
Customize for Mobile device
Append text to track title
Filename to Title
remove all but one tag field
MP3Tag und Picard
Insert Track number into Title
Action to remove leading zero and total tracks
Custom text in Filename to Tag? or Combining Fields?
How to rename folder based on Album tag
Need to know the reg exp for following
Getting Traktor to see Foobar Ratings
Organisieren von Compilations
Changing file paths above the parent directory?
Add same line to lyrics in multiple files
delete all but cover images
Discnumbe, Album Artist, Composer fields
Case Conversion of Title
TAG Titelleiste anpassen
move a part of tag to another tag
Feature Suggestion: Folder rename
Album issues...
Can I change part of a title?
Artist and Album Artist
Filename - Tag Comment Field
Newbie Struggling
How to swap tag fields
file name & title name fields
Title case
Help - change title tags
Importing Tag Data without Deleting Current Tags
How do I ...
replace characters
Audiobook Tag Issue
Please, explain the mess with album art filename.mp3.jpg
How to add a Word after each filename and title of Mp3
Replace Repeated Tags
Batch-mode for integrating cover.jpg as mp3-tag
Copy from one tag field to another.
Copy Filename to comment (before renaming file) - how?
How to add a name in front of the title tag
Punctuation Problems
filename to tag help
replace %artist% (tag) and %title% (tag)
How to append tags?
Wie richtig Taggen? ARTIST + ALBUM ARTIST?
Fill Title Tag with data from the filename
How to copy MP3 metadata/tags created in iTunes?
How to copy MP3 metadata/tags created in iTunes?
I need to combine title with year in the title field.
Simple tagging question
How can I do this.. Help me plz.
How to Add word to title or filename
Is there a way to convert capital letters to lowercase?
Remove THE from start of Artist field
Copy Album Artist field to Artist field IF empty
Conditional Update on Album Name
Updating one field with contents of another?

How to create a new action?

First, create a new action group via Actions > Actions Actions or Alt + 6.

Then, click on the button New New and give your action group an expressive name, e.g., "All tag fields Upper Case". This action group can be applied to the selected files after you have added one or more actions to it.

Now, you can create a new action in your action group via the button New New and choose the desired action type from the list.

At the moment the following action types are available

You can combine different actions (e.g., Case conversion and Replace) in one action group and activate or deactivate them via the checkmarks in the Actions > Actions Actions dialog.

1 Like

How to change upper/lower case of tag fields or filenames?

Create a new action in an existing action group and choose Case conversion as action type.

  • Field determines which parts of the tags/filename should be changed.
  • Case conversion determines how the upper/lower case of the field will be changed.

If you want for example mark chars after a left parenthesis or a hyphen as the begin of a word, enter the respective char under Words begin from/after any of.


How to replace the string "xyz" in tag-fields or filenames?

Create a new action in an existing action group and choose Replace as action type.

  • Field specifies the parts of the tags/filename the replace rule should be applied to.
  • Original is the string that is going to be changed in Field.
  • Replace with is the string that replaces the string in Original. If you leave it empty, the string will be deleted.

How to append the string " xyz" to the content of a tag field?

Create a new action in an existing action group and choose Format value as action type.

  • Field specifies the tag field the formatting rule should be applied to.
  • Format string must have the field placeholder for the field selected above and the string which should be appended.

If you want to append the string " xyz" to the current value of the comment field:

Action type: Format value
Format string: %comment% xyz

You can use this also to add "xyz " in front of the tag value, combine fields or to copy one value to another field.

Append Album Name at the beginning of the Title
Appending [xyz] does not work (Actions)
convert from tags to tags
Adding band name to album title?
Remove Album from Title
How to add the same text to the tag for all files
Exchange/Move/Copy values of tags
String Adding and Numbering Question
Rename file only if extension matches (.Mp3, .Flac, etc)
Adding Genres (not replacing)
Add year to end of album name
How to Add/Remove one word from multiple songs names
ORIGYEAR tag confusion!
Combine tags on filename
Is it possible to append Extra info to the title of each song in an album at once?
"Actions" variable questions
Add [artistname] to [trackname] / Merge fields
Convert automatically "comments" to "album"?
Format Comment Field with Bitrate?
Compilations and modified titles to include artist in brackets
Adding text to beginning of existing comment
New Feature Request
Disc number Sequential Action
how to add names in end of file name
Wort anhängen
No Change in File Tags
Searhing artist in compilation albums
Add to a tag, but keep already existing
Append to existing title for batch of selected files?
Complex manage featured artists, moving & copying between fields
Disc number from folder name
How to use <Reserved> correctly?
Add a txt to title
Revise Multiple Album Titles?
Appending to existing genres
Add S(Series)E(Episode) to Track or Title
Simple request -- append one field to another
Help me stitch the year to the album name on the album name field
Where to enter scripting function?
Add a string, not replace it
How to move a tag to another field
Append tag to variety of existing tags/files?
Bulk Add/Remove extra information to Tag Fields?
Tagfeld Kommentar - Informationen ergänzen
add genre to existing multi genre tags
Insert Text in Credit Field
Insert Text in Credit Field
iPod Touch lyrics tag as track info
Add "Cd #" to "%ALBUM%" for albums with multiple CDs

How to remove text strings?

In order to remove text strings, create a new action in an existing action group and choose Replace as action type.

  • Field: Here you can enter which field(s) you want to change.
    You can choose

    • _ALL, which affects tags AND filenames,
    • _TAG which affects all tag fields,
    • _FILENAME which only affects the filename,
    • or simply one of the other supported tag fields.
  • Original: Here you enter the string that you want to delete.

  • Replace with: Just leave this empty, because you're going to delete the string in Original.

Assume that you want to remove Obsolete from the filename ThisShouldRemainObsolete so that ThisShouldRemain is the result. To achieve that, just enter Obsolete at Original.


How to add additional spaces around dash?

In order to get better readability for a filename like "Artist - Title", you can add spaces so that it reads "Artist  -  Title"

Create a new action in an existing action group, choose Replace as action type and enter (without the quotes):

  • Field: _FILENAME
  • Original: " - "
  • Replace with: "  -  "

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 executing this action several times. "x - x" becomes "x  -  x", and "x  -  x" becomes "x   -   x" etc. You can prevent this by adding a second action that makes "   " (3 spaces) to "  " (2 spaces).

It is even more simple if your files are already properly tagged: you can use the converter Tag - Filename Tag - Filename with the format string "%artist%  -  %title%" and get the same result.

1 Like

How to remove a certain number of leading chars?

In order to remove some leading characters from the filename or a tag field, create a new action in an existing action group and choose Replace with regular expression as action type.

  • Field: choose where you want to remove the chars.
  • Regular expression: enter ^.{3} if you want to remove 3 chars.
  • Replace matches with stays empty.

You can enter the number of chars to be removed between the two curly brackets.

To remove the last 3 characters use .{3}$ (but do not use this on _FILENAME as it would remove the file extension).


How to remove specific leading characters?

Some titles start with "The", others with "Der" or "Die". Mass-deleting the first 3 characters doesn't have the desired result, because all other tags/filenames will be shortened too.

To remove specific leading chars, create a new action in an existing action group and choose Replace with regular expression as action type.

  • Field: choose where you want to remove the chars.
  • Regular expression*: enter ^The\s+
  • Replace matches with stays empty.

If you execute this action on your selected files, all The's and following spaces will be deleted. Of course, it works the same way with any other word.


How to remove/trim leading and trailing spaces

Video tutorial for these actions

Leading spaces:

Action type: Replace with regular expressions
Field: _TAG
Regular expression: ^\s+
Replace matches with:

^ matches the beginning of the string. Then \s+ searches for all whitespaces till a different char occurs.
The whitespaces found will be replaced by nothing and, thus, deleted.

Trailing spaces:

Action type: Replace with regular expressions
Field: _TAG
Regular expression: \s+$
Replace matches with:

This regular expression matches one and more (marked by +) spaces (marked by the \s specifier) at the end (marked by $) of a string.

Trailing spaces from filenames:

An action that doesn't remove the file extension:

Action type: Format value
Formatstring: $trim(%_filename%)

Cut two or more consecutive spaces to one:

Action type: Replace with regular expressions
Field: _ALL
Regular expression: \s{2,}
Replace matches with: " " (without the quotes)


How to remove/trim leading track numbers?

Action type: Replace with regular expressions
Regular expression: ^\s*\d+\s*-\s*
Replace matches with:

This regular expression removes the track number from 01 - Anything.. so that only Anything... remains.
^ matches the beginning of the string. Then any numbers of whitespaces \s* followed by numbers from 0-9.
The \s*-\s* part removes the hyphen and any whitespace characters around it.


How to separate or split strings that are written in one word?

You have titles that have no spaces between words (written in one big word) and all words start with a capital letter, e.g., ThisIsTheTitle (also referred to as CamelCase). How can Mp3tag separate the individual words and insert a space before every capital letter?

Create a new action group, e.g., TagsLikeThese for the field you wish to edit (the example uses the TITLE field):

Action type: Replace with regular expression
Field: TITLE
Regular expression: (\l)(\u)
Replace matches with: $1 $2
[x] case-sensitive comparison

Regular expression: (\w|,)(?=\u)
Replace matches with: $1 $2
[x] case-sensitive comparison

How to apply upper case after an O' (like O'Hugo)?

There are irish/scottish names like O'Donnel, O'Leary etc, that all should be upper case. But you cannot use upper case in general after an ' because other words would be spelled wrongly then (That'S, Ain'T etc.).

Action type: Replace with regular expression
Regular expression: O'(.{1})
Replace matches with: O'$upper($1)
[x] case-sensitive comparison

How to swap the contents of 2 tag fields?

Example how to swap TITLE and ARTIST:

Create a new action in an existing action group or make a new action group.

Action type: Guess values
Source format: %title%~%artist%
Guessing pattern: %artist%~%title%

Note: The ~ sign is just used to separate the two fields, you could take any other sign that does not appear in your fields, e.g. ¢ or an extended unicode character like ∞ or ∑.


How to copy one field value to another field?

Example how to copy the content of the ARTIST field to the ALBUMARTIST field:

Create a new action in an existing action group or make a new action group.

Action type: Format value
Format string: %artist%

Note: If you want to copy all possible values of a field (in case you have multiple artist fields), the internal scripting function $meta_sep can be used in the format string, e.g., $meta_sep(artist,\\\\)

1 Like
Copy artist to album artist
Cloning fields
Replace every Album Artist with Album Name?
contributing artist tag ?
Adding band name to album title?
How to "Replace"
Can i copy a field to another?
Autofill Fields
Copy album artist field to artist
Regular Expression Needed, Please
How do I store values in variables
How to autotag ORIGYEAR into YEAR field? If not exist > oldest release date
List Artist based on name not prefix - The Cure under C not T
Batch Operation: Copy SOLOIST tag to ARTIST tag
Copying Title to Album - Action
Editing lyrics
Why does the cover art get mixed up when I play my songs in a music app?
iPod Touch lyrics tag as track info
dbPoweramp extended tags detection
Titel in Album Speichern Aktion?
Actions (Quick) - code/string for all info in field
Metadaten Tagfelder verarbeiten
Copy Sort Composer tags to Composer
How can I create hundreds of single-file albums?
Need help about how to move content from Album to Genre
Reformat Artist tag for use in Album Artist tag
Subtitle field on MP4 tags for audio files (M4A)
Copy sync lyrics tagged to the field SYLT help
Problems displaying composer field properly v3.01
Easy way to duplicate Artist as Album Artist?
Remove characters after / before
How does one use the Quality field in the tags?
MacOS Voice Memo m4a files - Recording Date
Create an action to duplicate fields
Removing "the" from multi artists
Album Artist shows in iTunes but blank in Mp3Tag
Feldinhalte in selbst erstelles Felder kopieren
MP4-Tags with superfluous null bytes at the end are not shown in MP3TAG
Where is the PERFORMER tag?
Automatically copy Artist and Album Artist
Recommendations for Bulk Library
Tag-Felder kopieren?
Show "Rating POPM" in column
A method to produce DISPLAY ARTIST
I want to auto-populate sort-names in meta tags as well

Organizing Actions

Keyboard Shortcuts

While it's not directly possible to assign arbitrary keys to action groups, you can use the keyboard shortcut to trigger the action group menu Alt+A in combination with another character from the action group name. Simply decide on the character and prefix it with &. You can then use Alt+A and the character to trigger the action group.

An example action group &Uppercase can be triggered by Alt+A plus U.

Submenus in the Action Group menu

If you use the # in your action group name, Mp3tag uses anything before the # as name for a submenu and anything after as a menu item in that menu. By that, you can organize action groups that belong together.

An example action group Default values#Set COMMENT would create a submenu Default values and would list the action group Set COMMENT within this menu.

Pro tip: you can combine both tips, e.g., &Default values#Set &COMMENT to trigger the action group by pressing Alt+A plus D plus C.

1 Like