How to Find Duplicate Music Files on a Mac the Safe Way
Apple's Music app has its own duplicate finder, matched by metadata, not file content — a different tool from a byte-for-byte duplicate scan, and the two can disagree on what counts as a duplicate.

Duplicate music tends to build up quietly: the same album imported twice from two different drives over the years, a track downloaded again after a library migration that didn't fully carry over, a podcast episode or audiobook chapter saved in two folders "just in case." None of it looks dramatic one file at a time, but across a music collection built up over a decade, it's a genuine, boring chunk of disk space.
Two different tools, two different definitions of "duplicate"
This is the detail worth understanding before you go looking: macOS actually gives you two separate ways to find duplicate music, and they don't define "duplicate" the same way.
Apple's own Music app has a built-in duplicate finder, reached through File → Library → Show Duplicate Items, or — held down Option first — Show Exact Duplicate Items. Apple's own support documentation defines an "exact" duplicate as a pair of tracks where the song name, artist, album and version all match. That's a metadata match, not a content match: it compares the tags attached to each track, not the actual audio bytes. Two files with identical tags but genuinely different underlying audio — say, one ripped at a lower bitrate, or the same purchase re-downloaded at a different quality tier — would be flagged as "exact duplicates" by Music's own definition, even though their content isn't actually identical.
A content-based scan, the kind AI Mac Cleaner's My Clutter tool runs, works the opposite way: it ignores filenames and tags entirely and compares what's actually inside each file — same logical size, then the same first 64 KB, then, only if both match, the full SHA-256 hash of the entire file. Two files only count as duplicates here if their content is genuinely byte-for-byte identical. That catches a different case from Music's own tool: the same exported or downloaded file copied twice, under a different name or in a different folder, where the tags might not even match perfectly but the actual bytes are identical.
Neither definition is wrong — they're just answering different questions. If you want Music's own curated library cleaned up by its metadata, its built-in tool is the right one. If you're trying to find literal duplicate files sitting around your Mac's folders — including outside Music's own library entirely — a content-based scan is the one that actually answers that.
Where your actual song files live
Since macOS Catalina, Apple's Music app splits your library into two separate pieces: a Music Library.musiclibrary package, which holds the database tracking everything in your library, and a Media.localized folder sitting alongside it, which — per Apple Community reports, since this isn't something Apple documents in detail — is where the actual audio files themselves are stored, by default inside ~/Music/Music/Media.localized/Music/. The important distinction: unlike a .musiclibrary file, Media.localized is a plain, ordinary folder structure, not a locked bundle — which matters for what a content-based scanner can actually see inside it.
Matching by actual content, not a guess
AI Mac Cleaner's My Clutter tool scans your Downloads, Documents, Desktop, Movies, Music and Pictures folders for files of at least 1 MB, comparing content as described above. Because Media.localized is a plain folder rather than a package, loose audio files sitting inside your Music library's own media folder are within reach of the scan the same way any other file in ~/Music is — unlike, say, a Photos library, where the originals live inside a package the scan deliberately doesn't open. When it finds a duplicate group, it orders it so the most likely original comes first — preferring a name without a "copy" or "(1)"-style marker, then the shorter file path — and keeps that one automatically. You're only ever asked about the extras.
The honest limit here too
Content-hash matching only flags files that are byte-for-byte identical. Two different encodes of the same song — an MP3 re-ripped at a different bitrate, a lossless version purchased again after originally buying the compressed one, a track re-exported after an edit — will never match by content, even though a human would call them "the same song." That's the mirror image of Music's own tool's limitation: Music can flag two genuinely different files as duplicates by matching tags alone, while a content scan can miss two genuinely identical-sounding tracks because their underlying bytes differ. Treat the two as complementary rather than redundant, and a result from either one as worth a quick listen before you clear anything you're not sure about.
What it skips, on purpose
My Clutter doesn't descend into macOS packages — which, as noted above, rules out Music Library.musiclibrary itself (though not the separate media folder sitting next to it) — and it skips iCloud files that haven't actually been downloaded to your Mac yet, since checking their content would mean force-downloading them just to compare.
Removal still goes through the Trash
Whichever tool flags a duplicate, clearing it through AI Mac Cleaner goes through the same Trash-only remover as every other removal in the app — nothing deleted directly, and a protected-path list blocks removal from locations that should never be touched regardless of what a scan finds. If a "duplicate" turns out to be a track you actually wanted, it's one Trash restore away.
For the same content-based approach applied to other media types, see finding duplicate photos and finding duplicate videos — same underlying tool, same honest limits, different file type.
AI Mac Cleaner has a 7-day free trial with every feature unlocked and no card required, plans from $6.99/mo after.
Frequently asked questions
What's the difference between Music's "Show Duplicate Items" and a content-based scanner?
Music's tool matches by metadata — song name, artist, album and version — not by actual file content. A content-based scan like AI Mac Cleaner's My Clutter compares the real bytes of each file through size and hash checks, which can catch or miss different cases than a metadata match would.
Will a content-based scan find two different encodes of the same song?
No. A re-ripped copy at a different bitrate, or a lossless repurchase of a track you originally bought compressed, produces different file content and a different hash even though it's "the same song" — content-hash matching only flags files that are byte-for-byte identical.
Does My Clutter scan inside my Apple Music library?
It can reach loose audio files inside the Media.localized folder, since that's a plain folder rather than a locked package, but not the Music Library.musiclibrary database file itself, which the scan doesn't open.
Will it ever delete every copy of a song?
No — My Clutter always keeps one copy from each duplicate group automatically, preferring a file without a "copy" or numbered marker in its name. You're only ever asked about the extra copies, and removal goes to the Trash, not straight deletion.
Which is better for cleaning up my library, Music's own tool or AI Mac Cleaner?
Neither replaces the other — they answer different questions. Music's built-in duplicate finder is the right tool for cleaning up your curated library by metadata; a content-based scan is the right one for finding literal duplicate files anywhere on your Mac, including outside Music's library entirely.