How To Set Up Youtube Music Sleep Timer On iPhone, Android, Windows, or Mac

Whether it’s white noise, a favorite YouTube playlist, or a custom radio station we’ll do everything for sound sleep. And if you often sleep with music on, the sleep timer is a handy feature. It automatically shuts off the music or video after a stipulated period, so you can drift off worry-free. Thankfully it is super easy to set up a YouTube Music sleep timer, whether you’re using an iOS, Android, Windows, or macOS device.

How_to_set_up_Sleep_Timer_on_YouTube_Music_on_iPhone_Android_Windows_or_Mac

However, since YouTube didn’t offer the feature from the beginning, many users are still unaware of it. But don’t worry, this guide will walk you through the various methods, including built-in options and nifty workarounds to set up a sleep timer in YouTube Music.

Put a Timer on YouTube Music App for iPhone or Android

Notably, the sleep mode on YouTube Music is only available on the app. So, you can only put a sleep timer natively on iPhone, iPad, Apple Watch, and Android devices. Just follow the steps along to learn how it’s done.

Step 1: Open the YouTube Music app. Play the song or playlist you want to drift off to.

Step 2: Tap the three dots from the top-right corner. Select Sleep timer from the menu.

Put a Timer on YouTube Music App for iPhone or Android

Step 3: Next, choose the duration or End of track.

Put a Timer on YouTube Music App for iPhone or Android 2

Note: Even when listening to a playlist, the YouTube sleep timer will say End of track. However, that means the music will stop when the last song of the playlist ends.

Once the timer is up, the music will stop playing automatically. The only flip side to this feature is that it does not let you set a custom timing, it maxes up at 1 hour or end of the track/playlist. It’s in unison with Spotify’s sleep timer.

Tip: Why just limit yourself to sleeping with your favorite music, when you can wake up with it as well? Set YouTube Music as an alarm to wake up with the right vibe daily.

Set Custom Sleep Timer for YouTube Music App

If you’re not happy with YouTube offerings, you can set a custom sleep timer using the native settings of iPhone or Android.

For iPhone and iPad

Step 1: Play the music of your choice on YouTube Music.

Step 2: Now head over to the Clock app. Go to the Timer tab.

Step 3: Set the custom time. Next, tap the When Timer Ends button.

Step 4: Here, select Stop Playing and tap Set.

Set Custom Sleep Timer for YouTube Music App

And that’s it, your device will stop playing music when the timer ends. However, this is a one-time setting, i.e., you’ll have to set a timer every time, or shall we say every night.

For Android devices

While you can set a timer for an app on Android devices using the Digital Wellbeing app, it sets a timer for the whole day. In a nutshell, it accounts for the total hours spent on the app rather than the sleep timer. So, you’ll have to be mindful of that when using this workaround.

Step 1: Go to Settings → ‘Digital Wellbeing & parental controls’

Step 2: Tap All apps from the top-right corner. Find and select the YouTube Music app from the list.

Set Custom Sleep Timer for YouTube Music App Android 1

Step 3: Here, tap App Timer.

Step 4: Set the custom time and tap Done.

Set Custom Sleep Timer for YouTube Music App Android 2

How To Set Sleep Mode For YouTube Music on Mac or Windows

YouTube Music doesn’t offer a native app for Mac or Windows, so you have to rely on your web browser to play music. Moreover, YouTube Music’s web version does not support sleep mode. So in order to set a YouTube Music Sleep Timer on your laptop or desktop, you’ll have to use some workarounds.

Use the Shortcuts App to Set YouTube Music Sleep Timer on Mac

Step 1: Open the Shortcuts app. Click the + icon from the top bar to create a new shortcut.

Use the Shortcuts App to Set YouTube Music Sleep Timer on Mac 1

Step 2: Here, search and select Wait.

Step 3: Enter the time after which you want to stop the music. Notably, it’s in seconds, so you’ll have to do some math.

Use the Shortcuts App to Set YouTube Music Sleep Timer on Mac 2

Step 4: Next, search and select Quit App.

Step 5: Here select the browser running the YouTube Music. Also, click Show More and uncheck ‘Ask to Save Changes’.

Use the Shortcuts App to Set YouTube Music Sleep Timer on Mac 3

Now, when you run the shortcut, Mac will close the browser, i.e., YouTube Music website once the wait time is over. Notably, if you have some other websites running in the background, use a browser other than your default one.

Once you’ve set the sleep timer, you can also schedule a shutdown timer for your Mac so it can also sleep as soundly as you.

Put a Timer on YouTube Music on Windows via Task Scheduler

While the process is a bit complicated, you can use Windows Task Scheduler as a sleep mode alternative. Basically, you create or schedule a task to exit the browser playing YouTube Music at a certain time.

The great thing is that it can be a recurring task, so you don’t have to manually set it every day.

Step 1: Firstly, you’ll have to create a batch script. To do so, open Notepad.

Step 2: In the Notepad, copy and paste the following command TASKKILL /F /IM app.exe. Replace the ‘app.exe’ with the browser name, say Chrome.exe or Firefox.exe.

Put a Timer on YouTube Music on Windows via Task Scheduler 1

Step 3: Save this file with a BAT extension.

Put a Timer on YouTube Music on Windows via Task Scheduler 2

Step 4: Now open Task Scheduler. Click Create Task.

Step 5: Give the task an appropriate name and go to the Triggers tab.

Put a Timer on YouTube Music on Windows via Task Scheduler 3

Step 6: Click New. Select the schedule at which you want the task to run and click OK.

Put a Timer on YouTube Music on Windows via Task Scheduler 4

Step 7: Go to the Actions tab and click New. Here, select Start a program from the Action bar.

Step 8: Click Browse and select the batch script we created earlier. Select OK to Continue.

Put a Timer on YouTube Music on Windows via Task Scheduler 5

Step 9: Now press OK again to confirm the task creation.

Once done, the task will auto-trigger at the specified time and close YouTube Music (i.e., the browser). Notably, try not to set the action for your default browser, instead use an alternative browser for playing YouTube Music.

Set up a Sleep Timer for Chrome or Firefox Tabs

If you find setting up a shortcut for Mac and a task on Windows an unruly task, then we do have an easier workaround as well. You can use a Chrome or Firefox extension to set a timer to close a tab (YouTube Music) after a specified time.

Both extensions work similarly, we’re going to use the Chrome Extension to illustrate.

Step 1: Go to the Chrome tab with YouTube Music playing.

Step 2: Click the extension menu. Select Sleep Timer.

Step 3: Set the timing as desired. Click Start timer.

Set up a Sleep Timer for Chrome or Firefox Tabs

Step 4: Now move away from the tab. Once the timer is up, the tab will auto-close.

Sleep Worry Free With YouTube Music Sleep Mode

Sleep timers are essential for a lot of us, especially those who love to listen to their favorite songs as they drift off to sleep. Thankfully, we finally have a YouTube Music sleep timer for the apps. Hopefully, the platform will understand our needs and add the feature, or some variation of it, to the web version as well.

What other helpful features do you think YouTube Music should consider adding to its app or web version? Share your thoughts in the comments below.

Was this helpful?

Yes
No
Thanks for your feedback!

Last updated on 29 November, 2023

1 Comment

  1. thanks so much for the info about how to set a timer to switch off my you tube music – it s been so helpful i didn’t know i could do this on my
    i phone !!! i googled it and your page came up ! so thanks very much !!

Leave a Reply

Your email address will not be published. Required fields are marked *

The article above may contain affiliate links which help support Guiding Tech. The content remains unbiased and authentic and will never affect our editorial integrity.