How do I put music players on my artist website?

Short answer

Put one featured player near the top of your page and links to the rest, using each service's own embed code: Spotify (copy from Share, Embed, height 352), Apple Music (Marketing Tools, Copy Embed) or Bandcamp (embed this album). One player is usually enough, because every embed adds weight and a visitor can only listen to one thing at a time.

On this page

Which player should I use?

Use the service where your listeners already are, and put the best one first. A Spotify player suits fans who stream, an Apple Music player suits listeners on iPhones, and Bandcamp suits anyone you want to buy directly from you. You do not have to pick only one, but you should pick a lead.

ServiceWhat visitors hearWhere you get the codeNotes
SpotifyFull track if signed in, preview otherwiseSpotify Web Player: More options, Share, EmbedExample height 352, width 100%
Apple Music30-second clip if not logged in; full tracks if logged inApple Music Marketing Tools, Copy EmbedHeight and width adjustable
BandcampThe album or track and optionally tracklist and merch imagesAlbum page: Share/Embed, embed this albumSize and color adjustable

If you are choosing between a free page of links and a full site, start with our guide to what to include on a musician website.

How do I embed Spotify?

Follow Spotify's embed tutorial: open the Spotify Web Player, find the track, album, playlist, artist, podcast or episode, click More options (the three dots), choose Share, then Embed. Adjust the color and size, optionally click Show code, then Copy and paste it where the player should go.

Spotify's example uses these settings: width="100%", height="352", a 12 px rounded-corner style, loading="lazy", and an allow list that includes autoplay, encrypted-media, fullscreen and picture-in-picture. Keep loading="lazy" so the player waits until the visitor scrolls to it. Tracks that have a music video can show the video in the same embed.

How do I embed Apple Music?

Go to Apple's Marketing Tools, search for the song or album, scroll to the Preview Player section, set the height and width, click Copy Embed and paste the code. Apple explains that listeners who are not logged in can hear a 30-second clip of a song, and for albums or playlists they see a preview with the full song list. Logged-in Apple Music listeners can hear full tracks without leaving your site, and the player lets others open Apple Music to log in or start a free trial. Expect some visitors to hear only a clip.

How do I embed Bandcamp?

Per Bandcamp's help page, open your album page, click the Share/Embed control under the cover art, choose "embed this album", customize the player (size, color, tracklist and merchandise images), then copy the code into your page. Bandcamp is the best fit if you want a visitor to be able to see your merch next to the music, since the embed can include merchandise images.

How many players, and where?

Use one featured player in the first screen of your music section, and link out to the rest. Lead with the release you want people to hear first: the newest single or your best-known track. Under it, put three plain buttons: Spotify, Apple Music, YouTube. Each extra embed loads another chunk of third-party code.

Why it matters: Google's Core Web Vitals set "good" targets at the 75th percentile of page loads: Largest Contentful Paint of 2.5 seconds or less, Interaction to Next Paint of 200 milliseconds or less and Cumulative Layout Shift of 0.1 or less. Players that pop in late can push the page around, so give each one a fixed height (352 pixels for Spotify's example) and let it load lazily below the fold.

Music section checklist

[ ] One featured player above the fold (newest release)
[ ] width 100%, a fixed height, loading="lazy"
[ ] Three plain buttons: Spotify, Apple Music, YouTube
[ ] A one-line caption under the player naming the release and year
[ ] A link to buy or download if you sell music (Bandcamp)
[ ] Test on your phone with Wi-Fi off

What should I write around the player?

A player with no words around it is easy to skip. Add a caption of one line and a sentence of context, so a first-time visitor knows why to press play. Name the song and year, say what it sounds like in plain words, and mention one place you play.

Caption and intro you can adapt

"Harbor Lights" (2026): a slow piano ballad about leaving home, recorded in Norfolk.
New here? Press play on the first track, then catch us live at the Saturday open mic. Booking: hello@example.com.

Keep the caption beside the player, not inside an image, so search engines and screen readers can read it. Add the same title and year to each streaming button, for example "Listen on Spotify", so the link makes sense out of context.

What if the player does not show up?

Check three things. First, the code must be the full iframe, with the closing tag. Second, some site builders strip iframes unless you use an "embed" or "custom code" block. Third, a privacy blocker or a network issue can stop a third-party player from loading, so always keep plain links under it. A visitor who cannot see the player can still tap the button.

What does this look like for different artists?

  • A singer-songwriter with a new single. Feature the Spotify single (height 352), then three buttons below it. Link your press kit for venues.
  • A hip-hop artist who sells on Bandcamp. Embed the album with the tracklist visible, so a fan can buy without leaving.
  • A DJ with sets on streaming only. Put one Spotify playlist embed at the top, and use buttons for the rest.
  • A band with an iPhone-heavy local audience. Lead with the Apple Music player and remember non-subscribers hear a 30-second clip, so add a free YouTube link too.

From our side

Our Artist Page ($249) includes Spotify, Apple Music and YouTube links, your bio and best photos, upcoming shows and a booking button, and we refine it until you love it. We set up the embed so it stays light on phones. See pricing.

Key takeaways

  • 01Use one featured player and buttons for the rest.
  • 02Copy codes from Spotify Share, Apple Marketing Tools, or Bandcamp Share/Embed.
  • 03Non-logged-in Apple Music visitors hear 30 seconds.
  • 04Keep loading="lazy" and a fixed height to protect page speed.
  • 05Always include plain links under the player.

Quick answers

Can visitors hear the whole song in an embedded Apple Music player?

Apple says listeners who are not logged in hear a 30-second clip. Logged-in listeners can hear full tracks without leaving your site.

What size is the Spotify embed?

Spotify's example uses width 100% and height 352 with a 12 pixel rounded border, but you can adjust size when you copy the code.

How many players should I put on my page?

One featured player plus links is usually best. Each embed adds third-party code that can slow the page.

Is Bandcamp good for selling music?

Bandcamp's embed can show the album, tracklist and merchandise images, which puts your merch next to the music.

Free tools

Check speed, AI search readiness, launch settings, accessibility, and email DNS with the free six-tool website toolkit.

Keep reading

More straight answers.