keepscreenunlocked.

Caffeine alternative

A Caffeine alternative that needs nothing installed.

Caffeine is a solid little Mac menu-bar app for keeping your display awake. This does the same basic job from a browser tab — no download, works on machines you don't have admin rights on, works on Windows too.

Inactive

Pick a duration and hit start.

Duration

Stealth screen
— covers the page with black (or your own wallpaper) so it looks like nothing is open.
Fullscreen
— the same cover, edge to edge. Press Esc to leave.
Ambient sound

Starts only when you press Play. It fades out on its own, when you stop the tool, and when you enter stealth screen (unless you tick the box above).

Feedback

When to actually use Caffeine instead

If you're on your own Mac and keep needing this often, Caffeine is genuinely worth installing — a permanent menu-bar icon is more convenient than opening a tab every time, and it keeps working even if you close your browser entirely. This tool makes more sense for the occasional need, a machine that isn't yours, or anywhere you can't or don't want to install anything.

One real difference: Caffeine (and tools like it) can be configured to prevent full system sleep, not just display sleep. This tool, like every browser-based wake-lock tool, can only ever hold the display awake — see our Wake Lock API explainer for why that's a hard browser limitation, not a feature gap we could close.

Choosing between the options

People searching for a Caffeine alternative are usually in one of four situations, and the best answer differs for each.

  • You're on a Mac and want permanent convenience. Caffeine, Amphetamine or the built-in caffeinate command in Terminal. Amphetamine adds triggers and schedules; caffeinate -d needs nothing installed.
  • You're on Windows. Caffeine is Mac-only; the Windows equivalents are Microsoft PowerToys' Awake utility or the power settings in Windows itself. A browser tool covers short, occasional sessions.
  • You can't install software. Locked-down work or school computers often block installs. A browser page needs no admin rights, though some managed machines enforce lock policies a browser can't override.
  • You need it on a phone or tablet. Those platforms have no Caffeine at all. A browser wake lock works on current Chrome, Safari and Firefox on mobile.

How the approaches differ under the hood

Desktop utilities such as Caffeine call an operating-system power API to assert that the display (or the whole system) should stay awake. A browser tool calls the web's Screen Wake Lock API, which the browser translates into the same kind of request for the display only. Neither works by simulating keypresses or moving the mouse, so neither changes your presence status in chat apps — though only the desktop tools can also hold off system sleep.

A side-by-side comparison, including PowerToys Awake and Amphetamine, is in Browser tool vs. desktop apps.

Questions

Is a browser tab as reliable as Caffeine?
For keeping the display on while the page is visible, yes — it uses the same kind of OS request. The tab must stay visible, and closing the browser ends the session, which Caffeine doesn't.
Does this work on a Mac?
Yes, in Safari 16.4+, Chrome or Firefox. See the Mac page for settings that can interfere.
Will it stop my Mac sleeping when I close the lid?
No. Closing the lid triggers system sleep on most Macs, and no browser tool can prevent that. For that you need a desktop utility, and even then Apple limits what it can do on a MacBook running on battery.