You can try Muzc0nvtool. I use it to transfer my playlist from Yandex to Spotify for free.
For this you need three steps: First, select Yandex Music as source Service, In the "Playlists" tab select playlists you want to transfer and click "Transfer", Select M3U as the destination service.
Hi there,
Thanks for reaching out. There is no official way to transfer music/playlists from a different service. There are some third-party apps that offer the option to do so, such as this, but as these aren't a part of Spotify itself, we cannot guarantee how well they would work, so try them at your own risk.
Hope this clears things up.