Transfer iTunes Library and iPhone Data from Mac to PC

I recently built a PC for a friend of mine using some old parts I had lying around along with a few new components. She’s had an older Mac notebook running OS X v10.4 for a few years, but it’s just too slow and too old to run a lot of newer software or games, including the latest version of iTunes (which means she can’t update her iPhone to the latest iOS version).

Her new PC is running Windows 7 x64 Home Premium and the latest iTunes so it’s fully capable of keeping her iPhone updated. However, she can’t just plug her iPhone into the new computer without making sure that iTunes is set up properly and all of her purchased music/apps/etc. are on the PC to avoid losing those purchases. There are numerous tutorials on the web that cover transferring your iTunes music and iPhone data from PC to Mac. Unfortunately I couldn’t find any tutorials about transferring from Mac to PC, so I decided to write up a simple tutorial documenting the process we used.

Transfer Mac to PC
Transfer iTunes from OS X to Windows 7

There were a few steps involved in transferring the iTunes library from Mac to PC, but overall the process was fairly simple because all of her music was organized by iTunes (rather than being scattered across multiple folders on the hard drive). This article has instructions on organizing and consolidating music into the iTunes folder if your library is not already organized by iTunes (e.g. if you have music downloaded from amazon’s mp3 service or another music download service).

  1. First we opened iTunes on the new PC so it could create the default folder structure for iTunes (located in c:/Users/USERNAME/Music/iTunes in Windows 7).
  2. On the Mac, we opened the iTunes folder (located in ~/Music/iTunes) and copied everything in that folder to an external USB hard drive (formatted with the FAT32 file system so both Windows 7 and OS X can read/write to it).
  3. We then plugged the external USB hard drive into the PC and copied all of the Mac’s iTunes files and folders into the iTunes folder on the PC.
  4. We had to modify the XML file that iTunes uses for it’s library to use Windows file paths instead of OS X file paths. To do this, we opened the file iTunes Music Library.xml in Notepad and went to the Edit > Replace… menu. By entering “file://localhost/users” in the Find what field and “file://localhost/c:/users” in the Replace with field (we are basically just adding the drive letter for the hard drive in Windows), then clicking Replace All, the XML file was updated so that all file paths worked for Windows.
  5. We then opened iTunes again and authorized her iTunes account for the new PC by going to Store > Authorize this computer… so it would work with all of her purchased content (songs, apps, etc.).

    iTunes - Authorize This Computer...
    Select "Authorize This Computer..." from the Store menu.
  6. Just in case, we plugged her iPhone into the Mac laptop and made a backup using iTunes on the Mac. We also synced all of her iPhone photos using iPhoto so we had a backup of those as well.
  7. Next we plugged the iPhone into the new PC. Windows installed the driver for it and it showed up in iTunes. We made another backup of the phone, performed a sync, and then updated her iPhone to the latest iOS version (4.02). iTunes displayed a few notifications about purchased content on the iPhone being absent from the library (she had purchased a few songs on her iPhone but we didn’t sync it with her old Mac iTunes library before we transferred the music, so the PC iTunes library didn’t have these new songs). iTunes conveniently let us copy the songs from her iPhone to the PC.
  8. Once her phone rebooted, we had a minor scare because all of her apps (other than the default apps) appeared to be gone. In reality they were all still there, but for some reason the iPhone inserted an empty screen between the home screen and the screen with her apps. When we scrolled to the second screen and it was blank we initially thought all the apps were gone. Once we scrolled to the third screen everything was where it was supposed to be. We also had a hiccup with her wireless network not letting her PC connect after the iPhone update (a quick reboot of her Airport router fixed this – just unplug it and plug it back in). I wonder if this has something to do with the new media streaming features of iOS.

That’s it! The important thing if you attempt this is to make a backup of your iPhone on your Mac first (just in case), copy all of the iTunes library files to the PC, and then authorize your iTunes account on the PC before you plug your iPhone or iPod into the PC for the first time. If you have any tips or question, post them in the comments!

About Josh McCarty

Josh McCarty is a web designer/developer and all-around technology enthusiast located near Phoenix, AZ. He specializes in developing innovative SharePoint solutions that go beyond the out-of-the-box capabilities of the platform using jQuery, XSLT, and other tools in the “middle tier.” Josh also develops custom websites and plugins for the WordPress platform with a focus on HTML5/CSS3 and responsive design. In all of his projects he emphasizes the user-experience, promotes modern web standards, and leverages the latest technologies available.

12 Responses to Transfer iTunes Library and iPhone Data from Mac to PC

  1. Hallie says:

    Thanks for posting this! I just got a new laptop because my 6-yr old macbook was on the fritz, and my computer engineer spouse got a great deal on a pc so I am sadly leaving apple behind (except for the phone). These directions helped me do everything wit no problems at all! I appreciate that people on the web post info for the computer-shy. Many, many thanks!

  2. Karl says:

    Hey Josh,

    Thanks for the guide… worked perfectly except the playlists don’t seem to be there.

    Any idea why this might be?

    Thanks

    Karl

    • Josh says:

      Hi Karl. The playlist, ratings, playcounts, and other metadata should have all come over in the transfer. Try these steps and let me know if this gets the playlists to show up (found at http://hints.macworld.com/article.php?story=20070130165510807):

      1) copy the iTunes folder across
      2) find the file called “iTunes Library” that has no extension. Its in the same folder as a file called “iTunes Library.xml”.
      3) Copy this file in the same folder.
      4) name the copy “iTunes Library.itl” in other words give it a file extension of “itl”
      5) Find your iTunes icon on your desktop
      6) hold the shift key down, do not release it
      7) double click on the icon using your mouse
      8) iTunes will ask you to use a different library
      9) browse to the folder containing your itl file created earlier and select the file

  3. cedge says:

    Thanks a lot, this guide helped me out greatly!

  4. Cris says:

    DUDE! you are such a legend! all other explainations were for PC to MAC and i was stressing out but follwed your instructions and *BAM* all music, apps, podcasts, voice memos, books all there exactly as they were on my mac. your a life saver thanks!

  5. Chuck B says:

    I can’t thank you enough for taking the time to write this up. It worked perfectly for me, and I am not computer knowlwdgable. I struggled with this for a couple days before finding your page.

    THANKS!!!

  6. Peter says:

    Perfect timing for the post as aim about to do this as well! Looks straightforward but one quick question – how do I know that I have the correct format for the hardrive? Thanks!

    • Josh says:

      Hi Peter,

      If you go to My Computer and right-click on your external hard drive, the file system will be listed just above the pie chart that displays how much space is being used. It’s probably using NTFS, so if you need to reformat it to FAT32, you can close the properties window that you just opened, right-click on the external hard drive again, and select “Format.” This will erase all data currently on the hard drive, so be sure that you don’t have anything important on it when you reformat.

  7. Alan says:

    Josh, this is great so many thanks but I’m operating a virtual Win XP environment on my iMac using Parallels 7. I now want to run iTunes on the Win XP virtual environment so how do I copy all my music & apps in the iMac iTunes across to the virtual environment on the same computer? I also want to sync my iPad to this new virtual iTunes because an app I want to use only works in a Win version of iTunes.

    • Josh says:

      I haven’t used Parallels so I’m not 100% sure, but I imagine the process would be the same. From the OS X environment, copy your library to an external hard drive. Then from your Win XP environment, copy your library from the external hard drive onto your Win XP’s virtual hard drive. I’ve only done this on Windows 7, so there may be some small differences in folder names and locations on Win XP that you’ll have to account for. Keep in mind that this method will in effect double the amount of hard drive space that your iTunes library takes up because you’ll have two libraries; one on OS X and one on Win XP, and they won’t be in sync. There may also be a way for Win XP to “see” the iTunes library on OS X without moving it, depending on the capabilities of Parallels.

Leave a Reply

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

*

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="">