Creating an Embed
Embeds allow you to include interactive content from Spotify in any compatible website or web application. To set this up, you will need basic knowledge of HTML, or help from a webmaster or web developer.
-
Open the Spotify Web Player.
-
Find and open the content you want to embed. You can create an Embed for a podcast, episode, track, playlist, artist, or album. Eligible tracks can include a music video.
-
Select the More options (
...) button, select Share, then select the option beginning with Embed - for example, Embed track or Embed episode.
-
Customize the Embed using the available colour and size options. For an eligible music-video track, confirm that the preview displays the video experience.

-
Optional: select Show code to inspect the generated HTML.

-
Select Copy.
-
Open your HTML editor and paste the code where you want the Embed to appear.
-
Save and deploy your changes.
Choosing an Embed size
Set the iframe width to 100% to fill its container, and make the container at least 280 pixels wide for an audio Embed. The audio player has a minimum layout width of 280 pixels, so a narrower iframe can clip its content.
Choose a height that fits the amount of content you want to show:
| Height | Audio layout |
|---|---|
| 352 pixels | Full player, including longer lists such as albums and playlists. |
| 232 pixels | Legacy landscape player; use 152 or 352 pixels for new placements. |
| 152 pixels | Compact player for a track, episode, or show. |
| 80 pixels | Legacy compact player with less information and fewer controls. Use 152 pixels for new compact placements when possible. |
An eligible music-video track needs an iframe at least 250 pixels wide and 150 pixels high to show video. If either dimension is smaller, the Embed switches to the audio experience when available, or offers a link to open the track on Spotify. The generated video Embed uses 624 × 351 pixels by default.
These dimensions describe the player's layouts. The iFrame API does not reject smaller values, so check the rendered Embed at the actual size of its container.
Music video example
Music videos use the same Embed code as audio tracks. When a track has an eligible music video, Spotify presents the music video experience automatically. You do not need a different URL format or any additional query parameters.
_10<iframe_10 style="border-radius: 12px"_10 src="https://open.spotify.com/embed/track/0Lr4kGOYn9l83EjuK6cZFQ"_10 width="100%"_10 height="352"_10 frameborder="0"_10 allowfullscreen=""_10 allow="autoplay; clipboard-write; encrypted-media; fullscreen; picture-in-picture"_10 loading="lazy"_10></iframe>
The track ID determines the embedded content. Spotify handles the available playback experience, including the music video, for the listener and their context.