How to Move iTunes Music Library to OneDrive
In this article
You can move your iTunes music library to OneDrive, but iTunes does not offer a built-in "upload to OneDrive" button. The practical method is to copy your entire iTunes folder (or just the Media folder) into your OneDrive folder using File Explorer, then point iTunes at the new location. This keeps your playlists, ratings, and play counts intact because the library database file moves with the music. Before you start, make sure you have enough OneDrive storage for your library, and that you are signed in to the OneDrive desktop app on the same PC. The steps below are for Windows; Mac users can follow the same logic using Finder and the OneDrive folder in the home directory, though menu labels differ slightly.
What You'll Need
- A Windows PC with iTunes installed and the OneDrive desktop app signed in.
- Enough OneDrive cloud storage to hold your music library (check the size of your iTunes folder first).
- Your iTunes library folder location: by default it is
C:\Users\[YourName]\Music\iTunes, but you may have moved it. - A stable internet connection for the initial upload, which can take hours for large libraries.
- Optional: an external drive for a backup before you move anything.
Step-by-Step
- Close iTunes completely. Make sure it is not running in the background. This prevents file locks and database corruption during the move.
- Find your iTunes library folder. Open File Explorer and go to
C:\Users\[YourName]\Music\iTunes. If you have moved it before, open iTunes > Edit > Preferences > Advanced to see the current "iTunes Media folder location." Note that menu labels can differ slightly by iTunes version and region. - Check the folder size. Right-click the iTunes folder and choose Properties. Compare the size to your available OneDrive storage. If the library is larger than your plan, either upgrade your storage or move only the Media folder and leave the database in place (see Tips).
- Create a destination folder in OneDrive. Open your OneDrive folder (usually
C:\Users\[YourName]\OneDrive) and create a new folder named something likeiTunes Library. Keeping it in a clearly named subfolder makes it easier to find later. - Copy the iTunes folder into OneDrive. Right-click the iTunes folder and choose Copy, then paste it into the new OneDrive folder. Do not cut and paste yet; copying leaves the original in place as a safety net until you confirm everything works. For large libraries this can take a while.
- Wait for OneDrive to finish syncing. The OneDrive icon in the notification area shows sync progress. Do not open iTunes until the status says "Up to date." Uploading a large library over a slow connection can take many hours or even days.
- Point iTunes at the new library. Hold Shift and double-click the iTunes shortcut. A dialog appears asking you to choose a library. Click "Choose Library" and navigate to the copied
.itlfile inside the OneDrive folder (for exampleOneDrive\iTunes Library\iTunes\iTunes Library.itl). If you do not see the file, make sure iTunes is fully closed and try again. - Verify playlists and media. Open iTunes and check that playlists, ratings, and play counts are present. Play a few songs from different albums to confirm the files are found. If iTunes shows exclamation marks next to tracks, the media path did not update; see Troubleshooting.
- Set the media folder location (if needed). In iTunes, go to Edit > Preferences > Advanced and confirm the "iTunes Media folder location" points to the OneDrive copy. If it still points to the old folder, click Change and select the new Media folder inside OneDrive.
- Remove the old copy only after confirming everything works. Once you have played several tracks and verified playlists, you can delete the original iTunes folder to free up space. Keep a backup for at least a week in case something was missed.
Common Mistakes
- Moving instead of copying first. Cutting the folder before verifying the new location works leaves you with no fallback if the library file fails to open.
- Opening iTunes before OneDrive finishes syncing. iTunes may create a new, empty library or lock files mid-upload, causing sync conflicts.
- Copying only the Media folder and forgetting the library file. The
.itlfile holds playlists and ratings; without it iTunes starts fresh. - Ignoring storage limits. OneDrive stops syncing when full, and partial uploads can leave missing tracks.
- Using "Free up space" on the OneDrive folder. This turns files into online-only placeholders; iTunes cannot play them until they are downloaded again, which causes playback errors.
Tips
- If your library is huge, move only the
iTunes Mediafolder to OneDrive and leave the.itlfile on the local drive. Then use Preferences > Advanced to point the media folder to OneDrive. This reduces sync load on the database file. - Right-click the OneDrive folder and choose "Always keep on this device" so tracks stay downloaded and playable offline.
- Pause OneDrive syncing during the initial copy if you need bandwidth for other work; resume when ready.
- Keep a zipped backup of the
.itlfile on an external drive before any move.
Troubleshooting
iTunes opens with an empty library. Close iTunes, then hold Shift while launching it and choose the .itl file inside the OneDrive folder. If the file is missing, check whether OneDrive is still syncing or whether the file was moved to the online-only state.
Tracks show exclamation marks. The media path changed. In iTunes, select the affected tracks and use File > Library > Organize Library, or re-add the folder via File > Add Folder to Library. Confirm the media folder location in Preferences > Advanced.
OneDrive shows sync errors. Check that filenames do not contain characters OneDrive rejects, and that you have not exceeded your storage quota. Restart the OneDrive app from the notification area and let it resync.
Songs will not play offline. The files are online-only. Right-click the OneDrive folder and select "Always keep on this device," then wait for downloads to complete.
iTunes is slow or crashes. A very large library syncing in the background can cause delays. Pause syncing temporarily, or move only the Media folder as described in Tips.
Frequently Asked Questions
Can I stream my iTunes library from OneDrive on another device?
Not through iTunes itself. OneDrive stores the files, but iTunes needs a local library file and local access to the media. You can download the folder on another PC and open the library there, but there is no built-in streaming feature.
Will moving to OneDrive break my playlists?
No, as long as you move the entire iTunes folder including the library file and point iTunes at the copied library. Playlists, ratings, and play counts are stored in that file.
Does this work on Mac?
The same approach works: copy the iTunes or Music folder into the OneDrive folder in your home directory, then hold Option while opening Music to choose the library. Menu names differ between macOS versions.
What happens if I delete the local copy?
iTunes will still work as long as the OneDrive folder is set to "Always keep on this device." If files become online-only, playback fails until they are downloaded again.
Can I use OneDrive to sync between two computers?
Only one computer should have iTunes open against the library at a time. Opening the same library on two PCs simultaneously can corrupt the database file.
Is there a built-in export to OneDrive in iTunes?
No. iTunes has no OneDrive integration; the copy-and-repoint method is the supported workaround.