Actions and batch-operations


#1

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?
Batch file
Adjoining extra text to a field
How to find trailing spaces?
Tracknumbers (again)
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
Mass Edits
howto change tracks from 01/16 to 01 format
Removing WWW addresses from MP3 filenames
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
Removing Brackets
How to batch Im-/Export of Cover Art?
Easy Editing of titles would be helpful
Titel und Interpret in 1 Arbeitsgang tauschen?
Number and Hiven
Delete Filename Based On Current Folder
changing only part of a tag
Re-Tagging Scripts
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
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
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
Need help with IF function script
Suggestion: Remove x number of characters from a field
Remove trailing spaces
Quotation Marks
Changing File extensions
Appearance of multiple album art
Tag based on folder information
Replace /, \ with &
How to change
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
Add To "Title" Field
Removing Artist out of the Title
Allgemein
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
Are batch actions possible ?
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
Script to import music review files into comments field
I want to add information at the beginning or end of title field
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
BATCH method to import album art from file to tag?
Adding leading zeros to an extended field
problem with codpage
Copying "Artist" to "Album Artist" in iTunes
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]
remove
How can I remove 'underscores' from filenames & tags?
replace é with e
How to get title & track number in 'title' field?
extract cover art from multiple directories
Switch title with artist
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)
How to insert dash between words?
Various Artists tag reformat
Artist/ Album Artist
Remove string from filename
Tag - Tag Convert
Removing Underscore
Make Album artist = Artist field
Cutting & pasting fields
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
Amend Album Name with Artist name
Copy Titlename to empty Albumfield
Moving Data from One Tag to Another
Find and Replace in tag
Titelnamen in Albumnamen übernehmen
Simple way to change all entries for single field
Convert
Track numbers
Text File - Tag - Tagging Comment with ultiline
Adding Text To Title (Sorted)
Various Artists Name Change
How to change UNSYNCEDLYRICS language identifier?
How can I modify TRACK please?
Customize for Mobile device
Reduce the number of genre tags to just ONE
Append text to track title
How to remove part of Title for a number of songs
Spiliting One field to two fields
Change BPM
problem after converting wma to mp3
Filename to Title
How To Edit Composer List
remove all but one tag field
MP3Tag und Picard
Insert Track number into Title
Album art with FLAC files
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?
Combine artist and 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
Find and replace in names
move a part of tag to another tag
Replace TITLE with current TITLE and ARTIST
Feature Suggestion: Folder rename
Album issues...
Moving artist from parentheses in song title to artist field
Regex to append to Genre
Can I change part of a title?
Artist and Album Artist
Filename - Tag Comment Field
Newbie Struggling
Replace (---) with -
Four questions from an enthousiastic newbie
How to swap tag fields
file name & title name fields
Title case
Adding "totaltracks" tag en mass?
Help - change title tags
Importing Tag Data without Deleting Current Tags
How do I ...
replace characters
Action Groups
Audiobook Tag Issue
underscore
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
Action to replace "[ ]" by "( )"
Copy from one tag field to another.
Copy Filename to comment (before renaming file) - how?
Can I arrange titles the way they are recorded?
How to add a name in front of the title tag
How can I replace characters in the file name
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
Adding the same text to artist name without removing any tag info
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 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
removing certain text from title and name
Modify Tag
How To Capitalise Post-Brackets Characters
Modify Tag
[X] Spaces at the beginning and end of tag fields
Remove cover tags recursively
Create an action to copy from one field to another
How to use the the replace function within tags?
Adding artist name to album name
Concerns....
Concerns....
Concerns....
Copy values between fields with regexp
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?
How to delete numbers in the file name?
Insert Space Between Words
" (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
Remove number from artist field
Copy and Paste
Insert Character at the end of a Field
Tag Tracks With Multiple Artists
itunes and filename
Track Number auto filled in titel
creating an action plan to add role/name (;)
Several lines in "comment"
REPLACE values after utmost left character
script to input character(s) to any field of choice?
Changing Directory Name
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
Find and Replace list of Album tags
how to copy album artist to composer
[Formating] How can i format, rename and export
[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 numbering......re-visited
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
Copy Artist to Title and include brackets
Extract text from title or filename
How to remove a word and replace it with blank spaces
Merge tags
Move THE to end of artist tag
Names With Apostrophes
Scripting functions
[WS] iTunes
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
Question about cover art
FLAC - Composer issue with semicolon separator
Switch fields action
Convert Tag -> Tag
Regular Expressions
Sprachumschaltung
Remove/trim leading track numbers
artist - title want to remove artist
regular expressions
formatting mp3 tags
Is There a Way to Build User Input into an Action?
Regular Expressions
Adding something to an existing tag?
FolderNames -> Tag?
Search and replace/delete function missing
Where's "Tag - Tag" conversion?
Cut filename MP3 for mastering?
First letter of artist?
Need to remove first 2 characters from mp3's
CAPS script
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...
#2

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.


Mass Tag/Filename Conversion
Editing Titles to be 'Artist - Title'
Copy TAG
Action to replace "[ ]" by "( )"
Discogs Questions
keep seperator in two segment filename to tag
duplicate tags
#3

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.


Convert fieldnames to uppercase
Can anyone help me create an action to correct word case?
#4

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.

Removing underscores from tags
Remove Parenthesis at very end..
Removing last title character when it is a comma (,)
Editing filename to remove excess naming
How to change UNSYNCEDLYRICS language identifier?
Action to replace "[ ]" by "( )"
Find and replace
Replacing Ampersands with "and"
Can anyone help me create an action to correct word case?
#5

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.

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

Action type: Format value
Field: COMMENT
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.


Adding band name to album title?
convert from tags to tags
Exchange/Move/Copy values of tags
Append Album Name at the beginning of the Title
Add year to end of album name
Convert automatically "comments" to "album"?
Format Comment Field with Bitrate?
Tagfeld Kommentar - Informationen ergänzen
add genre to existing multi genre tags
Add [artistname] to [trackname] / Merge fields
Insert Text in Credit Field
Insert Text in Credit Field
Adding Genres (not replacing)
iPod Touch lyrics tag as track info
New Feature Request
Add "Cd #" to "%ALBUM%" for albums with multiple CDs
Rename file only if extension matches (.Mp3, .Flac, etc)
how to add names in end of file name
Wort anhängen
No Change in File Tags
Remove Album from Title
Appending [xyz] does not work (Actions)
String-manipulations
String Adding and Numbering Question
#6

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.

Example:
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.


#7

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.


#8

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).


remove part of album name
Remove Parenthesis at very end..
Remove Parenthesis at very end..
Can I use wild cards or change the start of a TRACK NAME?
Clarification on leading character removal
Renaming/Removing Items From Tags
#9

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.


Please check my regexp
#10

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
Field: _FILENAME
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)


Leerzeichen am Anfang entfernen
Führende Leerzeichen löschen
how to eliminte space before a fullstop ?
Trim all tags using Format Values
Share your custom Actions
#11

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.


Regular Expressions - Owww!
how to remove track number from the title
Removing track numbers in the file name
Removing Track Number From Title
#12

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

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


how to space a filename
Add spaces after CAPS
Need help with regular expression
#13

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


#14

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 ∑.


Exchange/Move/Copy values of tags
Convert automatically "comments" to "album"?
Tag automatisch speichern
How do I store values in variables
Action Request
Swap Artist - Title Easily
#15

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
Field: ALBUMARTIST
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,\\)


Replace every Album Artist with Album Name?
contributing artist tag ?
Cloning fields
Copy artist to album artist
Adding band name to album title?
iPod Touch lyrics tag as track info
Editing lyrics
Regular Expression Needed, Please
Metadaten Tagfelder verarbeiten
How do I store values in variables