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.

    Updated November 22, 202612 min read

    Why tags matter more than file names

    Every common audio format can store metadata inside the file itself: title, artist, album, track number, cover art and more. That metadata travels with the file wherever you copy it, and it is what music servers read first.

    FormatTag systemWhat to know
    MP3ID3v2 (versions 2.3 and 2.4)ID3v2.3 is the most widely compatible. ID3v1 is a tiny legacy block you can ignore.
    FLACVorbis commentsFree-form field names such as ALBUMARTIST, DISCNUMBER, COMPILATION.
    Ogg Vorbis, OpusVorbis commentsSame fields as FLAC.
    M4A (AAC, ALAC)MP4 metadata atoms (the iTunes format)Well supported everywhere. Audio-only files named .mp4 should be renamed to .m4a for Jellyfin.
    WAVRIFF INFO or an ID3 chunkSupport varies between players. If you want reliable tags on lossless audio, convert to FLAC.

    How each server reads your music

    • Plex documents a Music/ArtistName/AlbumName/TrackNumber - TrackName.ext layout, but it matches albums from your Artist, Album, Album Artist and Track tags. In a music library, open Manage Library > Edit > Advanced and turn on Prefer local metadata so your own tags win over online data. When Plex matches the wrong album, its support pages send you to MusicBrainz to check the release, then to Fix Match.
    • Jellyfin says it plainly in its documentation: file names generally do not matter because the information is read from the embedded metadata. The file name is only used as the track title when no tag exists. It still expects one folder per album inside an artist folder.
    • Navidrome organizes the library entirely from tags. Folders are only for your own benefit.
    • Kodi builds its music library from embedded tags and ignores folder and file names. Its wiki recommends tagging with MusicBrainz Picard. Folders still matter for local artwork such as folder.jpg or cover.jpg in the album folder.

    The tags that decide how your library looks

    • Title: the track name, for example Get Lucky.
    • Artist: who performs this track, featured artists included.
    • Album Artist: who the album belongs to. This is the tag that keeps an album together, and it must be identical on every track.
    • Album: identical spelling on every track, including punctuation and spaces.
    • Track number and Disc number: ideally with totals (8/13, 1/2).
    • Date or Year: the release year of the edition you own.
    • Compilation flag: marks Various Artists albums.
    • MusicBrainz IDs: unique identifiers that let servers match the exact artist and release even when names collide.

    If one track of an album has Album Artist Daft Punk and another has it empty, most servers show two albums. When an album looks split, compare the Album and Album Artist tags of every track first.

    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:

    Recommended music folder structure
    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) and Weezer (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 sort 10 before 2. 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.jpg or folder.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/DCAC_DC or ACDC
    In the Flesh? (Pink Floyd)In the Flesh.flac
    Guardians of the Galaxy: Awesome Mix Vol. 1Guardians of the Galaxy - Awesome Mix Vol. 1
    What's Going OnWhat'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.

    A compilation on disk
    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
    TagValue on track 1
    TitleHooked on a Feeling
    ArtistBlue Swede
    Album ArtistVarious Artists
    AlbumGuardians of the Galaxy: Awesome Mix Vol. 1
    Compilation1 (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.

    Two discs, one folder
    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.flac

    Two 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.

    TagValue
    TitleGet Lucky
    ArtistDaft Punk feat. Pharrell Williams & Nile Rodgers
    Album ArtistDaft Punk
    AlbumRandom Access Memories
    Track8/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.
    Composer as Album Artist, performer and year in the album folder
    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.jpg

    Putting 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 Artist Hans 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 Soundtrack to 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.

    ToolBest forHow it identifies musicRenames and moves filesPlatforms and cost
    MusicBrainz PicardAlbum-by-album tagging with a visual check of every matchMusicBrainz lookup from existing tags, or AcoustID audio fingerprints for untagged filesYes, optional, through a naming scriptWindows, macOS, Linux. Free and open source (GPL)
    beetsLarge libraries and automation from the command lineMusicBrainz autotagger, plus plugins for Discogs and AcoustID fingerprintsYes, copies or moves imported files into its library using path templatesAnywhere Python runs. Free and open source
    Mp3tagPrecise manual edits and batch fixesTag sources including MusicBrainz and Discogs, or tags read from file namesYes, renames from tags and can create folders from a format stringFree on Windows, paid on macOS (Mac App Store)

    Picard in practice

    1. Drag an album folder into Picard.
    2. Click Cluster, then Lookup. For files with no useful tags, use Scan to identify them by fingerprint.
    3. 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.
    4. 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).
    5. 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:

    config.yaml
    directory: ~/Music
    paths:
      default: $albumartist/$album ($year)/$track - $title
      comp: Various Artists/$album ($year)/$track - $title
      singleton: Non-Album/$artist/$title

    Then 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:

    Before and after
    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.flac

    RenameFlow 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

    1. Create the Artist/Album (Year) folders and move each album into its own folder.
    2. Rename the tracks to 01 - Title.ext with RenameFlow or your tagger.
    3. 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.
    4. Add cover.jpg to each album folder if the tagger did not embed artwork.
    5. 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

    SymptomLikely causeFix
    One album shows up as two or moreAlbum 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 artistsAlbum Artist set to each track's performerSet Album Artist to Various Artists and the compilation flag on every track
    Tracks sort 1, 10, 11, 2Track numbers without a leading zero in the file namesRename to 01, 02... and fill the Track number tag
    Unknown Artist or Unknown AlbumNo 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 sideDisc number written into the Album tagUse one Album tag and set Disc number to 1/2, 2/2
    Plex ignores tags you just fixedPrefer local metadata is off, or metadata was cachedTurn on Prefer local metadata, then use Refresh Metadata on the album
    The wrong edition is matchedSeveral releases with the same titlePick 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

    Frequently asked questions

    How do I rename MP3 files with artist and title?
    If the files are already tagged, a tagger can build names from the tags: in Mp3tag use Convert > Tag - Filename with a format such as $num(%track%,2) - %artist% - %title%, and in Picard enable Rename files when saving. If the tags are empty or wrong, fix them first, or use a renamer such as RenameFlow that identifies tracks from their current names with MusicBrainz and lets you confirm each match.
    What is the best music file naming convention?
    The most widely used convention is Artist/Album (Year)/01 - Title.ext, with a two-digit track number and the Album Artist as the top folder. For multi-disc albums, prefix the disc number (101, 201), and for compilations use a Various Artists folder with the performer in the file name. Whatever you choose, apply it to the whole library.
    Does Plex use file names or tags for music?
    Plex relies mostly on embedded tags (Artist, Album, Album Artist, Track) combined with online matching. Turn on Prefer local metadata in the music library's advanced settings so your tags take priority. Plex still documents an Artist/Album/01 - Track.ext layout, which helps as a fallback.
    What music folder structure does Jellyfin need?
    Jellyfin expects an artist folder containing one folder per album, with only that album's tracks inside. Its documentation says file names generally do not matter because the information comes from embedded metadata, so correct tags matter more than names. Multi-disc albums can stay in one folder, or use disc subfolders, as long as the disc number tags are set.
    How do I rename FLAC files from their tags?
    FLAC files store Vorbis comments, which Picard, beets and Mp3tag all read. In Mp3tag, run Convert > Tag - Filename with $num(%track%,2) - %title%. In beets, set a paths template and run beet move. In Picard, set the naming script under Options > File Naming and save.
    MusicBrainz Picard vs beets vs Mp3tag: which should I use?
    Picard is the easiest way to match albums against MusicBrainz with a visual check, free on Windows, macOS and Linux. beets does the same from the command line and suits very large libraries. Mp3tag is a manual editor for batch fixes, free on Windows and paid on macOS. Many people combine Picard with Mp3tag.
    Where do compilation albums go in a music library?
    Put them in a Various Artists folder, one subfolder per album, and set Album Artist to Various Artists on every track while the Artist tag keeps the real performer. Also set the compilation flag. A soundtrack of songs by different artists is a compilation; a score by one composer belongs in that composer's folder.
    Should multi-disc albums go in separate folders?
    No, keep them in one album folder and set the Disc number tag on every track. Prefix track numbers with the disc (101 - Title, 201 - Title) or use 1-01 style names. Disc subfolders also work in Jellyfin, but never put Disc 1 or CD2 in the Album tag, or servers will show separate albums.