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?
Question about cover art
Adding Text To Title (Sorted)
Four questions from an enthousiastic newbie
removing certain text from title and name
Copy Artist to Title and include brackets
Copy values between fields with regexp
[X] Spaces at the beginning and end of tag fields
[Formating] How can i format, rename and export
Insert Space Between Words
Changing Directory Name
REPLACE values after utmost left character
Reduce the number of genre tags to just ONE
I want to add information at the beginning or end of title field
Are batch actions possible ?
How To Edit Composer List
Album art with FLAC files
Add To "Title" Field
Action to replace "[ ]" by "( )"
Replace (---) with -
Various Artists Name Change
Move THE to end of artist tag
howto change tracks from 01/16 to 01 format
itunes and filename
Mass Edits
Simple way to change all entries for single field
Find and Replace list of Album tags
Number and Hiven
Artist/ Album Artist
How to remove part of Title for a number of songs
Spiliting One field to two fields
Cutting & pasting fields
Search and replace/delete function missing
How to create a Tag Template
Re-Tagging Scripts
Change BPM
Regular Expressions
regular expressions
CAPS script
Removing WWW addresses from MP3 filenames
How to remove space in ID3 title
Adding the same text to artist name without removing any tag info
[WS] iTunes
Tag based on folder information
How to change
Script to import music review files into comments field
BATCH method to import album art from file to tag?
Copying "Artist" to "Album Artist" in iTunes
replace é with e
How to insert dash between words?
Tag - Tag Convert
Amend Album Name with Artist name
Find and Replace in tag
How to change UNSYNCEDLYRICS language identifier?
Combine artist and title
Find and replace in names
Replace TITLE with current TITLE and ARTIST
Regex to append to Genre
Adding "totaltracks" tag en mass?
Can I arrange titles the way they are recorded?
How can I replace characters in the file name
Remove cover tags recursively
Create an action to copy from one field to another
How to delete numbers in the file name?
Copy and Paste
Track Number auto filled in titel
Switch title with artist
Extract text from title or filename
Remove trailing spaces
Removing Brackets
Moving artist from parentheses in song title to 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
Remove Track Numerals
Tag to Tag?
How can I modify TRACK please?
Customize for Mobile device
Rename from tag (fractional track numbers)
Append text to track title
Trim Filename?!
How to replace the Title tag with filename w/o extension?
Filename to Title
Automatic/scripted import of album cover
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?
Removing Artist out of the Title
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
Modification of tags for mp4 and case conversion
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
Action Groups
Tags from lowercase to uppercase character
Audiobook Tag Issue
Rename "Tag With Uppercase" to "Tag with uppercase"
How to copy artist AND titel to titel
Removing numbers from FILENAME
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.
Changing part of the title .
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 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
Replace /, \ with &
How to use the the replace function within tags?
Adding artist name to album name
Appearance of multiple album art
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
Changing File extensions
creating an action plan to add role/name (;)
Several lines in "comment"
Quotation Marks
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
Suggestion: Remove x number of characters from a field
Need help with IF function script
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
Rename filename - tag
Track und Titel vertausch - wie rückgängig machen?
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?
How to Change TagsLikeThis to "Tags Like This
Insert a constant into a field
Insert a word into all titles
New suggestion
Action : copy filename to %title% or to %work%
Auto Adding a Space After a Period
How to remove space in ID3 title
Add some text to Title for multiple files
How to bulk move tag data to another tag?
Help with conditional and regex
Column Dropdown
Trying to remove leading track numbers
Trailing white space in Artist tag
Convert tags from aaa to Aaa
Replacing a word if possible
Capitalize between brackets
Regex to fix year\\year and year\\year-month-day
Problems with Cover Art count
Mixed Case - special cases
Moving from Field to Field?
Add Artist to album tag
import cover art from file
Swap tag fields
Switch fields action
Replacing ...
Swap Artist / Album Title around
Converting track numbers
changing only part of a tag
Delete Filename Based On Current Folder
Remove middle part in brackets from title
Titel und Interpret in 1 Arbeitsgang tauschen?
Easy Editing of titles would be helpful
Rename files and tags with specific name
building my own tags
deleting directorys after renaming
Special Characters added to title
Swap Title & Artist values?
New here: How do I...
Merging Different Fields?
Auto-tag cover art for collection
Remove square brackets
BPM help pls!
renaming/string issue in one particular case
Truncation of comment field to 256 characters
No Spaces In Filename
Strip all tags except the main ones...
Append Comment to Title
How to change a blank for underlining?
Is it possible to make an automatic script?
Title and Artist
Not so newbie questions...
Various Artists Bulk Convert
Delete track number
"artist album" tag not displayed in mp3tag
Case Sensitive with prepositions
Suggestions for enhancements
Need to remove first 2 characters from mp3's
First letter of artist?
Cut filename MP3 for mastering?
Where's "Tag - Tag" conversion?
FolderNames -> Tag?
Adding something to an existing tag?
Is There a Way to Build User Input into an Action?
formatting mp3 tags
artist - title want to remove artist
Quick Questions - Help me out, I'm new! :D
Delete trak number from title
Settings for changing .flac and .ogg tags
Remove/trim leading track numbers
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
Help req'd merging fields...
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
Renaming directories
Remove string from filename
Removing Underscore
Make Album artist = Artist field
Suggestion: new Action: Convert Russian characters to Russian Unicode

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

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?
Can i copy a field to another?
How to "Replace"
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
Editing lyrics
dbPoweramp extended tags detection
iPod Touch lyrics tag as track info
Titel in Album Speichern Aktion?
Metadaten Tagfelder verarbeiten
Copying Title to Album - Action
Why does the cover art get mixed up when I play my songs in a music app?
Reformat Artist tag for use in Album Artist tag
Need help about how to move content from Album to Genre
How can I create hundreds of single-file albums?
Actions (Quick) - code/string for all info in field
Show "Rating POPM" in column
Album Artist shows in iTunes but blank in Mp3Tag
Subtitle field on MP4 tags for audio files (M4A)
Feldinhalte in selbst erstelles Felder kopieren
Copy Sort Composer tags to Composer
MP4-Tags with superfluous null bytes at the end are not shown in MP3TAG
Copy sync lyrics tagged to the field SYLT help
Problems displaying composer field properly v3.01
Easy way to duplicate Artist as Album Artist?
Tag-Felder kopieren?
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
I want to auto-populate sort-names in meta tags as well
A method to produce DISPLAY ARTIST

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