How to Embed Spotify on Your Website (2026): Artist, Song and Album Players
Put a Spotify player on your own site in a few minutes: where to find the embed code, which player to pick for a single, an album or your whole catalog, and what to add next to it.

On this page
How do I embed Spotify on my website?
Open the song, album or artist in the Spotify Web Player, choose Share, then Embed, copy the code and paste it into the page where you want the player. The code is a small block of HTML, and the player works as soon as you save and publish the page.
Spotify's own guide (checked December 2026) gives these steps in its Creating an Embed tutorial.
What are the exact steps?
- Open the Spotify Web Player and go to the song, album, playlist or artist you want to show.
- Select the More options (
...) button, then Share, then the option that starts with Embed (for a song it reads Embed track). - Adjust the color and size options. Check the preview.
- Optional: select Show code to see the HTML.
- Select Copy, paste the code where the player should appear, then save and publish.
The code is an iframe that points to an address like https://open.spotify.com/embed/track/..., with the matching word (artist, album, playlist) for each type. Spotify says embeds work for tracks, albums, playlists, artists, podcasts and episodes.
Which size should I pick?
Spotify's guide (checked December 2026) lists these heights for audio players:
- 152 px: the compact player, for a single track.
- 352 px: the full player, which suits albums and playlists.
Spotify also says to set the width to 100% and keep the space around it at least 280 px wide, because a narrower player can clip its content. The older 80 px and 232 px sizes are marked as legacy, so for a new page use 152 or 352.
Which player should you embed?
| Your goal | Embed this | What the visitor sees |
|---|---|---|
| Push a new single | Track, 152 px | One compact player with your song ready to play |
| Show your whole catalog | Artist, 352 px | Your music in one artist player |
| Release week for an album or EP | Album, 352 px | The full tracklist, played in order |
| Give a mood or a set | Playlist, 352 px | A list of songs you picked |
You can place more than one: for example, the artist player near the top and a track player next to the news about your newest song.
How do I add it on my website builder?
Most builders have a block or element for custom HTML or "embed code". Add that block where you want the player and paste the iframe from Spotify. Names change from one builder to another, so look in its help center for how to add custom HTML or an embed, and use that block rather than the plain text box. If your page is hand-written, paste the code straight into the HTML where it should show.
For where the player sits among the rest of your page, see what goes on a musician website and how to make a music website.
What does an embed not do?
- It only helps people who use Spotify. Someone on Apple Music or YouTube Music can't play it the same way, so put buttons for those platforms next to it.
- It plays what you pasted. Spotify's guide says to copy the code from the item you chose. If you want a new single to be the first thing people hear, paste the new single's code in its place.
- It doesn't collect anything from fans. A player gets listens, not emails. Add a sign-up on the same page, so the people who like the song can hear from you again.
Spotify also has an iFrame API to control playback with code (checked December 2026). You don't need it for a normal artist site.
If you also want a button that sends people to Spotify before a song is out, that's a pre-save: see how a pre-save link for Spotify works. And if you use Spotify for Artists, see how to put your website link there.
What if you don't want to paste code each time?
That's where a tool that keeps the page updated helps. Loud is a website and link in bio for independent musicians. You search one of your songs or your name, and Loud builds your website and link in bio with all your music, keeps them up to date with every release, and builds your fan list by city. The website includes a Spotify player and buttons for the other platforms, so you don't paste anything.
Pro costs US$5 a month (US$48 a year) and includes a custom domain and every design with your colors and font. Tour costs US$15 a month (US$144 a year) and adds 5,000 emails a month to your fans and a team of up to 3. You get 14 days free when you subscribe. There's no free plan.
Where Loud loses: if you want to design every page yourself, a general website builder fits better. Compare them in the best website builders for musicians. To see where a release page fits, read what a music release landing page needs.
FAQ
Is embedding Spotify free?
Spotify's embed feature is part of its Web Player and you don't pay to copy the code. Your website tool may have its own price.
Can I embed an artist player and not only a song?
Yes. Spotify lists artists, albums, tracks, playlists, podcasts and episodes as content you can embed (checked December 2026).
Which height should I use for a single?
Spotify lists 152 px as the compact player for a track. Use 352 px for albums and playlists.
Do I need to know how to code?
No. You copy the code from Spotify and paste it into an embed or custom HTML block.
Why is my player cut off?
Spotify warns that a container narrower than 280 px can clip the player. Set the width to 100% and give it enough room.


