Skip to main content
Contributor I
February 25, 2013

Feature Request: Export and Import Sonos Playlists

  • February 25, 2013
  • 216 replies
  • 29980 views
Like many users, we use Sonos in two different houses. We have two NAS's of music that I'm planning on keeping synchronized with RSYNC. What doesn't sync or cant get exported are Sonos Playlists. It would be great to be able to ad-hoc export them and then to import them as well. Using the UPnP interface, I've noted a Java program that can export playlists, but importing them is a bit troublesome. It would be great to have this feature.
This topic has been closed for further comments. You can use the search bar to find a similar topic, or create a new one by clicking Create Topic at the top of the page.

216 replies

Lyricist I
January 8, 2016
I have written a Python script that will backup and restore Sonos playlists. It is located at here. It uses the SoCo Python module to communicate with the speakers. It has been tested on GNU/Linux and MS-Windows.

I have added another parameter to your python script to export title, creator and album to the XSPF file. This exported playlists you can then add to Soundizz panel "Playlist file" and import to other music services like Deezer, Spotify etc. It is available here and I have started a pull request to merge it into spl.

Export all playlists:
spl.py -X -d
Export one playlist:
spl.py -x 90sRock -d
Sometimes you need to add one of your Sonos IPs with addtitonal parameter -I, example: "spl.py -X -d -I 192.168.1.38"
Lyricist I
January 10, 2016
I have written a Python script that will backup and restore Sonos playlists. It is located at here. It uses the SoCo Python module to communicate with the speakers. It has been tested on GNU/Linux and MS-Windows.

I have added another parameter to your python script to export title, creator and album to the XSPF file. This exported playlists you can then add to Soundizz panel "Playlist file" and import to other music services like Deezer, Spotify etc. It is available here and I have started a pull request to merge it into spl.

Export all playlists:
spl.py -X -d
Export one playlist:
spl.py -x 90sRock -d
Sometimes you need to add one of your Sonos IPs with addtitonal parameter -I, example: "spl.py -X -d -I 192.168.1.38"


I've just built a tool to take the output of spl, and convert it into a Spotify playlist, which you can simply then copy/paste into the Spotify app.
Feedback welcome:

https://github.com/joffotron/xspf2spotify
World-Class Superstar
January 10, 2016
I've just built a tool to take the output of spl, and convert it into a Spotify playlist, which you can simply then copy/paste into the Spotify app
As I've written before: it's a bloody shame Sonos is unable to assist users in backing-up and editing their playlists. Apparently this is possible by using special tools. In what way would it be possible for someone like me, who doesn't know the first thing about Python, to take advantage of your work?
Lyricist I
January 10, 2016
Playlist import/export is pretty fundamental functionality, I agree. It's also clear they'll never do it.

@beynym, to complicate things, my script was written in ruby.
If you're on OSX or Linux, then the instructions to use it are (kinda) simple: On a terminal do

gem install xspf2spotify
xspf2spotify you-playlist-file.xspf > spotify-playlist.txt
(and then copy and paste that into Spotify).

However you need to get the playlist exported to xspf format using the spl tool first.

... and on Windows getting Ruby and Python set up is a bit trickier too. So yeah, it kinda sucks.
World-Class Superstar
January 10, 2016
So yeah, it kinda sucks.
😞
phobden
Trending Lyricist I
February 17, 2016
Import export playlists is a must have for me
World-Class Superstar
March 21, 2016
a good idea, and we've passed it to the development team as a suggestion, but we don't have any update to share on its status. As soon as there's news we'll let everyone know, but there isn't currently anything to share.
Hello Ryan S, it's almost been a year since your last note on the subject of being able to backup and/or edit Sonos playlists. Do you have any recent news to share, maybe?
Ryan S
Retired Sonos Staff
March 24, 2016
a good idea, and we've passed it to the development team as a suggestion, but we don't have any update to share on its status. As soon as there's news we'll let everyone know, but there isn't currently anything to share.
Hello Ryan S, it's almost been a year since your last note on the subject of being able to backup and/or edit Sonos playlists. Do you have any recent news to share, maybe?


Hey Beynym,

Thanks for asking. Unfortunately there isn't any news right now around this feature, but I'll knock on a few doors for you and remind the team there's still interest in this feature. As you know, we don't talk about what's being developed or slated for the future, but if there's any news around this which can be shared we'll be sure to let everyone know.
Mark good posts by pressing the like button, and select the best answer on questions you've asked to help others find solutions.
World-Class Superstar
March 24, 2016
Unfortunately there isn't any news right now around this feature, but I'll knock on a few doors for you and remind the team there's still interest in this feature.
I can (of course) only speak for myself and I have to say I'm sorry to find this feature on the back burner. I keep hoping, though.
Lyricist I
March 28, 2016
Lost 3 of 4 yeard of collecting tracks with sonos playlists. Really hate them for this. Overthinking to sell the stuff. I know, they dont care.