Step 1 - Go to Your Spotify Playlist

  • Open Spotify Web or your Spotify app.
  • Find the playlist you want to share.

Step 2 - Get the Embed Code

  • Click the three dots (...) next to the playlist name.
  • Choose 'Share' -> 'Embed playlist'.

Spotify will show you an HTML code block like this:

<iframe style="border-radius:12px"

src="https://open.spotify.com/embed/playlist/4UPp7WxXfVyCwXG1F9pvoc?utm_source=generator

"

width="100%" height="380" frameBorder="0"

allow="autoplay; clipboard-write; encrypted-media; fullscreen; picture-in-picture"

loading="lazy">

</iframe>

To extract just the embedding link from the iframe code:

  • Look for the part that starts with src=" and ends with ".
  • Copy only the URL inside the quotation marks.

In this example, the embed URL is:

Step 3 - Paste the Embed Code into Your Website

Depending on your platform:

How to Embed a Spotify Playlist on Your Website

  • WordPress: Use a Custom HTML block and paste the iframe code.
  • Wix/Squarespace: Use the Embed/HTML Code element.
  • Raw HTML: Paste the iframe where you want the player.