Your playlist should not outlast your sleep. You fall asleep to music or a podcast, and hours later it is still playing — draining the battery, streaming data all night, and sometimes waking you up with a loud track at 3 a.m. The fix is a sleep timer: tell the phone to stop playback after a set time. The catch is that iPhone and Android hide this in completely different places.

On iPhone: the hidden "Stop Playing" timer

The iPhone's best sleep timer is not in any music app — it is buried in the Clock app, and it works system-wide: it stops audio and video from any app, not just Apple's.

  1. Open the Clock app and tap Timer at the bottom.
  2. Set how long you want the audio to keep playing — 30 or 45 minutes is a good starting point.
  3. Tap When Timer Ends. This is where you would normally pick a sound.
  4. Scroll all the way to the bottom of the sound list and tap Stop Playing, then tap Set in the top-right corner.
  5. Tap Start and go back to your music, podcast, or video.

When the countdown finishes, playback stops and the phone stays silent — no ringing, no notification blast. Apple's own guide to setting timers on iPhone documents this exact option, including the example of falling asleep while listening to the radio.

On Android: use each app's own sleep timer

Android has no iPhone-style system-wide "stop playing" timer. Google's Clock app timer only sounds a tone when it ends — it cannot pause another app's playback — and Android's Bedtime mode only silences notifications and dims the screen; it does not stop media. So on Android, the reliable route is the sleep timer built into each listening app.

Spotify

Spotify's sleep timer lives in the player, and it works the same on iPhone and Android:

  1. Start playing music or a podcast.
  2. Tap the Now Playing bar at the bottom to open the full player.
  3. Tap the three dots in the top-right corner, scroll down and tap Sleep timer.
  4. Pick a duration — from 5 minutes up to 1 hour — or choose End of track. For podcasts, tap the moon-shaped timer icon on the player instead.

This updated guide to Spotify's sleep timer walks through both the music and podcast flows step by step.

YouTube Music

  1. Start playing a song, playlist, or podcast.
  2. Tap the three dots in the top-right corner of the Now Playing screen.
  3. Tap Sleep timer and choose a duration — typically 5, 15 or 30 minutes, 1 hour, or End of track.

This YouTube Music sleep timer walkthrough shows the same steps with screenshots.

YouTube (for videos and ASMR)

If you fall asleep to videos rather than music, the main YouTube app has its own timer:

  1. Play the video you want to fall asleep to.
  2. Tap the gear icon and choose Sleep timer.
  3. Pick a duration — from 10 minutes up to 1 hour — or End of video, which pauses playback when the current video finishes.

This YouTube sleep timer guide covers the same steps on Android, iPhone, and the web.

Apple Podcasts (iPhone)

Apple's podcast app has a dedicated timer too: open the episode's Now Playing screen, scroll down to Sleep Timer, and pick an interval or End of Episode. If you would rather have one timer for everything on your iPhone, the Clock app's "Stop Playing" method above covers podcasts as well.

Which method should you use?

MethodWorks onWhat it stopsTimer choices
iPhone Clock → Stop PlayingiPhoneAny app, system-wideAny duration you set
Spotify sleep timeriPhone + AndroidSpotify only5 min – 1 hr, or end of track
YouTube Music sleep timeriPhone + AndroidYouTube Music only5 min – 1 hr, or end of track
YouTube sleep timeriPhone + AndroidYouTube videos only10 min – 1 hr, or end of video
Apple Podcasts sleep timeriPhoneApple Podcasts onlyIntervals, or end of episode

The rule of thumb: on iPhone, use the Clock app's "Stop Playing" — one timer covers everything. On Android, use the timer inside the app you are listening to, since nothing system-wide does the job.

FAQ

Is a sleep timer the same as an alarm?

No — they do opposite jobs. A sleep timer stops audio after a countdown, so nothing plays while you sleep. An alarm starts a sound at a fixed time, to wake you up. If you want to wake up to music instead, see our guide to changing your alarm sound on iPhone and Android.

Will the sleep timer turn off my screen or lock the phone?

On iPhone, no: "Stop Playing" only stops the media — the screen stays as it was. Your phone's normal auto-lock still applies, so the screen will dim and lock on its own schedule. App-specific timers behave the same way: they pause playback, nothing more.

Why did my music keep playing after the timer ended?

The most common cause: an app's sleep timer only stops its own app. If you set Spotify's timer but fell asleep to YouTube, YouTube keeps playing. On iPhone, the Clock app's "Stop Playing" is the only method that stops everything. Also double-check that you tapped Start — setting the duration alone does not begin the countdown.

Does the iPhone sleep timer work with Spotify, YouTube, and Netflix?

Yes. Because the Clock app's "Stop Playing" acts system-wide, it stops audio and video from any app when the timer ends — Spotify, YouTube, Netflix, audiobooks, all of them. App-specific timers, by contrast, only control their own app.

Does Android have a sleep timer built in?

Not a system-wide one like the iPhone's. Google's Clock app timer only plays a sound when it ends, and Bedtime mode does not pause media. Use the sleep timer inside Spotify, YouTube Music, or YouTube — or a third-party "sleep timer" app from Google Play, which can pause media after a countdown.

Will the timer use much battery?

Barely any — it is just a countdown. And by stopping hours of overnight streaming, a sleep timer usually saves battery compared to letting music play until morning.