Home > Guides & Tips > How to Transfer Your iTunes Library from One Computer to Another

How to Transfer Your iTunes Library from One Computer to Another

Tips: 2009 iPod to Computer Transfer Sofrware Comparisons



Before you do this, you’ll have to first transfer the actual files to your new computer. You may choose to burn CDs, DVDs, or use a thumb drive; but using a FireWire cable is easiest for large libraries, unless you have a portable hard drive.

1. Export the source iTunes library as an XML file (File>Export Library…). This will create a file that holds information about the location, song filenames, and *song rating*!
2. Replace the file paths in your XML file with the path that the songs from the source library will be in when you import them. This path may point to your FireWire Drive, a DVD you have burned, or a temporary folder on your hard drive that you have copied your music to. Just to be sure of the new path, copy one of the files from this location to your library, export your destination library, and look at the file path to that song in the resulting XML file. To actually replace the file paths, I did a Find/Change in TextWrangler.


3. Set the preferences in iTunes in your source library to “Copy files to iTunes Music folder when adding to library.” This is under “Advanced.”
4. Import your library (File>Import).
5. Delete redundant files. If you’re like me, you have some duplicate songs in your multiple libraries. This is a tedious task, but I plan to do it over time.


Of course, you can prevent all of this by being organized in the first place. I probably should have just had an iPod that I synched with my home computer and brought to work.

[UPDATE - 07/19/2007] - Some of you have left such helpful comments, I wanted to point them out:

* if you just have the hard drive of your old PC, Ben has shared with us how to make the transfer
* if you aren’t keen on messing with XML files - and play count isn’t important to you - Oden has a simple process, involving smart playlists, for retaining song ratings when you transfer your iTunes library.
* Collin has a simple way to find out those duplicate songs that you may end up with when transferring
* Aaron devised a clever way to transfer while retaining playlists
* If you are transferring between Macs, pbaron has a method involving FireWire mode

Or you can just us a iPod transfer

Leave a Reply