Yes, YouTube has a built-in Sleep Timer for mobile apps (Android & iOS) and desktop, accessed via the settings gear on a video to automatically pause playback after a set time (e.g., 10, 30, 60 mins) or at the end of the current video, helping manage viewing sessions.
The Sleep Timer is available on YouTube's mobile apps for both iOS and Android and on desktop via the browser. It's also part of the YouTube Music app, with some slight differences in the available timing options.
Go to the video you'd like to watch. Tap Settings in the player. Tap Sleep timer . Select how long you want the timer to run before your video automatically pauses.
Tap your profile picture . Tap Settings. Tap General. Next to Remind me when it's bedtime, tap the switch to On or Off .
If you're connected to a mobile network, Autoplay will stop automatically if you've been inactive for 30 minutes. If you are on Wi-Fi, Autoplay will stop automatically after 4 hours.
The "30-second rule" on YouTube refers to the critical first moments of a video, where creators must hook viewers within about 30 seconds to get them to keep watching, as YouTube registers meaningful engagement after this mark, impacting visibility and watch time. It's a key focus for audience retention, with strategies involving dynamic editing (B-roll, angles), emotional hooks, and clear value propositions, but it's distinct from copyright myths about using 30-second music clips.
Set a sleep timer. Use the app's sleep timer to stop playback after a set time (from 10 minutes to an hour). Where to find it: Tap the gear icon on any video, then select “Sleep timer.”
Our built-in timer lets parents limit screen time by telling kids when it's time to stop watching. The timer will display a friendly alert and stop the app when the session is over, so you don't have to.
By default YTTV will turn off after 4 hours without any interactions. You can change this to 24 hours.
With the YouTube app
The problem is, some of them are so long, you run the risk of waking up with the video still playing. That's where a sleep timer can be helpful: If you know it takes you about 20 minutes to fall asleep, you can set your sleep timer for 20 minutes (maybe a bit more to be safe).
Try Using a Different Browser
If you experience pauses or errors while watching YouTube in a browser, the issue may be related to your browser settings or an installed extension. To check, try playing the video in a different browser, such as Google Chrome, Mozilla Firefox, Microsoft Edge, or Opera.
Continue watching?” message will surface on your screen if you're watching videos with Autoplay turned on before 30 minutes of uninterrupted watching on mobile, 60 minutes on web, or 180 minutes on TV. If you'd like to continue watching, you can select “Yes”.
Command Prompt: Enter the shutdown command (shutdown /s /t [seconds]) for quick one-time countdowns. Task Scheduler: For recurring shutdown timers or to define specific triggers and conditional settings, use Task Scheduler.
Android TV
This involves appending a question mark followed by “start=” and “end=” parameters, along with the respective number of seconds. For instance, if you want the video to start at 1 minute and 16 seconds and end at 2 minutes and 30 seconds, you would add “? start=76&end=150” to the end of the URL.
Turn off the autoplay function so that YouTube doesn't continuously play one video after another. Try taking a break from YouTube altogether for several days or a week to “reset” your system. Find other activities you enjoy that can replace some of your usual YouTube time.