Music guide
How to rename and organize music files (MP3, FLAC, M4A) for Plex, Jellyfin, Navidrome and Kodi
A music library is the one part of a media server where file names matter least. Plex, Jellyfin, Navidrome and Kodi build artists, albums and tracks from the tags embedded in each file, so a perfectly named 01 - Give Life Back to Music.flac with empty tags can still end up under Unknown Artist.
Names and folders still matter to you: they keep the library browsable in a file manager, make duplicates easy to spot and give the server a fallback when a tag is missing. This guide covers both: the tags that decide how albums appear, and a folder and file naming convention that works everywhere, including compilations, multi-disc sets, featured artists, classical music and soundtracks.
The standard layout: Artist/Album (Year)/01 - Title
This convention works in every server and every file manager, and it is what most taggers produce by default:
Music/
├── Daft Punk/
│ └── Random Access Memories (2013)/
│ ├── 01 - Give Life Back to Music.flac
│ ├── 02 - The Game of Love.flac
│ ├── 03 - Giorgio by Moroder.flac
│ └── cover.jpg
└── Radiohead/
├── OK Computer (1997)/
│ ├── 01 - Airbag.flac
│ └── 02 - Paranoid Android.flac
└── In Rainbows (2007)/
└── 01 - 15 Step.flac- Artist folder = the Album Artist, not the track artist. Featured guests never get their own folder.
- Album folder = album title plus year in parentheses. The year is optional for servers (they read it from tags) but it sorts albums chronologically and separates same-named albums: Weezer released self-titled albums in 1994, 2001, 2008 and 2016, so
Weezer (1994)andWeezer (2001)avoid a clash. - Track file = two-digit track number, space, hyphen, space, title:
01 - Airbag.flac. The leading zero matters: without it, file managers sort10before2. Use three digits only for albums with 100 or more tracks. - One album per folder. Jellyfin requires it and the others behave better with it. Loose singles can go in a folder such as
Radiohead/Singles/, tagged with their own album name. - Artwork next to the tracks, named
cover.jpgorfolder.jpg.
Adding the artist to every file name (01 - Radiohead - Airbag.flac) is harmless and handy if tracks often leave their folder, for example on a USB stick. Just use one pattern for the whole library.
Characters to avoid in music file and folder names
Windows does not allow < > : " / \ | ? * in file names, and it silently strips trailing dots and spaces. Music titles break these rules all the time. Keep the real title in the tags and use a safe version on disk:
| Real title (keep in tags) | Safe file or folder name |
|---|---|
| AC/DC | AC_DC or ACDC |
| In the Flesh? (Pink Floyd) | In the Flesh.flac |
| Guardians of the Galaxy: Awesome Mix Vol. 1 | Guardians of the Galaxy - Awesome Mix Vol. 1 |
| What's Going On | What's Going On (apostrophes are fine) |
Classical titles get long fast. Windows paths are traditionally limited to 260 characters, so a deep folder plus a full work and movement title can fail to copy. Keep folder names short and let the tags carry the full title.
Compilations and Various Artists
A compilation is an album where tracks come from different artists: hit collections, soundtracks made of songs, label samplers. Plex's own guidance is to set Album Artist to Various Artists on every track while the Artist tag names the real performer. Also set the compilation flag (TCMP in MP3, COMPILATION=1 in FLAC, the Compilation checkbox in iTunes-style M4A tags); Navidrome uses it to keep the album together.
Music/
└── Various Artists/
└── Guardians of the Galaxy - Awesome Mix Vol. 1 (2014)/
├── 01 - Blue Swede - Hooked on a Feeling.mp3
├── 02 - Raspberries - Go All the Way.mp3
└── cover.jpg| Tag | Value on track 1 |
|---|---|
| Title | Hooked on a Feeling |
| Artist | Blue Swede |
| Album Artist | Various Artists |
| Album | Guardians of the Galaxy: Awesome Mix Vol. 1 |
| Compilation | 1 (yes) |
Here the track artist in the file name really helps: without tags, 01 - Hooked on a Feeling.mp3 does not say who sings it.
Never set Album Artist to each track's own performer on a compilation. The album then shatters into a dozen one-track albums scattered across artist pages. Plex users who hit this on their forums almost always trace it back to inconsistent Album Artist tags.
Not every album with several names on the cover is a compilation. A collaboration album such as Watch the Throne (2011) gets a single shared Album Artist like Jay-Z & Kanye West, used identically on every track and as the folder name.
Multi-disc albums
Keep every disc in one album folder and let the Disc number tag do the work. In the file names, put the disc number in front of the track number. Plex documents exactly this: track 2 of disc 3 becomes 302.
Pink Floyd/
└── The Wall (1979)/
├── 101 - In the Flesh.flac
├── 102 - The Thin Ice.flac
├── 103 - Another Brick in the Wall (Part 1).flac
├── 201 - Hey You.flac
└── 202 - Is There Anybody Out There.flacTwo other styles are common and also fine as long as the tags are right:
1-01 - In the Flesh.flac, close to what Picard's default naming script produces.- Disc subfolders:
The Wall (1979)/Disc 1/01 - In the Flesh.flac. Jellyfin explicitly allows them, though it notes that embedded metadata takes priority. Navidrome and Kodi only look at the tags anyway.
Do not write (Disc 1) or CD2 into the Album tag. The Wall (Disc 1) and The Wall (Disc 2) are two different albums to every server. Use the same Album tag on both discs and set Disc number to 1/2 and 2/2.
Featuring artists
The rule is simple: guests go in the track's Artist tag, never in the Album Artist and never in the folder name.
| Tag | Value |
|---|---|
| Title | Get Lucky |
| Artist | Daft Punk feat. Pharrell Williams & Nile Rodgers |
| Album Artist | Daft Punk |
| Album | Random Access Memories |
| Track | 8/13 |
On disk the file stays Daft Punk/Random Access Memories (2013)/08 - Get Lucky.flac. Putting the guest in the title instead (Get Lucky (feat. Pharrell Williams & Nile Rodgers)) also works; mixing both styles is what makes searching messy.
Picard can also write a multi-value Artists tag that lists each performer separately. Servers that read it can link the track to each artist's page, so Pharrell Williams shows the song without owning a fake album.
Classical music and soundtracks
Classical music
Classical breaks the one-artist model: there is a composer, a soloist, a conductor and an orchestra. No mainstream media server has a full classical mode, so the practical approach is to choose one rule and apply it everywhere:
- Album Artist = the composer (to browse by Bach, Beethoven, Mahler) or the main performer (to browse by Glenn Gould or Martha Argerich). Most people pick the composer.
- Composer = always filled, even if it repeats the Album Artist.
- Artist = the performers: soloist, then conductor and orchestra.
- Title = work plus movement, so tracks still make sense in a playlist.
Music/
└── Johann Sebastian Bach/
└── Goldberg Variations (Glenn Gould, 1981)/
├── 01 - Goldberg Variations, BWV 988 - Aria.flac
├── 02 - Goldberg Variations, BWV 988 - Variation 1.flac
└── cover.jpgPutting the performer and year in the album folder lets you keep several recordings of the same work side by side, such as Gould's 1955 and 1981 Goldberg Variations.
Soundtracks
Treat a soundtrack according to who made it:
- A score by one composer belongs to that composer:
Hans Zimmer/Interstellar (2014)/01 - Dreaming of the Crash.flac, with Album ArtistHans Zimmer. - A collection of songs by different artists is a compilation: Album Artist
Various Artists, as in the Awesome Mix example above. - Add the genre
Soundtrackto both kinds so you can filter or build a smart playlist of every film album in Plex, Jellyfin or Navidrome.
MusicBrainz, Picard, beets and Mp3tag: which tagger to use
MusicBrainz is an open, community-maintained music database. It separates an artist, a release group (the album as a concept), a release (one specific edition, with its exact track list and country) and a recording, and gives each one a unique MusicBrainz ID. Taggers that write these IDs into your files let Kodi, Jellyfin and others match the exact release instead of guessing from a name. Kodi's wiki stresses this point because names are not unique.
| Tool | Best for | How it identifies music | Renames and moves files | Platforms and cost |
|---|---|---|---|---|
| MusicBrainz Picard | Album-by-album tagging with a visual check of every match | MusicBrainz lookup from existing tags, or AcoustID audio fingerprints for untagged files | Yes, optional, through a naming script | Windows, macOS, Linux. Free and open source (GPL) |
| beets | Large libraries and automation from the command line | MusicBrainz autotagger, plus plugins for Discogs and AcoustID fingerprints | Yes, copies or moves imported files into its library using path templates | Anywhere Python runs. Free and open source |
| Mp3tag | Precise manual edits and batch fixes | Tag sources including MusicBrainz and Discogs, or tags read from file names | Yes, renames from tags and can create folders from a format string | Free on Windows, paid on macOS (Mac App Store) |
Picard in practice
- Drag an album folder into Picard.
- Click Cluster, then Lookup. For files with no useful tags, use Scan to identify them by fingerprint.
- Check the release on the right: the edition, the country and the track count must match what you own. A deluxe edition with bonus tracks is a different release.
- To let Picard name your files, open Options > Options > File Naming and enable Rename files when saving (and Move files when saving if you want it to build the folders).
- Click Save. Picard writes the tags, including Album Artist, disc numbers and MusicBrainz IDs.
beets path templates
beets decides where every file goes from the paths section of its config file. This matches the layout recommended in this guide:
directory: ~/Music
paths:
default: $albumartist/$album ($year)/$track - $title
comp: Various Artists/$album ($year)/$track - $title
singleton: Non-Album/$artist/$titleThen run beet import ~/Downloads/new-album and confirm each match.
Mp3tag format strings
In Mp3tag, select the files and use Convert > Tag - Filename with $num(%track%,2) - %title% to get 01 - Title.mp3. A backslash in the format string creates folders, so %albumartist%\%album% (%year%)\$num(%track%,2) - %title% sorts files into Artist/Album (Year). The reverse, Convert > Filename - Tag with %track% - %title%, fills empty tags from well-named files.
A common combination: Picard for identification and MusicBrainz IDs, Mp3tag to fix the odd tag Picard gets wrong. Choose beets instead if you add hundreds of albums at a time and like the terminal.
Where a file renamer like RenameFlow fits
Taggers rename files from tags that are already correct, through a scripting language. Often you just want a folder of messy names cleaned up:
02_daft_punk-the_game_of_love_(320kbps).mp3
→ 02 - The Game of Love.mp3
Track03.flac (inside Daft Punk/Random Access Memories (2013)/)
→ 03 - Giorgio by Moroder.flacRenameFlow is a web app that does exactly that part. It detects music from file names (and from folder names when the file name is generic), identifies the tracks with MusicBrainz, and shows you each match to confirm or change before anything happens. It then renames the files in place on your disk to 01 - Track Title.ext or another music preset; on the Pro plan you can write your own pattern with tokens like {track}, {artist}, {album} and {title}. It runs in Chrome, Edge or Opera on a desktop computer, with nothing to install, and your audio files are never uploaded.
Be clear about what it does not do:
- It does not write tags. Your server still needs Album Artist, track numbers and the rest, so tag with Picard, beets or Mp3tag.
- It does not create or move folders. You create
Artist/Album (Year)and move each album into it yourself, or let Picard or beets handle the folders.
A workflow that combines both
- Create the
Artist/Album (Year)folders and move each album into its own folder. - Rename the tracks to
01 - Title.extwith RenameFlow or your tagger. - Tag with Picard (or beets, or Mp3tag). If Picard's renaming is switched on, it will apply its own naming script on save, so let one tool own the file names.
- Add
cover.jpgto each album folder if the tagger did not embed artwork. - Scan the library in Plex, Jellyfin, Navidrome or Kodi. In Plex, make sure Prefer local metadata is on.
For the video side of the same server, see the Plex naming guide, the Jellyfin naming guide and the Kodi naming guide.
Common music library problems and how to fix them
| Symptom | Likely cause | Fix |
|---|---|---|
| One album shows up as two or more | Album or Album Artist tag differs between tracks (spelling, trailing space, empty value) | Make both tags identical on every track, then refresh the library |
| A compilation is scattered across many artists | Album Artist set to each track's performer | Set Album Artist to Various Artists and the compilation flag on every track |
| Tracks sort 1, 10, 11, 2 | Track numbers without a leading zero in the file names | Rename to 01, 02... and fill the Track number tag |
| Unknown Artist or Unknown Album | No tags at all (untagged rips, WAV files) | Tag with Picard using Scan; convert WAV to FLAC |
Album (Disc 1) and Album (Disc 2) side by side | Disc number written into the Album tag | Use one Album tag and set Disc number to 1/2, 2/2 |
| Plex ignores tags you just fixed | Prefer local metadata is off, or metadata was cached | Turn on Prefer local metadata, then use Refresh Metadata on the album |
| The wrong edition is matched | Several releases with the same title | Pick the exact release in Picard, or use Fix Match in Plex |
Clean up your track names in minutes
RenameFlow identifies your tracks with MusicBrainz and renames them to 01 - Track Title right on your disk. Nothing to install, and your music is never uploaded.
Try RenameFlow free