How to Set a Bedtime Sleep Timer on iPhone to Stop Spotify, YouTube, or Music Automatically

Falling asleep to music, an audiobook, rain sounds, or a calm YouTube video is easy—until your iPhone keeps streaming until four in the morning, drains your battery, and wakes you up halfway through an unexpectedly loud next track.

Not every streaming app includes its own bedtime countdown, and hunting through separate menus inside YouTube, Safari, or BBC Sounds gets annoying quickly. Instead, your iPhone already has a built-in universal sleep timer hidden inside Apple’s Clock app that automatically stops playback across almost every music and video app at once.

Use Apple’s Built-In “Stop Playing” Clock Timer

Instead of playing an alarm ringtone when the countdown finishes, you can tell the iPhone Clock timer to pause all media and lock your screen silently.

  1. Open the Clock app on your iPhone (or ask Siri, “Open Clock”).
  2. Tap the Timers tab at the bottom-right corner of the screen.
  3. Set your desired countdown length—for example, 30 minutes or 45 minutes.
  4. Tap When Timer Ends right below the time picker.
  5. Scroll all the way to the very bottom of the ringtone list, past every sound effect, and select Stop Playing.
  6. Tap Set in the top-right corner, then tap the green Start button.

You can now switch to Apple Music, Spotify, YouTube, Netflix, Audible, or even background sleep sounds in Safari, turn off your screen, and go to sleep. When the countdown reaches zero, iOS gently fades out playback and switches off the screen instead of chiming loudly.

Important Caution for the Next Morning

Because the Clock app remembers whatever option you picked under When Timer Ends, a cooking timer set the following afternoon will also default to Stop Playing—which means your pasta timer will stay completely silent when time runs out.

The next time you set a kitchen or reminder countdown during the day, always glance at the When Timer Ends row and switch it back from Stop Playing to a ringtone such as Radial or Chimes so you do not miss an alert.

Quick Shortcut From Control Centre

Once Stop Playing is selected as your timer’s end action, you do not even need to open the Clock app each night:

  • Swipe down from the top-right corner of your iPhone screen (or swipe up from the bottom on Touch ID models) to open Control Centre.
  • Touch and hold the Timer icon to bring up the vertical countdown slider.
  • Drag up or down to pick 20, 30, or 60 minutes and tap Start—all without leaving Spotify or YouTube.

Which Apps Work With Apple’s Universal Sleep Timer?

Because Stop Playing acts at the system audio level rather than inside a single app, it stops playback across Apple Music, Spotify, YouTube, Apple TV, Audible, BBC Sounds, RadioPlayer, and videos playing in Safari or Chrome. Even better, your iPhone pauses cleanly and returns to the Lock Screen so you wake up with far more battery left in the morning.

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.