Can I print out my Spotify playlists?


Re: Can I print out my Spotify playlists?

Music Lover
‎2012-06-15 02:54 PM

Don't know about you guys, but I always add album as new playlist. I appreciate radio but listening to a whole album has it's own charm.


So the playlists (not necessarily the tracks) is sort of a backlog / history I want to safe keep somewhere outside of Spotify. 


And it seems the reason we can't export delimited text, XML or similar is purely political. It's certainly nowhere to be found in the official clients. I've looked through the APIs (which seems to be improving), nothing stands out that would support such a feature. 


Attached at the bottom is the source code for a program that can parse and print the "playlist.bnk" file. I assumed the format is not publicly known (though not hard to guess). Can we have specifications please?


It needs to be improved upon, it doesn't quite catch all of my playlists.


For *nix "playlist.bnk" is located in ~/.config/spotify/Users/name/playlist.bnk says the location on windows is <USER_APP_DATA>/Spotify/Users/  


Place playlist.bnk in the same directory, compile and run.


Example: g++ -o spotify_playlist_decoder spotify_playlist_decoder.cpp ; ./spotify_playlist_decoder


#include <fstream>
#include <iostream>
#include <sstream>
#include <vector>
int main(int argc, char *argv[]) {
    std::vector<char> vbuf;
    unsigned int len;
    std::vector<char>::iterator bpos,dpos,epos;
    std::ifstream in("playlist.bnk", std::ios::in|std::ios::binary);
    if (in) {
        len = in.tellg();
        for(std::vector<char>::iterator it = vbuf.begin(); it != vbuf.end(); ++it) {
            if (*it == (char)0x02 && *(it+1) == (char)0x09) {
                bpos = it+3;
            if (*it == (char)0xE2 && *(it+1) == (char)0x80 && *(it+2) == (char)0x93 && bpos != vbuf.end()) {
                dpos = it;
            if (*it == (char)0x18 && *(it+1) == (char)0x01 && *(it+2) == (char)0x19 && dpos != vbuf.end()) {
                epos = it;
            if (bpos != vbuf.end() && dpos != vbuf.end() && epos != vbuf.end()) {
                for(std::vector<char>::iterator it2 = bpos; it2 < dpos; ++it2) {
                    std::cout << *it2;
                for(std::vector<char>::iterator it2 = dpos; it2 < epos; ++it2) {
                    std::cout << *it2;
                std::cout << std::endl;
                bpos = vbuf.end();
                dpos = vbuf.end();
                epos = vbuf.end();

Re: Can I print out my Spotify playlists?

Concert VIP
‎2012-08-14 08:24 AM



I developed, a new app last week to export some playlists on flat file (CSV); then you can read it by Excel for example.

You'll find more details here: export to text

So, it's in french but you just have to download the zip file, unzip it to your <My documents>/Spotify, run Spotify and execute this command: spotify:app:exportcsv


That's it.

Re: Can I print out my Spotify playlists?

Music Lover
‎2012-08-14 02:20 PM

Thanks geted ! that's really neat. Will try it out when I get home :)



Re: Can I print out my Spotify playlists?

Music Lover
‎2012-11-04 10:26 PM

The http link method does no longer work, atleast not as described :(

Re: Can I print out my Spotify playlists?

Music Fan
‎2012-12-18 05:40 PM

Re: Can I print out my Spotify playlists?

‎2013-02-18 11:01 PM

This method still works, but is really only good for doing a few playlists as it would get a bit tedious if a person had many playlists.


To export a playlist as "just text", do the following:


1. Click on the playlist

2. Click on a song in the playlist

3. Type Ctrl-A to select all the songs in the playlist

4. Type Ctrl-C to copy all the songs to the clipboard

5. Paste into Microsoft Word using Ctrl-V.

6. Highlight everything you pasted in MS Word using Ctrl-A

7. Type Ctrl-Shift-F9 to remove all the hyperlinks.

8. You will have an all text playlist that is the the format of "artist - song name". Nothing fancy, but often good enough.


You may be able to use something other than Microsoft Word. Perhaps even GMail or GDocs.


Re: Can I print out my Spotify playlists?

Music Fan
‎2013-05-12 06:14 PM

Any way to also export the time and album columns?

Re: Can I print out my Spotify playlists?

Community Legend
‎2013-05-13 07:44 AM

There is no way to export other columns.

Dancecore streaming everywhere with unlimited 2M/2M mobile 3G network.

Re: Can I print out my Spotify playlists?

Garage Band
‎2013-05-13 07:57 AM

You could utilize libspotify to fetch all metadata.


You can iterate through a playlist, fetch the track info:


They have a sample program to (almost) do this, so it shouldn't be too hard to do.


Pulled up the sampe:


Getting track metadata from handle:

Re: Can I print out my Spotify playlists?

Music Lover
‎2013-07-09 09:14 AM


i've tried all those solutions but i still cannot copy a playlist from spotify to word so can anyone give me an answer that also does work in reality? thnx.