Twitch Music Widget: Show Your Now-Playing Song on Stream

“What song is this?” is one of the most common questions in a music stream’s chat. A Twitch music widget answers it for you: it shows the title, artist and cover of the track you are playing, updates automatically and makes your overlay look finished. This guide explains how a now-playing widget works, how to connect Spotify, YouTube Music and other players, and how to add the widget to OBS in about ten minutes.
The Lazy Cat music widget in action: a cat that vibes to your song while title, artist, cover and progress update live.
What is a now-playing music widget?
A now-playing widget is a small animated overlay that shows the current track on your stream. It runs as a browser source in OBS or Streamlabs and reads what you are listening to from a music-tracking service. When the song changes, the widget updates by itself. Many widgets also add personality: an animated character, a progress bar, a song history or a chat command that lets viewers ask for the current song.
How the widget knows what you are playing
Streaming apps do not send your current song straight to OBS. Most now-playing widgets use Last.fm as the bridge: your music app “scrobbles” each track to your free Last.fm account, and the widget reads your Last.fm profile.
- Spotify: connect it to Last.fm in a few clicks. Spotify Free is enough.
- YouTube Music, Tidal, SoundCloud and others: use the free Web Scrobbler browser extension to send tracks to Last.fm.
- Any app that scrobbles to Last.fm will show up in the widget.
You only need free accounts: StreamElements and Last.fm. No paid plan is required.
Step 1: create a Last.fm account and connect your music
- Create a free account at Last.fm and note your username.
- In your Last.fm settings, open Applications and connect Spotify, or install Web Scrobbler for browser-based players.
- Play a track and open your Last.fm profile. You should see it listed as scrobbling now.
- Check your privacy settings: if listening information is hidden, the widget cannot read it.

Step 2: add the widget in StreamElements
- In StreamElements, open Streaming Tools, My Overlays and create or open an overlay (1920 x 1080).
- Click Add Widget, choose Custom and then Custom Widget, then Open Editor.
- Paste the widget files into the HTML, CSS, JS and Fields tabs and press Done.
- In the settings panel, enter your Last.fm username and adjust the options.
The full process, with the most common mistakes, is in How to add a custom widget to StreamElements and OBS.
Step 3: show it in OBS
- In StreamElements, click Copy link for your overlay.
- In OBS, add a Browser source, paste the link and set the size to 1920 x 1080.
- Place the source above your game capture and move the widget where you want it, usually a bottom or top corner.

Make it match your stream
A good widget lets you change how it looks without touching code. Look for these options: editable texts in any language, fonts, colours, size, and which elements are visible (title, artist, cover, progress, history).


Let chat ask: the !music command
Viewers arriving mid-song will ask what is playing. Many now-playing widgets support a chat command such as !music, which shows a chat bubble with the current track. It works with Twitch and YouTube chat, so you stop answering the same question all night.

Free scripts or a ready-made widget?
| Free scripts and templates | Ready-made styled widget | |
|---|---|---|
| Look | Often plain, shared by many channels | Designed artwork and animation, easy to match your colours |
| Setup | You may need to edit code | Paste the files, then use the settings panel |
| Help | Community forums | Written guide and direct help from the seller |
| Licence | Check each one | Clear terms, check that they fit your use |
Free options are a good start. A designed widget is worth it when you want the overlay to look like part of your brand.
A note on music and copyright
A widget only displays the song title. It does not change the licence of the music you play. Copyrighted tracks on a live stream can cause muted VODs or claims, so use music you have the right to broadcast or tracks from a service that supports streaming.
Troubleshooting: the widget shows nothing
- Last.fm shows no scrobble: reconnect the music app or the Web Scrobbler extension and play a track again.
- Hidden listening data: open your Last.fm privacy settings and allow recent listening to be public.
- Wrong username: check the spelling in the widget settings.
- Nothing in OBS: make sure the browser source is 1920 x 1080, sits above the game capture and is refreshed (right-click the source, then Refresh).
- Old song shown: wait a few seconds for the next scrobble, or refresh the browser source.
Music widgets you can try
Each widget is a different style, so you can pick one that matches your overlay. Open any of them for a live preview.
Frequently asked questions
Do I need Spotify Premium for a now-playing widget?
No. A widget that reads from Last.fm works with Spotify Free. You only need free StreamElements and Last.fm accounts.
Can I show songs from YouTube Music, Tidal or SoundCloud?
Yes. Use the free Web Scrobbler browser extension to send tracks from those players to Last.fm, and the widget will show them.
Does a music widget work in OBS and Streamlabs?
Yes. It runs as a StreamElements custom widget and is added as a browser source in OBS Studio, Streamlabs Desktop or any software that supports one.
How long does the setup take?
About ten minutes for the first time: connect your music to Last.fm, paste the widget into StreamElements and add the overlay link to OBS.
Can I change the colours and texts?
Yes. A good widget lets you edit every text, the fonts, colours, size and which elements are shown, from the settings panel and without coding.
Ready to put a song on your stream?
Pick a style, try the live demo and have it running tonight. Every widget includes a setup guide and an instant download.
Browse all music widgets Try the Lazy Cat demo
More to explore: all Twitch widgets, chat widgets, best Twitch widgets guide, custom emotes or ask for a custom widget.



