Move your music library from Winamp to iTunes

In a previous post I helped you to switch your music library from iTunes to Winamp, without losing any metadata (such as last play date, play count, rating…). Now Winamp has stopped releasing new versions, some might want to switch back sooner or later. I’ve made the switch as a kind of experiment to see whether it would be possible to keep (the most valuable metadata). iTunes won’t be able to please me in the near future, but as time goes by, it might be the only easy way to sync with my old iPod Classic and iPad.

What do you need?

Winamp 5.666 (media library required, standard Winamp installation)
– Your favorite txt notepad software with find/replace features (Notepad++, GVim, …)
iTunes 11.2.2.3

It will please you to hear that moving the library back to iTunes is less complicated than the reverse option.

Steps

Start up Winamp

Winamp export media database

The default view has a button called ‘library’ at theĀ bottom of the left column (media library column). Click, and choose ‘export media database’. This will create an iTunes XML library database.

Start up your favorite txt editor

Open the XML file created by Winamp in the previous step. Replace F below with the drive letter on your system. Find:

<key>Location</key><string>file://localhost/F:%5

Replace with

<key>Location</key><string>file://localhost/F:/

(so the only thing that needs replacement is %5 to /)

Save and close XML file

Start up iTunes

iTunes import XML database from Winamp

File (Alt + F) > Library > Import playlist… Choose the XML file

If you have lots of media files, this will take some time.