Clean up duplicate songs in your Mac Music library
Use Music.app's built-in duplicate finder, then catch what it misses with a byte-level scan.
Music.app (and iTunes before it) was famously bad at preventing duplicate imports. Plug in an iPod, sync it back, re-import a CD you’d already ripped, and Music quietly creates a second track. After a few years your library is bloated with duplicates that show up in shuffle and play counts.
The built-in fix: Show Duplicate Items
- Open Music.
- Go to File > Library > Show Duplicate Items. You’ll see a filtered view of songs with matching Name and Artist.
- For stricter matching, hold Option and click File > Library > Show Exact Duplicate Items. This adds Album and Duration to the match.
- Sort by Name, Album, or Date Added.
- Right-click duplicates and choose “Delete from Library.” When Music asks, choose “Move to Trash” so the underlying file actually gets removed.
This handles songs Music knows about. It does not handle:
- Loose audio files in Finder that were never imported.
- Tracks where the artist is spelled differently in tags (“The Beatles” vs “Beatles, The”).
- Files in old
iTunes Musicfolders left over from a previous library that you imported partially. - Songs in two different formats (MP3 + M4A) of the same audio.
Catch the rest with Dupe
Dupe scans your Music folder at the filesystem level and finds byte-identical files regardless of tags.
- Download Dupe and open it.
- Click “Add Folder” and add
~/Musicplus any other folders where audio files might live. - Click “Scan.” Every
.mp3,.m4a,.aac,.flac,.wav, and.alacfile gets a SHA-256 hash. - Review duplicate groups by file path.
- Move copies to the Trash.
A note on order: clean Music.app’s library first with Show Duplicate Items so the library stays consistent. Then run Dupe over ~/Music to catch the loose files and old library remnants that Music.app never saw.
What Dupe won’t do:
- It won’t match different encodings of the same song. An MP3 and its AAC version are different bytes.
- It won’t modify your Music library database.
- It won’t touch system audio files like the macOS startup sound.
Safety:
- Trash-only deletion, 30-day recovery window.
- The Music.app database is excluded.
- Hidden folders and macOS metadata are skipped.
Two passes — one inside Music.app, one with Dupe — usually clears the entire duplicate backlog from years of accumulated imports.
More Dupe tips
-
Apple Photos Duplicates album — what it catches and what it misses
The Photos app Duplicates album is handy, but it has real limits. Here's what it finds, what it doesn't, and how to fill the gaps.
-
Clean up leftover files from uninstalled apps on Mac
Dragging an app to the Trash doesn't remove all its data. Here's where the leftovers live and how to clean them.
-
Clean up your Mac without buying a cleaner app
Most paid cleaner apps do things macOS already does. Here's a free, manual workflow that's just as effective.
-
A no-bullshit guide to cleaning up your Mac's disk
Skip the SEO bait and the sketchy cleaner apps. Here's what actually works to reclaim disk space on a Mac.