Spotify Migration Tool is a user-friendly web application designed to help you move your entire music library (Liked Songs and Playlists) from one Spotify account to another. Built with Python (Flask). Ideal for users switching accounts to cheaper regions or new profiles.
https://spotify-migration-tool.onrender.com
- Double Authentication: Handles Source and Destination accounts simultaneously.
- Liked Songs Transfer: Moves all your liked tracks.
- Playlist Transfer: Recreates your playlists on the new account.
- Smart Handling:
- Uses pagination to fetch all items (not just the first 50).
- Batches API requests to respect rate limits.
- Separate cache files to keep sessions distinct.
- Python 3.6+
- A Spotify Developer App (Client ID and Secret)
-
Clone this repository or download the files.
-
Install the required dependencies:
pip install -r requirements.txt
You must set the following environment variables.
-
Go to the Spotify Developer Dashboard.
-
Create an app.
-
Set the Redirect URI to:
http://127.0.0.1:5000/callback/sourcehttp://127.0.0.1:5000/callback/dest(Or your domain if deployed)
-
Copy your Client ID and Client Secret.
-
Run the web application:
python app.py
-
Open your browser and navigate to
http://localhost:5000. -
Setup (First Time):
-
Transfer:
- Connect your Source and Destination accounts.
- On the Destination account, you need to click on "it's not you" for disconnect the source and connect the destination.
- Now you are connected to both accounts.
- Select what you want to transfer.
- Start!
- You will know when the transfer is finished.
- The app runs locally on port 5000.
- Logs are streamed directly to the browser window.
- Your tokens are cached in
.cache-sourceand.cache-dest. Delete these files if you need to reset headers/login. - Local files in playlists are skipped.








