Useful foobar2000 formatting strings

Formatting for djing




To display dates from properly (only confirmed dates with correct formatting)



To get album names including catalognumber and artist, e.g. ‘CTA261 Adolfo Carabelli Vol.1 (1931-1933)’ I use this formatting string with the %album_pubcode% and %album_name% and %artist% from

$replace($replace(%catalognumber%,' ',),'-',) %artist% %album%

Use the above with the automatically fill values tool from the properties dialogue. Choose source ‘Other’ and set the above as source. Use it to fill the album tag. (Assumes you have tagged your files with catalognumber, of course.)

File structure

Set all artists with more than one album artist (containing ‘,’) to Varios:
$if($strstr(%album artist%,','),Varios,%album artist%)

Use Varios for Various Artists albums, %artistsort% for the rest (included in the following formatting string):

$if($strstr(%album artist%,Varios),Varios,%artistsort%)

Use for file structure (copy/move, assumes Various Artists albums are tagged with %album artist% Varios and others have %artistsort% defined) :

$lower(%codec%)\$ascii($if($strstr(%album artist%,Varios),Varios,%artistsort%))\$ascii(%album%)[ if2(%catalognumber%,%barcode%)]\$ifgreater(%totaldiscs%,1,[$num(%disc%,2).],%track%) $ascii(%title%)

Tagging from

query string to use with


Corresponding string to use in fb2k (fill from values):

%tin%;%album%;%album artist%;%artist%;%disc number%;%track number%;%title%;%genre%;%date%;%catalognumber%;%performer%;%totaldiscs%

For submission to

Following the metadata submission guidelines at Useful in combination with text tools module.



To put the singer in parenthesis after track title (saving screen real estate):

%title%[ '('$ifgreater($len(%performer%),1,%performer%,)')']
3 Responses leave one →
  1. 2010 June 30

    > TINT
    > $num(%barcode%,14)-$num($max(1.%disc%),2)-$num(%track%,2)



  2. 2010 July 1

    Yes, that works too. The last $num in my string is probably unnecessary, but I prefer it for the disc number for aesthethic reasons 🙂 Both work with the tagger.

  3. 2010 August 4

    > The last $num in my string is probably unnecessary

    It causes the result not to be a TINT, since TINT is defined to have no leading zeros. See .

    > but I prefer it for the disc number for aesthethic reasons

    Fair enough. One may use any format one likes if interoperability is not required. Having said which, where some discs have more than 99 tracks, you’d need $num(%track%,3).

Leave a Reply

Note: You can use basic XHTML in your comments. Your email address will never be published.

Subscribe to this comment feed via RSS