SpotiJSON – Export Spotify Playlists to JSON

SpotiJSON is a free, browser-based tool that lets you export your Spotify playlists as structured JSON files. Connect your Spotify account using secure OAuth authentication and browse every playlist you own. Select exactly which data fields you want to include, then download a clean, ready-to-use JSON file in seconds.

What you can export

For each track in a playlist you can choose to include the track name, Spotify track ID, duration in milliseconds, explicit flag, track number, and the date the track was added. For each artist you can export the artist name and Spotify artist ID. For each album you can include the album name, Spotify album ID, release date, total track count, album type, and album artwork images. Every field is optional — pick only what you need for your project.

How it works

SpotiJSON uses the Spotify Web API with the PKCE authorization flow, which means your Spotify credentials are never sent to any server. Authentication happens directly between your browser and Spotify. Once you are logged in, your playlists are fetched from the Spotify API and displayed in a searchable grid. Click any playlist to open the export view, configure your fields, preview the JSON output with syntax highlighting, and download the file.

Who is it for

SpotiJSON is useful for developers who want to work with their music data, analysts who want to explore listening habits, DJs who want to archive setlists, or anyone who wants a portable backup of their playlist metadata. The exported JSON can be imported into spreadsheets, databases, or custom applications without any additional processing.

The app requires only read-only access to your Spotify library and never modifies your playlists or account data. No data is stored on any server — everything stays in your browser session.

Privacy and security

SpotiJSON is built with privacy as a priority. The app uses the OAuth 2.0 PKCE (Proof Key for Code Exchange) flow, which is the recommended authentication method for browser-based applications with no backend server. This means there is no client secret involved and your Spotify password is never exposed to the app. The access token used to communicate with the Spotify API is stored only in your browser's local storage and is never transmitted to any third-party service.

SpotiJSON requests only the minimum required Spotify scopes: read access to private playlists and collaborative playlists. It cannot read your playback history, modify your library, follow or unfollow artists, or access your account settings. You can revoke access at any time from the connected apps section of your Spotify account settings.

Use cases

There are many practical reasons to export a Spotify playlist as JSON. Developers can use the data to seed a music recommendation engine, build a custom playlist visualiser, or populate a database for analysis. Data analysts can load the JSON into Python with pandas or into a JavaScript environment to study patterns in their listening habits, such as which artists appear most frequently or how playlist length varies over time.

DJs and music curators can use SpotiJSON to keep offline records of their sets, share structured track lists with promoters, or migrate data to other platforms. Collectors and archivists can create timestamped snapshots of playlists so they have a permanent record even if tracks are removed from Spotify in the future. Teachers and students working on data science or web development projects can use real playlist data as a convenient, copyright-friendly dataset.

Frequently asked questions

Is SpotiJSON free to use?

Yes. SpotiJSON is completely free and open source. There are no accounts, subscriptions, or usage limits.

Does it work with Spotify Free accounts?

Yes. The app only uses read-only playlist endpoints that are available to all Spotify users regardless of subscription tier.

Can I export collaborative or private playlists?

Yes, as long as the playlist is owned by your account. The app requests the playlist-read-private and playlist-read-collaborative scopes so both private and collaborative playlists appear in your library.

What happens to my data after I log out?

When you log out, all tokens and user data are removed from your browser's local storage immediately. Nothing is retained after the session ends.