Quick answer: To embed Spotify on your website, open the Spotify Web Player or desktop app, find the playlist, song, album, artist or podcast, right-click its title, choose Share > Embed, adjust the color and size, and copy the code. Paste the iframe into an HTML or embed block on your site. Podcast episodes play in full, while music may play as previews for visitors who are not logged in to Spotify.

Spotify embed player for playlists and podcasts on a website

A Spotify player is the easiest way for musicians to promote releases, for podcasters to grow listeners from their website, and for brands to share playlists that set a mood. Here is how to get the code and make the player look right.

What can you embed from Spotify?

According to Spotify’s Embeds documentation, you can add podcasts, episodes, albums, tracks, playlists and artists to a website you control. For podcast episodes, you can also set a custom start time.

ContentBest usePlayer behavior
———
PlaylistBrand playlists, curated musicTrack list with play buttons
Track or albumNew releases and press pagesSingle track or full album
ArtistMusician websitesTop tracks
Podcast show or episodeShow notes and episode pagesFull episode playback

How do you get a Spotify embed code?

Steps to get a Spotify embed code

Spotify’s guide to creating an Embed describes the steps:

  1. Open the Spotify Web Player (or the desktop app) on a computer.
  2. Find the content you want to embed and open it.
  3. Right-click (or long press) the title and select Share, then the option beginning with Embed.
  4. Choose a background color and the compact or standard size.
  5. Copy the code and paste it into your website.

The Spotify mobile app does not offer embed code, so use a computer.

How do you add a Spotify embed to WordPress, Wix and Shopify?

  • WordPress: paste the Spotify link into the editor or a Spotify embed block, or paste the iframe into a Custom HTML block.
  • Wix: use Add Elements > Embed Code > Embed HTML, or a Spotify app from the Wix App Market.
  • Shopify: add a Custom Liquid section and paste the iframe.
  • Squarespace: use an Embed block, or a Code block for iframes (Code block iframes need a Core plan or higher).

How do you customize the Spotify player?

  • Size: the compact player (about 152 pixels tall) suits single tracks and episodes. The standard size shows a track list for playlists and albums.
  • Width: set the iframe width to 100% so it fits mobile screens.
  • Color: choose a background color in the embed dialog to match your brand.
  • Developers: Spotify’s oEmbed API turns a Spotify URL into embed code, and its iFrame API lets you load and control podcast episodes with JavaScript.

Why does my Spotify embed only play a 30-second preview?

Visitors who are not logged in to Spotify in their browser may hear previews of music tracks instead of full songs. Podcast episodes generally play in full. Encourage visitors to click through to Spotify for the full listening experience.

Why is my Spotify embed not showing?

  • Incomplete code: make sure the full iframe was copied, as Spotify’s troubleshooting guide recommends.
  • Wrong block: use an HTML or embed block so the iframe is not stripped.
  • Cookie or privacy tools: some consent tools block Spotify until visitors accept.
  • Private playlist: make the playlist public before embedding.

Where should you place a Spotify embed?

  • Podcast episode pages, right under the title.
  • Musician home pages, next to tour dates and merch.
  • Brand pages and blog posts with themed playlists.

Video creators can do the same with YouTube: see our YouTube widget guide.

Frequently asked questions

Is embedding Spotify free?

Yes. Spotify embeds are free to use on websites you control, under Spotify’s developer terms.

Can I embed a Spotify playlist that updates automatically?

Yes. The embed shows the playlist as it is on Spotify, so changes you make appear on your site.

Can I embed Spotify on a mobile website?

Yes. Set the iframe width to 100% so it scales on phones.

Can I autoplay a Spotify embed?

Browsers usually block autoplay with sound, and autoplay hurts user experience. Let visitors press play.

Can I embed a specific podcast timestamp?

Yes. For podcast episodes, Spotify lets you set a custom start point.

Leave a Reply

Spotify embed player for playlists and podcasts on a website

We are Widgets Code

widgets

From social media feed widgets and review widgets to social walls and embeddable website experiences, Widgets Code helps marketers and businesses find, compare, and implement the right widgets for their websites.

Create your own website, free on WordPress.com.Create your own website.
Start free