How to Restore an iTunes Library With an XML File

Written by mario calhoun
  • Share
  • Tweet
  • Share
  • Email

A lost iTunes library due to accidental deletion can be restored as long as the iTunes library XML file remains in your iTunes music folder. The XML file retains your music library's information, including play count, playlists and ratings. The XML file can be copied to your desktop and back to your iTunes folder to rebuild your library and playlists without any data loss.

Skill level:

Other People Are Reading


  1. 1

    Close your iTunes application.

  2. 2

    Open your music folder. For Macs, click the "Finder" icon and click the "Music" tab on the sidebar. Double-click the "iTunes" folder, and drag the "iTunes Library.xml" file to your desktop.

    For PCs, open Windows Explorer, and go to "Documents and Settings/(user name)/My Documents/My Music. Double-click the "iTunes" folder and drag iTunes Music Library.xml to your desktop or into your Documents folder.

  3. 3

    Send the "iTunes Library" folder to your Trash bin. Empty the Trash bin, and open your iTunes application.

  4. 4

    Click "File" at the top of the screen, and move your cursor to "Library" and click "Import Playlist."

  5. 5

    Locate the "iTunes Music Library.xml" file and double-click it to open it.

Don't Miss

  • All types
  • Articles
  • Slideshows
  • Videos
  • Most relevant
  • Most popular
  • Most recent

No articles available

No slideshows available

No videos available

By using the site, you consent to the use of cookies. For more information, please see our Cookie policy.