Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Mac Always on Top: Keep Any Window in Front

· 6 min read · Home Tech

In this article
  1. What Does "Always on Top" Mean on a Mac?
  2. Native macOS Features That Approximate Always on Top
  3. Third-Party Utilities: The Practical Solution
  4. How to Set Up Always on Top with Rectangle
  5. Common Problems and How to Fix Them
  6. Comparison: Native vs. Third-Party Tools
  7. Frequently Asked Questions

If you need a specific window to stay visible above all others on your Mac, the built-in method is to use the Option+Command+Z shortcut in apps that support it, or to use a third-party utility like BetterTouchTool or Rectangle for system-wide control. This article explains the native options, the best free and paid tools, and how to set up a persistent always-on-top behavior for any application.

What Does "Always on Top" Mean on a Mac?

On Windows, "always on top" is a common window property that keeps a window floating above all other windows, even when you click on another app. macOS does not have a universal, system-wide always-on-top toggle in the same way. Instead, macOS offers a few different mechanisms that achieve a similar effect, each with its own limitations.

The most common native approach is the "Float on Top" feature found in some apps, such as QuickTime Player, Calculator, and Stickies. You can enable it from the app's Window menu or by pressing Option+Command+Z. However, this only works if the app developer has implemented the feature. For apps that don't, you'll need a third-party utility.

Native macOS Features That Approximate Always on Top

Before turning to third-party tools, it's worth knowing what macOS offers out of the box:

  • Float on Top (Option+Command+Z): Available in apps that support it, such as QuickTime Player, Calculator, and Stickies. When enabled, the window stays above all others, even when you switch to another app.
  • Mission Control Spaces: You can assign a window to all Spaces (desktops) by right-clicking its title bar and choosing Options > All Desktops. This keeps the window visible when you swipe between Spaces, but it doesn't keep it above other windows within the same Space.
  • Picture-in-Picture (PiP): For videos, Safari and Chrome support PiP, which floats a small video player above all windows. This is a special case of always on top, but only for video content.

These native options are limited. If you need to keep a notes app, a chat window, or a spreadsheet visible while working in another app, you'll likely need a dedicated utility.

Third-Party Utilities: The Practical Solution

Several free and paid apps add a global always-on-top toggle to macOS. The most popular and reliable ones are:

  • Rectangle (Free, Open Source): Primarily a window manager, but it includes a "Float on Top" shortcut. You can assign a custom keyboard shortcut (e.g., Control+Option+Space) to toggle the frontmost window's always-on-top state.
  • BetterTouchTool (Paid, ~$10): A powerful customization tool that lets you assign a keyboard shortcut, trackpad gesture, or even a menu bar button to toggle "Float on Top" for any window.
  • Magnet (Paid, Mac App Store): A window manager that also includes a "Keep on Top" option in its menu bar icon.
  • Hammerspoon (Free, Open Source): A scripting tool for advanced users. You can write a small Lua script to bind a hotkey to the hs.window.filter and hs.window.setLevel functions.

All of these work by setting the window's level to a higher value than the normal window level, which is exactly how the native "Float on Top" works under the hood.

How to Set Up Always on Top with Rectangle

Rectangle is a great starting point because it's free and straightforward. Here's how to configure it:

  1. Download and install Rectangle from the official website or Homebrew (brew install --cask rectangle).
  2. Launch Rectangle. It will appear as a small icon in your menu bar.
  3. Open Rectangle's Preferences (click the menu bar icon and select Preferences).
  4. Go to the Shortcuts tab.
  5. Find the "Float on Top" action. By default, it may be unassigned. Click the field and press your desired shortcut, e.g., Control+Option+Space.
  6. Close Preferences. Now, click any window to make it active, then press your shortcut. The window will stay above all others. Press the shortcut again to turn it off.

If Rectangle doesn't work for a specific app (rare), try BetterTouchTool, which has a more aggressive "Always on Top" option that can override some app-specific behaviors.

Common Problems and How to Fix Them

Users often run into a few issues when trying to keep a window on top:

  • Shortcut conflicts: If your chosen shortcut doesn't work, it may already be used by another app. Try a different combination, like Control+Option+F.
  • Window doesn't stay on top after restart: Most utilities do not remember which windows were set to float. You'll need to re-enable it after relaunching the app. Some tools like BetterTouchTool can be scripted to auto-apply, but it's not default.
  • Full-screen apps ignore always on top: When an app is in full-screen mode (using its own Space), it will cover your floating window. Exit full-screen or use the app in a normal window.
  • Menu bar apps (like Rectangle) not working: If the shortcut does nothing, check that Rectangle is actually running (icon in menu bar). On macOS Sonoma and later, you may need to grant Accessibility permissions in System Settings > Privacy & Security > Accessibility.

Comparison: Native vs. Third-Party Tools

Here's a quick comparison to help you decide:

  • Native Float on Top: Free, no extra software, but only works in apps that support it. Great for QuickTime or Calculator.
  • Rectangle: Free, lightweight, system-wide, but limited to a keyboard shortcut. Ideal for most users.
  • BetterTouchTool: Paid, but extremely flexible (gestures, buttons, triggers). Best for power users who want deep customization.
  • Magnet: Paid, simple, but adds another menu bar icon. Good if you already use Magnet for window snapping.

For most people, Rectangle is the best balance of cost and functionality. If you only need the native feature, you can stick with that.

Frequently Asked Questions

Does macOS have a built-in always-on-top for any app?

No, macOS does not have a system-wide built-in toggle. The native "Float on Top" (Option+Command+Z) works only in apps that explicitly support it, such as QuickTime Player, Calculator, and Stickies. For all other apps, you need a third-party utility.

Is there a free way to keep any window on top?

Yes. Rectangle is a free, open-source app that adds a global "Float on Top" shortcut. You can assign any keyboard shortcut to toggle the frontmost window's always-on-top state. It works with virtually all apps.

Why doesn't Option+Command+Z work in Safari or Notes?

Because those apps have not implemented the "Float on Top" feature. The shortcut is only recognized by apps that have a Window menu item for it. Apple has not made it a system-wide behavior.

Will always-on-top work in full-screen mode?

No. When an app is in full-screen mode, it occupies its own Space and will cover any floating windows. You must use apps in normal (non-full-screen) windows for the always-on-top effect to work.

Can I make a window always on top automatically for a specific app?

Yes, with BetterTouchTool you can create a trigger that automatically applies "Always on Top" when a specific app becomes active. Rectangle does not have this automation, but you can use AppleScript or Hammerspoon to achieve it.