How to add a Spotify playlist to your site

drieze

Dries Deboosere

Posted on August 7, 2021

How to add a Spotify playlist to your site

Adding a Spotify playlist to your website is realy easy. It's just getting some HTML code from Spotify that you can paste in your own HTML.

Open Spotify

Open the Spotify application and go to your playlist that you want to share on your website.

Get the HTML

  1. Click on the three dots
  2. Go to Share and then Embed playlist

Embed playlist

Now you see the following screen: Embed playlist

This is how your playlist is gonna look like when you paste the html code in your website.

Now click on the Copy button to copy the code. This should look like something to this:

<iframe src="https://open.spotify.com/embed/playlist/5aXXutTCAQMAXHV7juYBR0" width="100%" height="380" frameBorder="0" allowtransparency="true" allow="encrypted-media"></iframe>

If you paste this HTML code in your the HTML of your website then you'll see the (playable) Spotify playlist on your website. It will look exactly like the playlist you see in the preview:

Embed playlist

💖 💪 🙅 🚩
drieze
Dries Deboosere

Posted on August 7, 2021

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related

Weekly Digest 12/2022
javascript Weekly Digest 12/2022

March 27, 2022

Explaining how OAuth works with Spotify as an example