Spotify Playlist Analyzer

Connect Spotify, select a playlist, and get a full breakdown: genre distribution via Last.fm tags, decade spread, diversity score, runtime stats, and flagged duplicates.

Share

Connecting to Spotify...

Spotify Playlist Analyzer: What Your Playlist Data Actually Reveals

Last.fm has catalogued listening behavior from over 300 million registered users, building one of the largest crowd-sourced music tagging databases on the internet. Every tag on Last.fm comes from real listeners, not editorial decisions. That distinction matters when you want to understand what a playlist actually sounds like, not just what a streaming platform decided to call it.

Spotify's own genre labels attach at the artist level and reflect editorial curation. They are useful but coarse. Last.fm tags are granular. An artist Spotify labels "alternative rock" might carry Last.fm tags for "shoegaze", "dream pop", "lo-fi", and "90s indie" simultaneously, because different listener communities tagged the same music from different angles. This tool pulls those crowd-sourced tags and turns them into a weighted genre breakdown for your playlist.

How the Genre Weighting Works

A playlist with 200 tracks is not evenly distributed. Some artists appear once; others dominate with 15 or 20 tracks. A naive approach would give every artist equal weight regardless of how many songs they contribute. That produces a misleading picture.

This tool weights each artist's genre tags by their track count. If The Cure has 12 tracks in your playlist and Bauhaus has 2, The Cure's tags contribute six times as much to the genre total as Bauhaus's tags. The result is a genre breakdown that reflects the actual listening experience, not just the artist roster. The top 8 tags by total weighted score are displayed as a horizontal bar chart.

To keep analysis fast and respect Last.fm's API, the tool caps at the top 50 unique artists by track count and adds a small delay between requests. For most playlists, 50 artists captures well over 80% of the actual listening time.

Why Decade Breakdown Matters

Release decade is one of the most underrated dimensions of a playlist. A playlist tagged "chill" might be 90% 2020s bedroom pop or 90% 1970s Californian folk, and those two playlists have almost nothing in common despite the same mood label. The decade chart shows exactly how your playlist spreads across time.

Release dates come directly from the Spotify track object's album.release_date field. The year is extracted from the first four characters of that string. Tracks without a valid year are excluded from the decade calculation but still count toward all other stats.

Understanding the Diversity Score

The diversity score is a simple ratio: unique artists divided by total tracks, expressed as a percentage. A score of 100% means every track is by a different artist. A score of 10% means the playlist averages 10 tracks per artist.

Playlists with a diversity score below 20% are essentially artist-specific collections. This is not a flaw, but it does explain why the genre breakdown might look narrow. If your playlist has 50 tracks and 8 of them are from the same artist, that artist will dominate the genre output regardless of how varied the rest of the playlist is.

The labels are calibrated from real playlist data:

  • Very Diverse (above 70%): Almost every track is a different artist. Discovery playlists and editorial mixes typically land here.
  • Diverse (40-70%): A healthy spread. Most genre-based playlists fall in this range.
  • Focused (20-40%): A handful of artists repeat regularly. Common in decade or mood playlists.
  • Artist-heavy (below 20%): Dominated by a small number of artists. Essentially an artist discography in playlist form.

Duplicate Detection: How It Works

Streaming platforms catalog the same song multiple times. A track might appear as its original 1979 release, a 2011 remaster, a deluxe edition version, a radio edit, and a live recording. In raw form these are five different catalog entries. In a playlist, they are the same song repeated.

This tool normalizes track titles before comparison. It strips suffixes like "(Remastered)", "(Live)", "Radio Edit", "Single Edit", "Album Version", "(Deluxe)", "(Acoustic)", year-specific remasters like "(2023 Remaster)", and featured artist tags. It then compares the normalized title against the primary artist name. Two entries that match on both are flagged as a suspected duplicate group.

For deeper playlist management, including actually removing duplicates from your Spotify account, use the Spotify Playlist Manager. It handles duplicate removal, sorting, and merging directly from your Spotify library.

Authentication and Data Privacy

This tool uses Spotify's Authorization Code with PKCE flow, the authentication method Spotify recommends for browser-only applications. It requests two read-only scopes: playlist-read-private and playlist-read-collaborative. No write access is requested at any point.

Your access token lives in sessionStorage, which clears when you close the browser tab. No tokens are sent to any server. Last.fm API requests go directly from your browser to Last.fm's servers using a public read-only API key. See the Spotify API documentation for playlist objects for the full data structure this tool reads.

Related Tools

To analyze your personal listening history rather than a specific playlist, use the Music Taste Checker. It pulls your top 50 Spotify artists and builds a genre profile from Last.fm tags, weighted by rank position. For top tracks and artists with time-range comparison, the Spotify Stats tool shows your listening data across 4 weeks, 6 months, and all time.

From the Blog

View All