Spotify codes, introduced back in 2017, function similarly to QR codes. They are unique identifiers for elements within the Spotify system, including songs, albums, playlists, podcasts, and profiles.
You can use Spotify Codes as an easy way to share music from your Spotify app with other Spotify users.