How to Easily Remove Duplicate Tracks on iTunes [Windows]

Jim Henderson 05-04-2010

<firstimage=”//” />How to Easily Remove Duplicate Tracks on iTunes [Windows] ituneslogoToday, I’m going to cover how to remove duplicate tracks from iTunes. During my recent Windows 7 rebuild, I made a number of strategic errors. Nothing devastating, unless you include the mess I seem to have got my once pristine iTunes library in. I’ve ended up with everything I need”¦ and more. I’m going to talk you through what you can do to remove duplicates in iTunes.


I’m a Windows guy, so some of your options will certainly differ if you’re one of those Apple types. Not that there’s anything wrong with that.

Remove Duplicates from iTunes – Before we start

We’ve talked about iTunes before. A lot! Relating to this particular subject, David Pierce explained how to use TidySongs How To Organize Your iTunes Collection With TidySongs Read More to manage iTunes, and more broadly, Jackson produced a great eBook to help with all your iTunes needs.

How did this happen?

If only I knew. It’s a combination of recopying files to the machine after the rebuild, using the wonderful SharePod to rebuild the library, and some peculiar choices in the iTunes options.

Never mind. That’s ancient history, and there are many paths to this place. Doubtless, you took a different one.


Things to check

There are two things you want to make sure of before proceeding to remove duplicates from iTunes, and one general word of warning.

First, the warning. Please, please ensure you have backups in place in case any of this goes wrong. You are going to delete files, and you want to be sure you can get them back if nothing else.

If you are allowing iTunes to manage your files, you can just copy the entire iTunes folder (and all the subfolders) somewhere else. If you are managing the files yourself, take a look and be sure where you stand. Missing tracks is much worse than duplicate tracks.

remove duplicates from iTunes


There are two different ways that you can end up with duplicate tracks listed in iTunes. We ware here to remove actual duplicates. But first you need to check if you have duplicate items listed, but they are actually the same files. You can do this by sorting the tracks in name order (click on the Name column header), then right clicking one of the duplicates, and choosing Get Info.

remove duplicates from iTunes

Click on the Summary tab, and take a look at the file path after the Where: and then click on the Previous and Next buttons and compare the duplicates. Make sure the file names are at least a little bit different, or deleting one will delete both. In my case I have an Africa.mp3 and an Africa(1).mp3, for example.

The other thing to watch for is that the tracks are not near-duplicates. You know the stuff. You have the studio version, the live one, the unplugged one from the Nineties, the extended dance remix”¦ be sure you really want to get rid of those. Oh, lose the dance one. Go on.


Search and Eliminate

You probably already know you have some, and sorting your library by Title will certainly make it more apparent. If you have a small library, perhaps that’s all the help you need. It’s not going to work for me. I’ll still be working on it next year.

remove duplicates from iTunes

The first level of assistance is to ask iTunes to show you the duplicates. That’s easy. With your library still sorted by Title, click on File | Display Duplicates. This was when I started to get concerned. That’s a LOT of duplicate tracks.

If you want to reduce the work here a little, you can also ask iTunes to take a little more care with the selection. By default it’s only going to check the titles, but if you click on the Show All button to put things back to normal, and then go back through the process but this time hold the Shift key down while you click on File then you’ll get a Display Exact Duplicates option. For me, this made no difference at all but your mileage will vary depending on how you got the duplicates in the first place.


After that, the process consists of deleting the one (or more if necessary) duplicate files that you don’t want.

Getting help with the heavy lifting

How to Easily Remove Duplicate Tracks on iTunes [Windows] dupeelimlogoI investigated making use of third-party products to take the back-breaking repetition out of the process. Dupe Eliminator isn’t a free product, but the trial version will let you make use of the comprehensive duplicate selection criteria. Unfortunately, it won’t then remove all the duplicates automatically. I can understand that though, because why else would you purchase the full version? I moved on.

You Apple folk also have a whole stack of Apple Script options, but I can’t get near those.

My next option was a free piece of software called Duplicate Music File Finder. This one works outside iTunes, so there’s a need to clean up the resulting dead links afterwards. Hold your breath, start the app, point it at your music files, and let it check them out.

easy way to remove multiple duplicates in itunes

Just before we go further, a reminder. I’m trying to help, but the risk is yours. You need to have backed up all your music before you start.

Click the Check All button if you are happy that the duplicates have been selected, and then click on Delete Checked Files to actually remove them. Click Yes to confirm.

easy way to remove multiple duplicates in itunesThe application behaved for me exactly as expected, and all the duplicate files were moved to the Recycle Bin.

The last step in the process is to tell iTunes to take a look at itself, and remove any items in the library which no longer exist. Unfortunately there is no simple way in the iTunes interface to do this, so we need to cheat, just a little.

Apple has provided a script to do just this particular trick, and to make use of it you just need to do these things in order:

  1. Close iTunes if you have it open
  2. Go to the web page, right-click on it, and save the page as a file, making sure you change the extension to .js. So for instance, in Firefox, right-click on the page, choose Save page As”¦ and change the file name from RemoveDeadTracks.txt to RemoveDeadTracks.js.
  3. Open Windows Explorer and browse to the file you just saved
  4. Double-click on the file.

The script will open iTunes, and then start running through and removing dead links. In my case it took around ten minutes and correctly removed nearly two thousand links.

easy way to remove multiple duplicates in itunes

Give yourself a pat on the back.

How to Easily Remove Duplicate Tracks on iTunes [Windows] itunesafter

I’d love to know how you go, whether you have found any more comprehensive tools, or if you can fathom how I got in this mess. In the comments, please.

Affiliate Disclosure: By buying the products we recommend, you help keep the site alive. Read more.

Whatsapp Pinterest

Leave a Reply

Your email address will not be published. Required fields are marked *

  1. Chillout Mixtapes
    February 19, 2017 at 7:16 am

    We believe that music obsession works as a surrogate for misplaced human bonds. Music can pierce one's heart directly; it needs no mediation. Weekly Tropical House mixtapes published each and every Wednesday. Listen to us out on SoundCloud!

  2. liona1
    October 14, 2016 at 7:18 am

    I have recently used a program called Duplicate Files Deleter & i am so happy with the results that this particular program does. I have more than 50 GB of duplicate files in my computer and i was going crazy with the hard disk space that was being consumed and thanks to the "Duplicate Files Deleter" where i don't need to search each & every file to delete. Duplicate Files Deleter did the job for me within a very short period of time. So no need to google each problem to remove duplicate & unwanted files, just grab the program called Duplicate Files Deleter.

  3. Abigail Madison
    July 29, 2016 at 2:51 pm

    Duplicate Files Deleter is a simple, but effective tool to locate duplicate files in one or more selected search paths. It scans the files and compares them based on Byte for Byte Comparison, which ensures 100% accuracy. You can then choose to delete the selected duplicate or original files. The program is multi-threaded and performs scans quickly.

  4. Stevie-O
    May 14, 2016 at 9:23 pm

    " Make sure the file names are at least a little bit different, or deleting one will delete both......" - right -

    So, any suggestions as to what to do when the file names are the SAME????

    Didn't see where you offered a solution for the 2nd condition you identify.
    Feeling badly for the folks that steam-rolled right along BUT - only had a single source.

  5. rewanya
    January 13, 2016 at 5:13 am

    I use Duplicate Files Deleter as it is very effective. It is 100% accurate and performs the scan quickly.

  6. dekatya
    January 12, 2016 at 6:39 pm

    Try it with @@@ DuplicateFilesDeleter @@@@

    it will do fast tracking duplicate and will delete fast.imagine software.

  7. Anonymous
    November 7, 2015 at 4:04 pm

    I used the javascript and I deleted over 350 dead files! thank you so much!

  8. Anonymous
    July 28, 2015 at 12:06 pm

    The best duplicate file remover is I am using “DuplicateFilesDeleter” from last 3 years

  9. Anonymous
    July 20, 2015 at 8:05 am

    A cleaner approach is to use Song Sergeant. It will do what you want quickly, and you can fine-tune how it works if you want. Not screwing up my playlists, and keeping the best metadata, yes please!

  10. João
    March 3, 2015 at 1:08 am

    Thanks Jim !! It took me 20 seconds! You´re a good man ! :)

  11. Merrily
    January 24, 2015 at 11:49 am

    Hi, Jim! Many Tks for the tips on removal of duplicates but my iTunes problem is that I want to remove the wrong version of a track that I paid for. My iPad music store doesn't appear to have a delete option in it.

    I'm new to iTunes so don't know my way about yet.

  12. MezesCs
    December 22, 2014 at 10:49 am

    Man, THANK YOU! I have always been annoyed by the lack of this option in iTunes, and now as I needed to free up some space and deleted more than a 1000 tracks from my HDD, I really wanted a quick resolve to the iTunes cleanup. You delivered. Thanks once again.

  13. Courtam
    July 1, 2010 at 3:56 am

    Thank you some much - this worked great for me I have a pretty large collection and it was kind of messed up. This was easy and no problems at all.

  14. jtfburgess
    June 23, 2010 at 6:09 pm

    Thanks for this post. I searched around everywhere for a good solution, and this was the first one that worked perfectly. Good information, efficiently presented.

  15. Patrick
    May 31, 2010 at 7:37 pm

    Hi Jim.

    I was having the same problem as Yohanna and was able to sort it out, thanks to your excellent instructions. One note I wanted to share with anyone doing this- if you have a lot of files (songs) with generic/untitled file names (e.g., "track 1, track 2, etc.), it probably is not a good idea to look for duplicates by name. Luckily, I perused the info at the bottom of the Duplicate Music Files Finder and identified that many of my duplicate tracks had differient file paths (e.g., were from different albums). Just something to be aware of.

  16. Julie
    May 4, 2010 at 2:19 am

    Thank you so much! I had isolated all the dead tracks into a smart playlist, but itunes would not let me delete them. They were mostly home movies from my camera that I had converted to "music videos." I don't know if this is why I couldn't delete. In any case, I found your article, and it was so great to watch that playlist go from 16gb to empty. Thanks so much!

    • Jim Henderson
      May 4, 2010 at 5:58 am

      I'm so pleased I could help!

  17. Claus Valca
    April 8, 2010 at 4:57 pm

    @ Jim

    Yep. No retention of play counts or song ratings.

    However, I don't really use those features much. Play counts are interesting when checking the "randomness" of the shuffle-play events and I have never bothered to rate songs.

    I do know some folks who live for those things though and loss of that data would be a major bummer.

    --Claus V.

    • Jim Henderson
      April 9, 2010 at 5:06 am

      Yep. Horses for courses then. Just as it should be.

  18. Yohanna
    April 8, 2010 at 2:25 pm

    Success!! Thanks Jim - works perfectly! I don't know how I managed to stuff that up...

    • Jim Henderson
      April 9, 2010 at 5:08 am

      Superb! I'm glad it worked out for you.

      • Patrick
        May 31, 2010 at 5:37 pm

        Hi Jim.

        I was having the same problem as Yohanna and was able to sort it out, thanks to your excellent instructions. One note I wanted to share with anyone doing this- if you have a lot of files (songs) with generic/untitled file names (e.g., "track 1, track 2, etc.), it probably is not a good idea to look for duplicates by name. Luckily, I perused the info at the bottom of the Duplicate Music Files Finder and identified that many of my duplicate tracks had differient file paths (e.g., were from different albums). Just something to be aware of.

  19. Yohanna
    April 8, 2010 at 12:47 pm

    Hi Jim
    I simply click on the link in your article, the first part of which shows up like this:

    File: RemoveDeadTracks.js

    Version: 1.0

    Right-clicking on the page doesn't bring up a 'Save as' option, so I go to File > Save As, which brings up the Save box with RemoveDeadTracks written in the File Name box. In the 'Save as type' box it says Text File (*.txt) - but I can't delete this. I then add '.js' to the end of the file name. It then appears in my computer as 'JScript Script File' under the Properties, which it says opens with Microsoft (R) Windows Based Script Host. I double click on the file and I get the rude message. I'm stumped!

    Thanks for your interest in helping me!!

    • Jim Henderson
      April 8, 2010 at 12:55 pm

      Okay, I think that's where the problem is. You should be able to right-click on the link from this page, and choose *save link as...* if you are using Firefox, or *save target as...* in Internet Explorer. Save it as removedeadtracks.js, rather than .txt, and you should be fine.


  20. Jim Henderson
    April 8, 2010 at 2:01 am

    Hi Yohanna.

    Sorry to hear you're having trouble.

    I'd be checking the way it's saved the file if I were you. It sounds as though you've lost a character at the beginning of the file or something. Any chance you could let me know how you went about saving it?

  21. Yohanna
    April 7, 2010 at 3:14 pm

    Hi Jim
    Many thanks for this post, it's very useful & user-friendly enough for a complete novice like me. I have however come unstuck at the RemoveDeadTracks.js phase - I can save it as a file alright but when I navigate to it and double-click it brings up a rude Windows Script Host blue box that tells me there's been a 'Line: 1, Char: 1, Error: Syntax Error, Code 800A03EA, Source: Microsoft JScript compilation error'. No doubt this is something that could be resolved by anyone with half a neuron of IT knowledge but unfortunately I'm not one of those people. Any ideas??

    Thanks again.

  22. Claus Valca
    April 6, 2010 at 4:26 pm


    Just spent last night tiding these up myself after a system recovery (iTunes partition bombed and I "restored" it from my iPod brick), then ended up porting over manually from the system to a new laptop.

    In the process I had lots of duplicates in the Library listing and music/video files scattered all over the darn place...including duplicates and triplicates...

    Once I got the main iTunes (storage location) settings dialed in, I removed the duplicate listings in the Library as suggested above, then I did a consolidation to ensure that all the media files scattered around the folders were placed into that store.

    Then I went into the store location and could pretty easily see the duplicate media files (often named with a 1 - or - 1 pre/post file name) and deleted these, leaving the original media file in the location. That saved me a bunch of space!

    Now what this did was (in many cases) break the association with the library entry for some songs. At first I was manually launching each one then manually locating it via browsing. With almost 3000 files, that was taking a long time.

    So I just bravely deleted the entire list of files in the Library but IMPORTANTLY!!! told it to keep the media files and NOT delete them (just the Library items).

    Then I went back to the file menu in iTunes and had it add the media from the folder contents...and selected the primary user iTunes media folder location that I had just cleaned up.

    Zammo! All 3000 items were back with the correct associations now.

    I also then was able to clean up my playlists by exporting them, then doing a find/replace in Word swapping out the old folder location string with the updated one.

    Happy Dandy!

    Lots of work but all clean and neat again, dups are gone, and no loss occured in my case. Learned a lot about the iTunes media management system as well in the process.

    This post had lots of awesome tips I merged to work out the above...

    Freeware app SharePod was the biggest (Windows app) utility helper to restore my iTunes library from my iPod device after the first system tanked the files... I documented that nightmare recovery experience here iTunes Damage Control

    Additional links from iTunes help: - Consolidation option - Duplicates - iTunes library location - moving iTunes between HDD's.

    Great and timely post! Thanks!


    Claus V.

    Claus V

    • Jim Henderson
      April 7, 2010 at 2:26 am

      Thanks Claus. Very comprehensive. Just one question... Did you lose your play counts and ratings by doing this?



  23. James
    April 6, 2010 at 6:07 am

    I've been using AudioComparer to remove my song duplicates. I use to have over 45,000 songs before I used it. AudioComparer listend to all of my music and then showed me which songs were identical based on the sound and NOT the tags. Which is how it should be!

    • Jim Henderson
      April 6, 2010 at 12:56 pm

      Looks pretty interesting, James. It's worth noting that it's not free.


  24. David Johnston
    April 5, 2010 at 7:23 pm

    Thanks,having made numerous bad choices whilst in the middle some ill thought out "upgrade" or other I appreciate the Info.Especially the shift file.If I ever knew it I'd forgotten.

    • Jim Henderson
      April 6, 2010 at 2:30 am

      Thanks David. I'm pleased I could be of some use. There's no need for us all to go through these things over and over.