keepcalculator

06 Numbers and Powers

Transfer iTunes Library on Mac: Full Guide

Card No. 06·75083 · Updated · Standard formula, shown below

To transfer your iTunes library on a Mac, you need to move the entire “Music” folder (or “iTunes” folder on older macOS versions) to the new location, then point the Music or iTunes app to it. This guide covers the exact steps for moving your library to a new Mac, an external drive, or a network drive, including how to keep playlists, ratings, and play counts intact.

What the iTunes Library Actually Is

On modern macOS (Catalina and later), the Music app replaced iTunes, but the library structure remains similar. Your library consists of two key parts:

  • Music folder (default: ~/Music/Music) – contains the actual media files (songs, videos, artwork) organized into subfolders.
  • Library database files – Music Library.musiclibrary (a package that holds the database, playlists, and settings). In older iTunes versions, this was iTunes Library.itl and iTunes Library.xml.

The database file tracks where every file is, so if you move the folder but the database still points to the old path, the app won’t find your songs. That’s why the correct transfer method matters.

Preparing for the Transfer

Before moving anything, do these steps to avoid data loss:

  1. Update macOS – ensure both source and destination Macs run a recent version of macOS.
  2. Back up your library – copy the entire Music folder to an external drive or cloud storage as a safety net.
  3. Consolidate files – in the Music app, go to File > Library > Organize Library and check “Consolidate files.” This copies all referenced files into the Music folder, so you don’t miss tracks stored elsewhere.
  4. Close the Music app – the app must be fully quit before moving files.

Method 1: Transfer to a New Mac (Migration Assistant)

The easiest way to move your entire library to a new Mac is using Migration Assistant, which copies all user data, including the Music folder, via Wi-Fi, Ethernet, or a Time Machine backup.

  1. On your new Mac, open Applications > Utilities > Migration Assistant.
  2. Choose “From a Mac, Time Machine backup, or startup disk.”
  3. Select your old Mac (if connected) or a Time Machine backup.
  4. Select the “Music” folder (or “iTunes” folder) under your user account to transfer.
  5. Wait for the transfer to finish. After restart, open the Music app – it should see the library automatically.

This method preserves everything, including playlists, ratings, and play counts, because the database file is moved intact.

Method 2: Manual Copy to External Drive or New Mac

If you prefer a manual approach, follow these steps:

  1. Quit the Music app.
  2. Connect an external drive (formatted as Mac OS Extended or APFS) or have the new Mac accessible on the network.
  3. Copy the entire ~/Music/Music folder to the external drive or directly to the new Mac’s ~/Music/ folder.
  4. On the destination Mac, move the folder to ~/Music/ if it isn’t already there.
  5. Hold the Option key and open the Music app. A dialog will appear asking you to choose a library.
  6. Click “Choose Library” and select the Music Library.musiclibrary file inside the folder you copied.

If you’re moving to an external drive permanently, you can keep the library there and hold Option each time you open Music, or use the “Change” option in Music’s Settings to set the default library location.

Method 3: Move Library to External Drive for Space

Many users want to free up internal storage. Here’s how to move your library to an external drive while keeping it functional:

  1. Quit the Music app.
  2. Copy the entire Music folder to the external drive.
  3. Rename the original folder on your Mac to Music_old (as a backup).
  4. Hold Option and open Music, then choose the library on the external drive.
  5. Once Music opens, go to Settings > Files and set the “Music Media folder location” to the external drive’s folder.
  6. Test that songs play, then delete the old folder if everything works.

Note: If you disconnect the external drive, Music will show missing files. You must reconnect the drive to access your library.

Common Problems and Fixes

  • “The library is locked” error – This happens if the Music app is still running or the folder has permission issues. Quit the app and check Get Info on the folder to ensure you have Read & Write access.
  • Missing songs after transfer – The database points to the old location. Use File > Library > Update Playlists or manually locate the files. To avoid this, always consolidate before moving.
  • Playlists not showing – If you only copied media files and not the database, playlists are lost. Always copy the entire Music Library.musiclibrary package.
  • External drive not recognized – Ensure the drive is formatted correctly (Mac OS Extended or APFS) and not NTFS, which is read-only on Mac.
  • iTunes Match or Apple Music issues – If you use Apple Music or iTunes Match, your library is also stored in iCloud. After transfer, sign in with the same Apple ID and enable “Sync Library” to restore metadata.

Alternative: Use Home Sharing or iCloud

If you don’t need a full transfer, consider these alternatives:

  • Home Sharing – Stream your library from one Mac to another over the same Wi-Fi network without moving files. Enable Home Sharing in both apps’ settings.
  • Apple Music / iTunes Match – If you subscribe, your library is synced to iCloud. On a new Mac, sign in and enable “Sync Library” to download or stream your songs. This doesn’t transfer video files or files not eligible for iCloud.
  • AirDrop – For a small number of files, AirDrop is quick but doesn’t preserve playlists or ratings.

Frequently Asked Questions

Will I lose my play counts and ratings when transferring?

No, as long as you move the entire library database file (Music Library.musiclibrary), play counts, ratings, and dates added are preserved. If you only copy media files, that metadata is lost.

Can I move my iTunes library to a Windows PC?

Yes, but it’s more complex. You need to copy the Music folder to an external drive, then on Windows, open iTunes and use File > Library &em; Import Playlist to import an XML file (if you have one). Modern Music libraries don’t export XML easily, so consider using third-party tools.

Why does the Music app show a question mark on every song?

That means the app can’t find the files. The database still points to the old location. Use File > Library > Update Playlists or manually drag the files back into the library. To prevent this, consolidate files before moving.

Do I need to keep the original folder after transferring?

No, but it’s wise to keep it until you verify the new library works. Once you confirm all songs play and playlists are intact, you can delete the old folder to save space.

Can I store my library on a network drive?

Yes, but performance may suffer, and the drive must be mounted before opening Music. Connect the drive, then hold Option and choose the library. Some users report issues with network drives disconnecting, so a local external drive is more reliable.

Related

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.

More cards in this drawer

The whole Numbers and Powers drawer →