Converters to rename files or to import tags

Mp3tag provides a variety of possibilities to get tag information from parts of the filename or rename files based on the information stored in the tag of a file.

The base concept behind all converters in Mp3tag is the so called format string, which describes a pattern (or template) of a filename or a line in a tag-list file.

A format string consists of any characters and predefined placeholders or scripting functions. Every placeholder begins with the percent sign %, followed by a tag field name and ends with the percent sign.
For example, the placeholder %album% refers to the Album field.

4 Likes
Batch File Renaming
Extract text from title or filename
How to tag audio files based on folder name
folder structure importing
How change columns ?
Filename Title?
basic instructions
Keeping tracks in correct order
Physically moving files
Album Art saved to all my tracks instead of one
How can I rename the folder using the *album* tag?
Get tags from file
Filename to Artist and Title
Multiple artists in single folder
[Formating] How can i format, rename and export
Tagging from folders and files
Can you setup a file naming script?
Dateiname und fortlaufende Nummer
Volumed (multiple part) Compilation Folder Creation
Putting Filenames as Titles in MP3s on all files in a folder
Tags from folder name
Creating title ID tag from file name WITHOUT the leading track #
Title to Exactly Match Filename
Is there a setting that creates folders after files have been tagged?
Tagging Using folder and subfolders only
Thanks and documentation suggestion
Ordnerstruktur erstellen anhand der Tags
Exporting yields only folder.jpg as cover art image for all albums
[X] Tag to Filename has an issue with slashes in the tag names
i just want to change the title so they are the same as filename
How do I Autotag by filename?
Bach copy filname to titlefield
How do I create folders for all albums tagged?
Tags from file path
MP3Tag edits not being saved into original folder
How do I move a part of the filename that is in various positions
Dateinamen einfach umbennen
Help with Filename to Tag
Tag to foldername
[X] Verzeichnis wird ge├Ąndert, wenn Dateiname ge├Ąndert wird bei '/\' im Interpret
Scene Directories
Important FAQ change regarding folder rename
Convert Filename to tags
Setting full directory path to "Genre" tag?
Auto Sorting Batch Job to Folders
Fixing folder structure
Getting folder name as album tag
V2.95 - Tag -> Filename mistreats "\" in tags
Feature Request: Create folder for each Artist
[X] Special chars in tags retrieved from Amazon or freedb cause invalid filenames

How to rename files based on tags?

Renaming files, creating folders and complete directory structures from tags can be done by using the :mt_ttf: Converter > Tag - Filename with a format string. A format string is used to describe the structure of the desired filename.

Besides using normal placeholders (such as %artist%, %title%, ...) and arbitrary text (e.g., Music) it also allows for separating folders with the backslash \ character.

Here is an example that renames the file based on the tags using the Tracknumber. Title format:
$num(%track%,2). %title%
Please note, that the $num scripting function is used to ensure double-digit track numbers.

How to create directory structures based on the tags and move the files?

When you're using a backslash in a format string, Mp3tag will create a directory from the part of the format string in front of a backslash.

Here is an example that creates new directories under D:\Music:
D:\Music\$left(%artist%,1)\%artist%-%year%-%album%\$num(%track%,2). %title%
The same is also possible using relative path names (instead of an absolute path in the example above) which creates the new directory below the current working directory:
%artist%-%year%-%album%\$num(%track%,2). %title%

Please note, that the whole range of Mp3tag's Scripting Functions can be used in the format string.

File name to tag action
naming convention help
How do I rename multiple folders from one folder?
Rearrange files by album name
Batch Re-numbering Tracks With Auto Numbering Wizard For Multi Disc Albums
Change a name in MP3
Copy metadata from one disc to another
Renaming folders using Tag Info fields
Change Folder Format
Files in Windows Explorer
Beim schreiben Tag - Dateiname werden neue Ordner erzeugt
Titel tags bearbeiten
Moving a file between two directories included in MP3Tag without the need to refresh the display
"Tag - Filename" creates a directory when artist name contains certain characters
Tag to Foldername possible?
How to rename Source Folder
How to move files to another directory of vulume
Special characters substitute mapping to filename from "tag to filename" convert
My new directory
Future suggestion
How to make multi folder with my album tag
Naming Sub Directory
X copy option to existing copy feature
Programm leer starten und Verzeichnisse umbenennen
Sorting folder by genre instead of file
Can I create convert (for example tag -> filename ) presets?
Revise Multiple Album Titles?
Batch change the folder name based on the tags of the files inside it
Interpreten automatisch nach Titelnummer im Dateinamen einf├╝gen
Renaming song titles
Create folders based on music tracks
Listing all subdirectories folders only
Renaming folders from tags
Ein Punkt setzen bei der Tracknummer
Transfer music from ipod classic
Brauche Hilfe f├╝r meine mp3 Verzeichniss Struktur!
Komplexe Bibliotheksverwaltung aufbauend auf MP3Tag: Ideen?
Dateiname aus Tag umbenennen

How to import parts of the filename into the tag?

Importing tags from filenames and directory names can be done by using the Converter > Filename - Tag Converter > Filename - Tag.

The basic concept is the notion of a format string which describes the structure of the name to import from. The format string is built of either standard text (e.g., Music), placeholders (such as %artist%, %title%, ...), or backslash characters \ that denote directory structures.

Here is an example that imports tags from a file name 02. Four Ton Mantis.mp3
%track%. %title%

Please note how the format string completely resembles the structure of the file name.

How to import parts of the folder structure into the tag?

It's also possible to import information from the directory structure of the file path where the backslash character is used to mark the different folders.

For example, the information from the path
Amon Tobin\[2000] supermodified\02 - For Ton Mantis.mp3
can be imported using
%artist%\[%year%] %album%\%track% - %title%

Of course, sometimes it's also needed to omit some information that should not imported to the tag. This can be done using the %dummy% placeholder for the unneeded part of the file path.

4 Likes
File name correction (Renaming)
Remove Characters from middle of Tag
Copy filename to title
Elements of Filepath for Tags
Updating Title
Help with Filename->Tag
Artist/Title Bulk Tag Using RegEx
How to fill empty TITLE fields with FILENAMES
Split Filename to Title and Artist via Separator
How to extract part of Path to Comment field?
Tagging after directory
Folder-like tagging system?
How to copy filename fields to Title and Artist?
How to fill empty Title tag from filename without Track Nr
Get tag from filename
I need help with setting up the auto tagging
Batch to Remove 1st then Add
Folder Name to Album Tag, Is it possible?
Tool for Auto-numbering DISC Number
Directory listing problem
Do all this in one click?
Add filename to title
Parse Path for tags
MP3 data import into MP3TAG
Filename to Tag doesn't import as expected
Suggestion: Path -> Tag
Tagg all files within a group of folders
Filename - Title variable
How would I copy the filename to the Title Tag?
Different values from filename
Artist tag as folder name
Album by foldername
Replacing artist
Renaming song titles
Filename -> Tag; Numbers
Tag to tag function
File Name to Title
How to split filename to title and artist
Move file name path to comment column
Teile aus Dateiname in TSOT ├╝bernehmen
Interpreten automatisch nach Titelnummer im Dateinamen einf├╝gen
Filename - Tag Ignore extra data
How could I convert case of filename
Disc number from folder name
Advice: Massive Grateful Dead Metadata Project
How to use folders for tags
Any scripted way to extract Album and Artist from the Path field?
How do I convert file name to title?
Convert filename > tag, what am i doing wrong?
How to transfer metadata to the mp3 file title?
Same filename to multiple tags
Album Tag to Folder Name
Folder name to Artist and Album
Tag based on folder information
Rename tags from filename
Windows Folder to iTunes "TV Show" Name
How to number audiobook tracks?
Rename Album After Folder