Migrating your iTunes library can feel complex, but it becomes straightforward when you understand how to move both media files and critical metadata like playlists, play counts, and ratings. This guide explains how to migrate your iTunes library between Mac and Windows or between Macs, covering local files, CD purchases, and items from Apple Music or iCloud Music Library. You will learn how to back up first, consolidate files, handle DRM‑protected content, and verify the migration so nothing is lost.
What Happens When You Migrate iTunes
iTunes stores library data in a single library file and typically keeps actual media in a Media folder, but the relationship between the two can be confusing. When you migrate, you are moving the library database and, ideally, consolidating media into a predictable folder structure so links do not break. Key elements that should survive a careful migration include playlists, smart playlists, ratings, play counts, last played timestamps, volume adjustments, and playback position. DRM purchased from iTunes remains tied to your Apple ID and can be re‑downloaded on the new machine after signing in; Apple Music tracks from iCloud Music Library are metadata only and must be downloaded or re‑synced if you want local files.
Preparation Checklist Before You Begin
Preparation prevents the most common migration problems, such as missing artwork or broken links to music files. Start by confirming what content you have, backing up your library, and deciding whether to use an external drive or the network. Aim for a checklist that covers verification, archiving, and access to the accounts needed on the destination device.
- Identify current iTunes media folder location and any custom folders.
- Back up the entire iTunes folder or library file to an external drive or cloud storage.
- Confirm Apple ID and password for the destination device and for purchases.
- Check available storage on the destination Mac or Windows PC.
- Disable antivirus or backup software temporarily to avoid interference during transfer.
- Note whether you use iCloud Music Library and how many tracks are matched versus uploaded.
Quick Comparison of Migration Methods
| Method | Best For | Preserves Playlists and Metadata | Notes |
|---|---|---|---|
| Copy iTunes folder & open on destination | Same OS or straightforward move | Yes, if files are consolidated | Requires enough storage and identical drive structure or relinking |
| Use Home Sharing | Quick local network transfer between Macs | Yes, for shared content within limits | Requires Home Sharing enabled and matching Apple IDs |
| Sync with iCloud Music Library | Cross‑platform access and cloud download | Metadata and cloud tracks, downloads needed for local files | Subscription or extensive library may require upload/download time |
| Third‑party export/import tools | Playlist preservation across complex setups | Varies by tool; can export playlists to CSV or XML | Inspect reviews and privacy policy; not always necessary |
Step-by-Step: Migrating iTunes to a New Mac
On macOS, your library lives in ~/Music/iTunes/, and moving it is mostly about copying that folder and launching iTunes on the new Mac. Before you start, quit iTunes on both machines to avoid file conflicts, then copy the entire iTunes folder or selectively copy the Media folder and library file.
- On the old Mac, open iTunes, choose File > Library > Export Playlist to export any critical playlists as XML if you want an extra backup.
- Locate your iTunes folder (Finder > Go > Home > Music > iTunes) and copy it to an external drive or network volume.
- On the new Mac, place the iTunes folder in the same relative path, ~/Music/iTunes/, or connect the drive and import the library file (itunes.itl or Music.itdb).
- Open iTunes; if media shows a gray exclamation mark, click File > File > Organize Library and choose Consolidate Files to copy everything into the local iTunes Media folder.
- Sign in with your Apple ID to access purchases, re‑download purchased items, and reactivate iTunes Store features.
- If you use iCloud Music Library, enable it in Preferences > General and choose Merge or Replace to bring cloud tracks into the local library.
Step-by-Step: Migrating iTunes to Windows from Mac or PC
Moving from Mac to Windows introduces format differences and path considerations, but iTunes on Windows uses the same library file structure. The most reliable method is to copy the current iTunes folder and then import it on Windows after installing iTunes.
- Quit iTunes on the Mac, locate the iTunes folder, and copy it to an external drive formatted as exFAT or APFS Mac OS Journaled.
- On the Windows PC, install the latest version of iTunes and any required codecs or Apple Bonjour service.
- Connect the drive and copy the iTunes folder to a known location on Windows, such as C:\Users\YourName\Music\iTunes\.
- Open iTunes, and when prompted, choose the existing library file or locate it manually.
- Use File > Add File to Library or Add Folder to Library to include any media not already referenced.
- Reinstall apps associated with iTunes backups if you maintain iOS device backups in iTunes.
Watch for Path and Permission Issues
If songs remain grayed out after migration, the absolute file paths in the database may not match the new location. Use Consolidate Files to copy everything into the internal iTunes Media folder, or relink manually by right-clicking songs and choosing Show in Finder (or Show in Explorer) to correct paths. On Windows, run iTunes as an administrator temporarily if permission errors block library access or import.
iTunes vs Apple Music vs iCloud Music Library: What Moves Where
It is important to distinguish between your iTunes library, Apple Music subscriptions, and iCloud Music Library because each behaves differently during a migration. Purchased tracks and audiobooks are tied to your Apple ID and can be re-downloaded on the new device without extra copies. Tracks from your Apple Music subscription are rights‑limited and can be re‑downloaded only while the subscription is active and on authorized machines. iCloud Music Library, when enabled, stores matched or uploaded tracks in the cloud; enabling it on the new device and signing in with the same Apple ID gives you access without moving every file, but actual local storage depends on your settings and device capacity.
Key Differences at a Glance
| Content Type | Tied to Apple ID | Available Offline After Migration | Notes |
|---|---|---|---|
| iTunes Purchases | Yes | Yes, after re-download | DRM‑protected but authorized to your account |
| Apple Music Tracks | Yes | Only while subscribed and authorized | Can be downloaded for offline listening |
| iCloud Music Library Matched Tracks | Yes | After download or streaming | No upload required if already in cloud; matches by hash |
| Locally imported files | No | Yes, if local files are moved | You manage file organization and integrity |
Preserving Playlists, Ratings, and Play Counts
Many users worry that switching computers will reset their painstakingly curated playlists and statistics. With the right steps, these details survive. The safest approach is to export playlists to XML before migration, then import them on the new device. After the library is opened, use Consolidate Files so the internal database can reference the correct local paths. On both macOS and Windows, ratings and play counts are stored in the library file itself, so a careful copy usually preserves them; if they seem off, rebuilding the library index or re-syncing can help.
How to Export and Re‑Import Playlists
- In iTunes, choose File > Library > Export Playlist, select XML, and save it.
- On the new device, after opening the library, choose File > Import and locate the XML file.
- For additional safety, keep the original export on your backup drive and keep a note of the export date.
Handling DRM and Protected Content
DRM‑protected iTunes Store purchases can be moved, but they are tied to your Apple ID and device authorization limits rather than to a specific machine. After migrating, sign in with the same Apple ID on the new computer, open iTunes, and authorized the device again via Account > Authorizations > Authorize This Computer. You can typically authorize up to five computers per Apple ID. Protected content that fails to play can often be remedied by deauthorizing an unused device through Account > Authorizations and then reauthorizing the current machine.
Troubleshooting Common Migration Issues
Even with careful planning, issues can appear. Grayed‑out tracks usually indicate a path mismatch; consolidating files fixes most of these. Missing artwork or corrupted metadata can be resolved by reimporting affected playlists or using metadata‑scraping tools inside iTunes. If iTunes Store purchases fail to download, verify account status, network settings, and that you are within Apple’s regional restrictions. On Windows, codec packs and proper media extensions may be required for certain file formats.
Alternative Workflows and Automation
For advanced users or frequent movers, scripting or third‑party tools can reduce manual steps. Some tools read iTunes XML exports to rebuild playlists without opening the full library, while rsync or cloud sync can keep a Media folder consistent across machines. These approaches require comfort with command line or third‑party software and attention to privacy and backup practices.
Post-Migration Verification Steps
After the transfer, run a short checklist to confirm that the move succeeded as expected. Compare track counts and a sample of playlists, verify that purchases are downloadable, and confirm that ratings and play counts appear consistent. If you use backups, ensure the new library is included so future restores are accurate and complete.
Wrap-Up and Best Practices
Migrating an iTunes library is reliably predictable when you copy the correct files, manage your Apple ID and device authorizations, and verify content on the destination. The safest pattern is to back up the entire iTunes folder, consolidate files before switching, export playlists for an extra safeguard, and reauthorize the destination device for purchases. Following this workflow keeps your music, videos, and metadata intact across upgrades, OS changes, and computer replacements.