The easy way: let the page do it
Web pages can ask the browser to keep the screen awake. The feature is called the Screen Wake Lock, and it is supported in Chrome and Edge from version 84, Safari from 16.4 and Firefox from 126, which covers every current browser.
Every clock on this site uses it.
- In full screen, the clock asks for the screen to stay on automatically.
- Outside full screen, click Keep awake under the clock. The button's border turns red and the label changes to Screen stays on when the browser has agreed.
There is one rule to know. The browser only honours the request while the page is visible. If you switch to another tab, minimise the window or lock the device, the request is dropped. Our clocks ask again as soon as you come back.
A browser can also refuse, for example when the battery is very low. If the button does not change, use the system settings below.
Windows 11
- Open Settings > System > Power & battery.
- Open Screen, sleep, & hibernate timeouts.
- Set Turn my screen off after and Make my device sleep after to a longer time for when the PC is plugged in.
Microsoft has shortened the default timeouts in recent updates to save energy, so a PC that used to stay on for ten minutes may now turn its screen off after five.
Mac
- Open System Settings and click Lock Screen.
- Change Turn display off on power adapter when inactive. Laptops have a matching setting for battery.
To stop a Mac sleeping when its display is off, laptops have an option under Battery > Options and desktops under Energy.
iPhone and iPad
- Open Settings > Display & Brightness.
- Tap Auto-Lock and choose a longer time or Never.
Apple notes that delaying Auto-Lock uses more power.
Android
Open Settings, look under Display for Screen timeout, and choose the longest time offered. The wording and the longest option vary between phone makers.
Set it back afterwards
A screen that never turns off uses more power and leaves an unlocked device unlocked. When you have finished using the device as a clock, return the timeout to what it was. This is the main advantage of the page-level method: it ends by itself when you close the tab.
Sources
- Stay awake with the Screen Wake Lock API, Chrome for Developers
- Power settings in Windows 11, Microsoft Support
- Set sleep and wake settings for your Mac, Apple Support
- Keep the iPhone display on longer, Apple Support
Steps checked against the linked sources in November 2026. Menus change; if a step does not match your device, tell us.