How to Organize Your Media Library for Plex — Complete Guide
Plex is only as good as the files you feed it. When your media is named correctly and organized into the right folder structure, Plex automatically downloads the correct posters, descriptions, ratings, and episode data. When it is not, you get wrong matches, missing items, and hours of manual fixing. This guide covers the naming conventions and folder structures for every media type Plex supports.
The Golden Rule
Plex matches files to online databases by parsing the filename. The closer your filename matches the official title and release year on TheMovieDB, TheTVDB, or MusicBrainz, the more likely Plex is to match it correctly on the first scan. Always include the year for movies and the season/episode numbers for TV shows.
Movies
Naming Convention
Each movie should be in its own folder, named with the movie title and year in parentheses:
Movies/
The Matrix (1999)/
The Matrix (1999).mkv
Inception (2010)/
Inception (2010).mp4
Spider-Man Across the Spider-Verse (2023)/
Spider-Man Across the Spider-Verse (2023).mkv
The folder-per-movie structure is not strictly required, but it is strongly recommended. It keeps related files (subtitles, extras, featurettes) organized and prevents naming conflicts.
What to Include in the Filename
- Movie title — Use the official English title as listed on TheMovieDB.
- Year — In parentheses. This disambiguates remakes and films with identical titles (e.g., "Dune (1984)" vs "Dune (2021)").
- File extension —
.mkv,.mp4,.avi, etc.
What to Avoid
- Do not include resolution, codec, or quality tags in the filename (e.g., "1080p.BluRay.x264"). Plex reads this metadata from the file itself.
- Do not use underscores or dots as word separators. Use spaces.
- Do not put multiple movies in the same folder.
Subtitles
Place subtitle files in the same folder as the movie, using the same base name plus a language code:
The Matrix (1999)/
The Matrix (1999).mkv
The Matrix (1999).en.srt
The Matrix (1999).es.srt
TV Shows
Naming Convention
TV shows require a three-level folder structure: show name, season folder, and episode files with SxxExx numbering:
TV Shows/
Breaking Bad/
Season 01/
Breaking Bad - S01E01 - Pilot.mkv
Breaking Bad - S01E02 - Cat's in the Bag.mkv
Season 02/
Breaking Bad - S02E01 - Seven Thirty-Seven.mkv
The Office (US)/
Season 01/
The Office (US) - S01E01 - Pilot.mkv
Key Rules
- Use
S01E01format, not1x01. Both work, butSxxExxis more reliable. - Season folders must be named "Season 01", "Season 02", etc. Use leading zeros.
- Include the year in the show folder name only if needed to disambiguate (e.g., "The Office (US)").
- For specials, use "Season 00" and the special episode number from TheTVDB.
- Multi-episode files: use
S01E01-E02orS01E01E02.
Common TV Naming Mistakes
Wrong: breaking.bad.s01e01.720p.bluray.mkv — Plex might parse this correctly, but the dots and extra tags increase the chance of a mismatch.
Right: Breaking Bad - S01E01 - Pilot.mkv — Clean, unambiguous, matches every time.
Music
Naming Convention
Music in Plex relies heavily on embedded tags (ID3 for MP3, Vorbis for FLAC/OGG). The folder structure matters less than the tags, but a clean structure helps:
Music/
Pink Floyd/
The Dark Side of the Moon (1973)/
01 - Speak to Me.flac
02 - Breathe.flac
03 - On the Run.flac
Radiohead/
OK Computer (1997)/
01 - Airbag.flac
Tagging Tips
- Use a tag editor like MusicBrainz Picard to standardize your tags before adding music to Plex.
- Ensure Album Artist, Album, Track Number, and Track Title are filled in correctly.
- Plex supplements tags with data from MusicBrainz and other sources, but correct embedded tags produce the best results.
- Avoid "Various Artists" as the album artist — use the compilation flag instead and set individual track artists.
Photos
Folder Structure
Plex photo libraries use folder names as album names. The most common organizational approach is by date:
Photos/
2024/
2024-01 January/
IMG_0001.jpg
IMG_0002.jpg
2024-02 February/
IMG_0100.jpg
2025/
2025-06 June Vacation/
DSC_0001.jpg
Alternatively, organize by event:
Photos/
Family Reunion 2024/
IMG_0001.jpg
Wedding/
DSC_0001.jpg
Everyday/
2024-01-15_001.jpg
EXIF Data
Plex reads EXIF metadata from JPEG and TIFF files, including date taken, camera model, GPS coordinates, and orientation. Make sure your photos have intact EXIF data. Some image editors strip EXIF when saving, and some cloud services strip GPS data for privacy. Photos without EXIF date data will be sorted by file modification date, which is often inaccurate after copying files between drives.
Supported Formats
Plex supports JPEG, PNG, TIFF, and GIF for photos. RAW files (CR2, NEF, ARW, DNG) are not directly supported in most Plex clients. If you shoot RAW, keep both the RAW and a JPEG export in your library, or convert to JPEG for Plex.
General Organizational Tips
Keep Media Types Separate
Never mix movies, TV shows, music, and photos in the same folder or library. Each media type has its own scanner and metadata agent. A movie file inside a TV show library will be ignored or incorrectly matched.
Use a Consistent Structure
Pick one organizational scheme and stick with it. If you start putting movies in folders with years, do it for every movie. If you organize photos by date, do it for every photo folder. Consistency makes it easier to add new content and troubleshoot problems.
Avoid Special Characters
Some characters can cause issues across operating systems or network shares. Avoid colons, backslashes, and angle brackets in folder and file names. If a movie title contains a colon (like "Spider-Man: Homecoming"), you can either omit it or replace it with a dash.
Fix Mismatches Manually
If Plex matches a file incorrectly, you do not necessarily need to rename the file. In the Plex web interface, click the three-dot menu on any item, select "Fix Match," and search for the correct title. This creates a manual override that persists through future scans. However, fixing the filename is always the better long-term solution.
Metadata Agents
Plex uses metadata agents to look up information about your media. The default agents are:
- Movies: Plex Movie agent (uses TheMovieDB and IMDb data).
- TV Shows: Plex TV Series agent (uses TheTVDB and TheMovieDB).
- Music: Plex Music agent (uses MusicBrainz, AllMusic).
- Photos: Plex Photo Scanner (reads EXIF data from files).
In most cases, the default Plex agents work best. You can change the agent for a specific library in its settings, but the defaults are the most reliable and well-maintained.
Tools That Help
FileBot: A desktop application that automatically renames and organizes movie and TV files according to Plex naming conventions. It queries TheMovieDB and TheTVDB to determine the correct title and formatting.
MusicBrainz Picard: An open-source music tagger that identifies tracks by audio fingerprint and applies correct metadata from the MusicBrainz database.
Tiny Media Manager: A media management tool that can rename files, download metadata, and organize your library to match Plex's expected structure.
Spending an hour organizing your library before adding it to Plex saves many hours of fixing mismatches later. Get the naming right from the start, and Plex does the rest.
Phlix — The Photo Browser for Plex
If you use Plex for photos, Phlix gives you a chronological timeline, year scrubber, 4K AirPlay slideshows, and offline downloads. Free to browse, Pro from $6.99/yr.
Download Phlix FreeiOS 17+ · Works with any Plex Media Server