Duplicate files & photos

How to Find and Delete Duplicate Songs on a Mac in 2026 (Step-by-Step)

If your Mac's storage is quietly filling up, your music library may be one of the culprits. Knowing how to find duplicate songs on Mac can free up anywhere from a few hundred megabytes to several gigabytes, depending on how long your library has been accumulating. Whether you use Apple Music, have an old iTunes-era folder, or import tracks manually from multiple sources, duplicates tend to pile up without any obvious warning. This guide walks through every reliable method to locate and delete them safely in 2026, covering macOS Sequoia and Tahoe on both Apple Silicon and Intel Macs.

Why Duplicate Songs Accumulate on a Mac

There are several common reasons your music library ends up with duplicates:

  • Importing the same album multiple times from different sources (a ripped CD, a download, a file transfer from an old Mac).
  • Restoring from a Time Machine backup after already syncing with iCloud Music Library, which can create a second copy of every track.
  • Dragging MP3s or FLACs into your Music app library while the original files still live in a separate folder like ~/Downloads or an external drive you once copied music from.
  • Converting tracks between formats (for example, AAC and ALAC versions of the same album coexisting in your library).
  • Third-party sync tools or scripts that didn't deduplicate before writing files into ~/Music/Music/Media.

Understanding the source helps you avoid recreating duplicates after you delete them.

Where macOS Stores Your Music Files

Before deleting anything, it helps to know where the files actually live. Apple Music (the successor to iTunes) keeps its data in a predictable folder structure:

What it is Default path Typical size range
Music Media folder (songs, podcasts) ~/Music/Music/Media/Music/ 5 GB – 200+ GB
Apple Music library database ~/Music/Music/Music Library.musiclibrary 10 MB – 500 MB
iTunes legacy media (pre-Catalina migration) ~/Music/iTunes/iTunes Media/Music/ 0 – several GB
Podcast audio cache ~/Music/Music/Media/Podcasts/ 100 MB – 10 GB
Downloaded Apple Music tracks (DRM) ~/Music/Music/Media/Music/ Counted in the same folder

If you moved your library at some point, open the Music app, go to Music > Settings > Files, and check the "Music Media folder location" field to find the actual current path.

Method 1: Use Apple Music's Built-In Duplicate Finder

The Music app ships with a built-in tool to surface obvious duplicates. It is not perfect — it matches on song title and artist only — but it covers the majority of cases without any third-party software.

  1. Open the Music app.
  2. In the sidebar, click Library under your account, then choose Songs to see a flat list of all tracks.
  3. Hold the Option key and click the File menu. The "Library" submenu will show a hidden item: Show Duplicate Items. (Without Option, this item does not appear.)
  4. A filtered view appears showing every set of tracks that share the same title and artist. Scroll through the list to review them.
  5. To delete a duplicate, right-click the track and choose Delete from Library. When prompted, choose Move to Trash if you also want to remove the file from disk — otherwise the file stays in ~/Music/Music/Media/Music/ even though it disappears from your library view.

Tip: Before deleting, check the bit rate and file format. Right-click a track and choose Get Info, then look at the File tab. Keep the higher-quality version (higher bit rate, or lossless ALAC over lossy AAC).

Method 2: Use the Terminal to Find Exact Byte-for-Byte Duplicates

Apple Music's built-in tool only matches on metadata, so two files with slightly different titles ("Hotel California" vs "Hotel California (Remaster)") won't be flagged even if the audio is identical. The Terminal approach uses checksums to find exact file duplicates regardless of filename or tags.

Open Terminal (in /Applications/Utilities/Terminal.app) and run:

find ~/Music/Music/Media/Music -type f \( -name "*.m4a" -o -name "*.mp3" -o -name "*.flac" -o -name "*.aac" \) -print0 | xargs -0 md5 | sort | awk -F'[()= ]' 'seen[$NF]++{print $0}' > ~/Desktop/music_duplicates.txt

This writes a list of duplicate files to ~/Desktop/music_duplicates.txt. Open that file in TextEdit to review the paths before deleting anything. Once you're confident a file is a genuine duplicate, you can move it to Trash from Finder using Cmd+Delete.

Note: DRM-protected tracks downloaded from Apple Music are encoded with a user-specific key, so they will not produce matching checksums even when they are the same song. The Terminal method works best for files you own outright (ripped CDs, purchased downloads, imported FLACs).

Method 3: Check for a Stranded iTunes Legacy Folder

If you upgraded from macOS Mojave or earlier, your Mac may have both an old ~/Music/iTunes/ folder and a new ~/Music/Music/ folder. macOS migrated the library database but sometimes left the original media files in place, effectively doubling your storage use.

Check whether this applies to you:

  1. In Finder, press Cmd+Shift+G and navigate to ~/Music/iTunes/iTunes Media/Music/.
  2. If this folder exists and contains artist subfolders, open a second Finder window pointing to ~/Music/Music/Media/Music/.
  3. Compare the artist and album folders. If both folders contain the same content, the iTunes folder is a redundant leftover.
  4. Before deleting the iTunes folder, confirm that Music's preferences point to the new path: Music > Settings > Files > Music Media folder location should show a path inside ~/Music/Music/, not ~/Music/iTunes/.
  5. Once confirmed, you can safely move ~/Music/iTunes/iTunes Media/Music/ to the Trash. Keep the rest of the iTunes folder (including iTunes Library.xml) for a while as a backup, then empty the Trash after verifying everything still plays.

How to Safely Delete Duplicate Songs Without Breaking Your Library

Deleting the wrong copy — or deleting from Finder without telling the Music app — can leave your library with broken references (the dreaded exclamation mark next to a track). Follow this order to stay safe:

  1. Always delete from within the Music app when possible, using right-click > Delete from Library > Move to Trash. This removes both the library entry and the file atomically.
  2. If you delete from Finder directly, open Music afterward and look for tracks with a gray exclamation mark. Right-click each one and choose Delete from Library to clean up the dangling reference.
  3. Do not empty the Trash immediately. Let the library sit for a day and spot-check that your playlists still work before permanently freeing the space.
  4. If you use iCloud Music Library, give the app a few minutes to sync the deletion to iCloud before proceeding. Deleting too fast can cause the cloud copy to restore a file you just removed.

For a broader look at what else might be consuming space beyond your music library, the guide on what is taking up space on your Mac covers the full picture, including system data and app caches that Music doesn't touch.

How Much Space Can You Expect to Recover?

Results vary widely based on how the duplicates accumulated:

  • Metadata duplicates (same song, different tags): usually small — a few dozen to a few hundred files, recovering 500 MB to 2 GB.
  • Format duplicates (ALAC + AAC versions of the same album): a full album in ALAC runs 300–500 MB, so a large collection could have 10–20 GB hiding here.
  • Stranded iTunes legacy folder: this is the biggest win — if your entire pre-Catalina library was left behind, you may reclaim a copy of every gigabyte you've ever had in iTunes.
  • Podcast audio: downloaded episodes in ~/Music/Music/Media/Podcasts/ can quietly grow to 5–10 GB and are easy to forget about.

If you want to audit all of these locations at once and see what's safe before committing to any deletion, a tool like Crumb can scan your full library and surface duplicates, large files, and stranded legacy folders in a single view.

Preventing Duplicates from Coming Back

A few settings and habits keep duplicates from rebuilding over time:

  • In Music, go to Music > Settings > Files and enable "Copy files to Music Media folder when adding to library." This centralizes everything in one location and makes future audits straightforward.
  • When you import a new album, use File > Import instead of drag-and-drop from Finder. The app deduplicates on import when your library is well-organized.
  • If you sync across multiple Macs via iCloud Music Library, avoid importing local files on more than one machine — let iCloud be the single source of truth.
  • After any Time Machine restore, check for duplicates before the library grows again. Restores are the most common trigger for sudden doubling of music storage.

You can pair this cleanup with a broader storage audit — see the guide to finding duplicate files on Mac for free for techniques that apply to documents, photos, and downloads as well.

Reclaim your disk in one click

Crumb audits your whole Mac, tells you what's safe to delete, and frees the space in seconds — private, local, and Apple-notarized.

Download Crumb for macOS

Frequently asked questions

Is it safe to delete duplicate songs from the Music app on Mac?
Yes, as long as you delete from within the Music app using right-click > Delete from Library > Move to Trash. This removes both the library entry and the physical file cleanly. Avoid deleting files directly from Finder while the Music app is open, as it can leave broken references in your library.
Where does Apple Music store song files on a Mac?
By default, Apple Music stores your songs in ~/Music/Music/Media/Music/, organized in subfolders by Artist and then Album. You can confirm the exact path in Music > Settings > Files under 'Music Media folder location'.
Will deleting duplicate songs affect my iCloud Music Library?
Yes. If iCloud Music Library is enabled, deleting a song on your Mac will remove it from iCloud and all other devices signed in to the same Apple ID. Make sure you genuinely want to delete the track everywhere before proceeding, and wait for the sync to complete before emptying the Trash.
How much storage can I recover by removing duplicate songs?
It depends on how duplicates accumulated. Metadata duplicates typically recover a few hundred MB to 2 GB. If an entire legacy iTunes media folder was left behind after a macOS upgrade, you could reclaim a full copy of your pre-existing library — potentially 10 GB or more.
Does the built-in Apple Music duplicate finder work for all file types?
The built-in Show Duplicate Items feature matches on title and artist metadata only, so it works for MP3, AAC, ALAC, and FLAC files equally. However, it will not catch duplicates where the metadata differs slightly (for example, a remastered version tagged differently). For exact byte-level duplicates, the Terminal md5 method described above is more thorough.