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?
Tracknumbers (again)
Batch file
Adjoining extra text to a field
How to find trailing spaces?
How to batch Im-/Export of Cover Art?
I want to add information at the beginning or end of title field
Question about cover art
[Formating] How can i format, rename and export
[X] Spaces at the beginning and end of tag fields
howto change tracks from 01/16 to 01 format
Number and Hiven
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
Add To "Title" Field
Script to import music review files into comments field
How to insert dash between words?
Artist/ Album Artist
Simple way to change all entries for single field
Adding Text To Title (Sorted)
Various Artists Name Change
How to change UNSYNCEDLYRICS language identifier?
Reduce the number of genre tags to just ONE
How to remove part of Title for a number of songs
How To Edit Composer List
Album art with FLAC files
Find and replace in names
Can I arrange titles the way they are recorded?
How can I replace characters in the file name
removing certain text from title and name
Copy values between fields with regexp
Insert Space Between Words
Track Number auto filled in titel
REPLACE values after utmost left character
Changing Directory Name
Find and Replace list of Album tags
Scripting functions
New here: How do I...
Remove trailing spaces
Quotation Marks
Possible to batch Copy "Title" to "Part"?
Changing File extensions
Appearance of multiple album art
How to remove track number from filename
insert albumartist from artist
Replace /, \ with &
replace the last space of the title
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
Insert Comment in front of Album Title
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
Setting to Automatically Populate 'Album Artist' w/ 'Artist' value?
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?
Empty space in Title field
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?
Merging Different Fields?
extract cover art from multiple directories
Switch title with artist
Auto-tag cover art for collection
Create New Action
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)
Automatically embed a image to all songs in a folder?
Various Artists tag reformat
How to create Action for Convert Filename - Tag
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
Remove square brackets
Amend Album Name with Artist name
Copy Titlename to empty Albumfield
BPM help pls!
Search and replace/delete function missing
Moving Data from One Tag to Another
Find and Replace in tag
Titelnamen in Albumnamen übernehmen
FLAC - Composer issue with semicolon separator
Convert
Track numbers
Text File - Tag - Tagging Comment with ultiline
Convert Tag -> Tag
renaming/string issue in one particular case
FolderNames -> Tag?
How can I modify TRACK please?
Removing WWW addresses from MP3 filenames
Customize for Mobile device
Append text to track title
Spiliting One field to two fields
Change BPM
Adding something to an existing tag?
problem after converting wma to mp3
Filename to Title
Is There a Way to Build User Input into an Action?
remove all but one tag field
Mass Edits
Truncation of comment field to 256 characters
MP3Tag und Picard
Insert Track number into Title
formatting mp3 tags
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?
No Spaces In Filename
Strip all tags except the main ones...
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
regular expressions
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 ...
Append Comment to Title
replace characters
How to change a blank for underlining?
Action Groups
Title and Artist
Not so newbie questions...
Audiobook Tag Issue
Various Artists Bulk Convert
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 "( )"
Delete track number
Copy from one tag field to another.
Copy Filename to comment (before renaming file) - how?
artist - title want to remove artist
How to add a name in front of the title tag
"artist album" tag not displayed in mp3tag
Remove/trim leading track numbers
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.
Sprachumschaltung
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
Case Sensitive with prepositions
Updating one field with contents of another?
How To Insert A Phrase "X" Spaces From The End Of The Album Name
Suggestions for enhancements
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
Regular Expressions
removing certain text from title and name
Modify Tag
How To Capitalise Post-Brackets Characters
CAPS script
Modify Tag
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....
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?
How to create a Tag Template
" (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
Copy and Paste
Insert Character at the end of a Field
Tag Tracks With Multiple Artists
itunes and filename
creating an action plan to add role/name (;)
Several lines in "comment"
Switch fields action
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
Need to remove first 2 characters from mp3's
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
First letter of artist?
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?
Cut filename MP3 for mastering?
Separate all album artist in one tag field
Where's "Tag - Tag" conversion?
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
Special Characters added to title
deleting directorys after renaming
building my own tags
Rename files and tags with specific name
Removing Brackets
Swap Title & Artist values?
Easy Editing of titles would be helpful
Titel und Interpret in 1 Arbeitsgang tauschen?
Assigning one field's value to another
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
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?
Tags austauschen
Add some text to Title for multiple files
How do I copy "Album Artist" info to "Artist" field?
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
#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
Action to replace "[ ]" by "( )"
Editing Titles to be 'Artist - Title'
Export Action to txt
duplicate tags
Copy TAG
Batch Edit Album Art from Progressive to Baseline Support?
Discogs Questions
Create a Master Tag file
keep seperator in two segment filename to tag
Can i copy a field to another?
Want to Replace - But Am LOST
How to add track numbers to Name File
Capitalize First Letter after (
How do you add a custom name to "Comment" section as the defalut?
#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.


Can anyone help me create an action to correct word case?
Capitalizing first letter followed by dot
Convert fieldnames to uppercase
#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.

Find and replace
Editing filename to remove excess naming
Removing underscores from tags
Removing last title character when it is a comma (,)
Remove Parenthesis at very end..
Action to replace "[ ]" by "( )"
Inserting leading characters in the Artist field
Replacing Ampersands with "and"
How to change UNSYNCEDLYRICS language identifier?
How to Add/Remove one word from multiple songs names
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.


Append Album Name at the beginning of the Title
String-manipulations
convert from tags to tags
Appending [xyz] does not work (Actions)
Adding band name to album title?
String Adding and Numbering Question
Adding Genres (not replacing)
How to add the same text to the tag for all files
Remove Album from Title
Exchange/Move/Copy values of tags
Add year to end of album name
Convert automatically "comments" to "album"?
Format Comment Field with Bitrate?
Add [artistname] to [trackname] / Merge fields
New Feature Request
Rename file only if extension matches (.Mp3, .Flac, etc)
Tagfeld Kommentar - Informationen ergänzen
add genre to existing multi genre tags
Searhing artist in compilation albums
Insert Text in Credit Field
Insert Text in Credit Field
iPod Touch lyrics tag as track info
Where to enter scripting function?
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
Is it possible to append Extra info to the title of each song in an album at once?
Help me stitch the year to the album name on the album name field
How to Add/Remove one word from multiple songs names
#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
Can I use wild cards or change the start of a TRACK NAME?
Remove Parenthesis at very end..
Clarification on leading character removal
Renaming/Removing Items From Tags
Remove Parenthesis at very end..
#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)


Trim all tags using Format Values
Share your custom Actions
how to eliminte space before a fullstop ?
Führende Leerzeichen löschen
Leerzeichen am Anfang entfernen
Regular Expressions
#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.


Removing track numbers in the file name
how to remove track number from the title
Removing Track Number From Title
Regular Expressions - Owww!
#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


Need help with regular expression
Add spaces after CAPS
how to space a filename
#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
How do I store values in variables
Convert automatically "comments" to "album"?
Tag automatisch speichern
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,\\\\)


Copy artist to album artist
Cloning fields
Replace every Album Artist with Album Name?
contributing artist tag ?
Adding band name to album title?
Copy album artist field to artist
How to autotag ORIGYEAR into YEAR field? If not exist > oldest release date
How do I store values in variables
iPod Touch lyrics tag as track info
Regular Expression Needed, Please
Metadaten Tagfelder verarbeiten
Can i copy a field to another?
List Artist based on name not prefix - The Cure under C not T
Editing lyrics
Subtitle field on MP4 tags for audio files (M4A)
Titel in Album Speichern Aktion?