Title formatting in foobar2000 is a system that allows you to control how information about your music is displayed in the interface. It doesn’t modify the audio files themselves or change tags — it only affects how metadata and other information is shown in playlists, status bar, or window title.
Think of it like a template language: you define a pattern for text, and foobar2000 fills in the fields with actual track information. For example, you can make the playlist display tracks as:
Artist - Track Title (Album)
Why Title Formatting Exists
Music files contain metadata such as:
Artist
Album
Track title
Track number
Year
Duration
Different users want to display this information differently. Title formatting lets you:
Decide which information to display
Choose the order of information
Add separators, labels, or punctuation
Optionally display certain information only when it exists
For example, you might want to show the album only if it exists. Title formatting makes that possible.
Where To Use Title Formatting
You typically use title formatting in three main places:
Playlist columns — to customize how each column displays track info.
Status bar — to show the “Now Playing” track in a readable format.
Window title — to display the currently playing track in the foobar2000 window or taskbar.
Core Concepts You Need to Know
There are three core concepts that beginners must understand:
Plain Text: Text you type exactly as it should appear.
Fields: Metadata values from the audio files (e.g., %artist%, %title%).
Conditional Logic: Optional logic to handle missing fields or customize output dynamically.
Plain Text in Title Formatting
Any normal text you type is displayed exactly as written. This is useful for labels, punctuation, or separators:
Now Playing:
You can combine plain text with fields to make output more readable:
Now Playing: %artist% - %title%
This will display something like:
Now Playing: Radiohead - Paranoid Android
Fields (Metadata Tags)
Fields are placeholders that pull metadata from your music files. They are written inside percent signs:
%artist%
Some common fields include:
Field
Meaning
%artist%
Track artist
%album%
Album name
%title%
Track title
%tracknumber%
Track number
%date%
Year or release date
%length%
Track duration
Example combining fields:
%artist% - %title%
Output:
Radiohead - Paranoid Android
Combining Plain Text and Fields
You can mix plain text with fields to create more structured output. For example:
%artist% – %title% (%album%)
Output:
Radiohead – Paranoid Android (OK Computer)
Handling Missing Information
If a field does not exist in the file, foobar2000 simply displays nothing. For example, if %composer% is missing:
%composer%
The output will be blank. To prevent blank parentheses or awkward spacing, you can use conditional logic.
Using Conditional Logic with $if()
The $if() function allows you to display text only when a field has a value:
$if(condition,then,else)
Example:
%artist% - %title%$if(%album%, (%album%),)
This will display the album in parentheses only if %album% exists. Otherwise, it leaves that part empty.
Practical Examples
Playlist Column
%artist% - %title%
Status Bar
Now Playing: %artist% – %title%
Window Title
%artist% – %title% | foobar2000
Useful Built-In Fields
These fields are always available and do not require files to be tagged:
Field
Meaning
%filename%
File name
%path%
Full file path
%codec%
Audio codec
%bitrate%
Bitrate
%samplerate%
Sample rate
Things Beginners Can Ignore
Nested functions
Math expressions
String replacement logic
Legacy syntax
Advanced grouping
Starter Setup for New Users
For someone just installing foobar2000, start with these basic formats:
%artist% - %title%
Now Playing: %artist% – %title%$if(%album%, (%album%),)
%artist% – %title%
Final Notes
%field% is the most important concept
$if() handles missing or optional data elegantly
Some data and fields depend upon components being installed
foo_tfsandbox
A good place to start is by installing foo_tfsandbox, this component allows you to experiment with title formatting expressions and fields before you implement them.
Title Formatting Fields:
$info(referenced_offset) ~ shows time in format mm:ss:ff where ff are CD frames. For the first track it will show nothing instead of 00:00:00 hydrogenaud.io/index.php?topic=118733.msg979344
Title Formatting Examples: Name | Pattern | Alignment
Display Dynamic Range: Album DR: $if2(%album dynamic range%,–) | Track DR: $if2(%dynamic range%,–) Bits (bit depth) | $ifequal([%__bitspersample%],0,16,%__bitspersample%) | Left
Cover Retriever is free software for Windows that makes it easy to add album cover art to mp3 and flac audio files on the computer.
Album cover finder
The search is based on data obtained from the file tags and processing through Google’s search engine. The drill is as easy as can be: you just have to select the folder that contains your audio files and let this app take care of the rest. You’ll have your covers in just seconds.
Tag finder
The tags search allows you to fill out audio file tags and find appropriate covers. The tags can be easily saved to the file by clicking one button. The search is based on the AcoustId service in order to get the best results.
Free open source GPL metronome (a “branch” of “Weird Metronome“) for Windows, Windows Mobile, & Pocket PC. Uses user-definable multi-voice WAV or MIDI (PC only) sounds for the beats. Has a blinker & allows user defined bpm & fine measure control.
Features:
Accurate metronome sound! No skips or variation in audio output!
Custom rhythm patterns: use it as a (very basic) drum machine
User definable beats per minute
Set measure to any length, with emphasis on any beat(s)
Over 40 MIDI voices, optionally available as WAV samples
Up to nine simultaneous voices per beat
Add your own WAV samples to use whatever sounds you like
Highly customizable parameters
Define HotKeys to perform functions such as increase tempo
Set the Maximum & minimum tempo available via the tempo slider
Right click in the new area and select “Add New UI Element…“
Select “Spider Monkey Panel” in the Utility section
You should now see a blank Spider Monkey panel and the message “Click here to open editor.“
Click on the panel to open the editor and click the “Files” button and select “Import” and navigate to the biography script folder, select the script file “biography.x.x.x.js” and click “Open“
Spek (IPA: /spɛk/, ‘bacon’ in Dutch) helps to analyse your audio files by showing their spectrogram. Spek is free software available for Unix, Windows and Mac OS X.
Features:
Supports all popular lossy and lossless audio file formats thanks to the FFmpeg libraries.
Ultra-fast signal processing, uses multiple threads to further speed up the analysis.
Shows the codec name and the audio signal parameters.
Allows to save the spectrogram as an image file.
Drag-and-drop support; associates with common audio file formats.
Auto-fitting time, frequency and spectral density rulers.