Skip to content

How-ToOS

How to Keep a Window Always on Top in Windows 11

Windows 11 has no built-in way to pin an ordinary window above the rest. We show how to keep any window always on top with Microsoft's free PowerToys (Win + Ctrl + T), plus Window TopMost Control, DeskPins, an AutoHotkey one-liner and OnTopReplica.

By , Systems & Technical Editor

5 min read

How to Keep a Window Always on Top in Windows 11

Windows 11 still has no general "always on top" switch for ordinary windows. Some apps have their own option, but if you want a calculator, a chat window, a hardware monitor or a recipe to stay visible while you work in something else, you need a small free tool. This guide shows the easiest way to do it with Microsoft's own PowerToys, then covers lighter alternatives and an AutoHotkey one-liner.

The steps are based on Microsoft's PowerToys documentation and the developers' own pages for the other tools, checked on 6 December 2026.

Before you start

  • You need a Windows 11 PC (PowerToys also supports Windows 10 version 2004 or newer) with a 64-bit x64 or Arm64 processor, according to Microsoft.

  • Decide whether you want to pin the real window (PowerToys, DeskPins, Window TopMost Control, AutoHotkey) or a live floating copy of it (OnTopReplica, covered below).

  • Pinned windows are best for windowed or borderless-windowed apps. If you want something to float over a game, run the game in borderless or windowed mode rather than exclusive fullscreen.

PowerToys is Microsoft's free collection of power-user utilities, and Always On Top is one of its modules. If you haven't installed it yet, our guide to Microsoft PowerToys walks through the basics.

  1. Install PowerToys. Microsoft recommends the GitHub release or the Microsoft Store. You can also run winget install --id Microsoft.PowerToys --source winget in Terminal.

  2. Open PowerToys Settings and select Always On Top in the left-hand list. Make sure the module is turned on.

  3. Click the window you want to pin so it's the active window.

  4. Press Win + Ctrl + T. That's the default shortcut. The window now stays above other windows, even when you click on something else.

  5. Unpin it by pressing the same shortcut again, or simply close the window.

Useful PowerToys settings

Microsoft lists several options worth a look in the Always On Top page of PowerToys Settings:

  • Activation shortcut - change Win + Ctrl + T if it clashes with another app.

  • Show Always on Top in the title bar context menu - lets you pin or unpin from a window's title bar right-click menu instead of a shortcut.

  • Show a border around the pinned window - a coloured outline so you can see which windows are pinned. You can set the colour, opacity, thickness and rounded corners.

  • Play a sound when pinning a window - an audible confirmation.

  • Do not activate when Game Mode is on - stops the shortcut working while you're playing a game.

  • Excluded apps - stops named apps from ever being pinned. Microsoft notes this matches partial names, so excluding "Notepad" also blocks Notepad++; add "Notepad.exe" to exclude only that app.

Known limits

Microsoft says Always On Top can't guarantee a pinned window will sit above other windows that are already topmost. It specifically lists Citrix, Remote Desktop and VMware windows, which may be topmost themselves, so your pinned window can appear behind them.

Method 2: DeskPins (tiny, click-to-pin)

DeskPins by Elias Fotinis is a long-standing free, open-source tool. It sits in the notification area; you grab a pin from its icon and click any window to make it topmost. The developer lists unlimited pins, global hotkeys and wildcard-based automatic pinning rules.

Be aware that the current version, 1.32, dates from February 2015, and the developer's download page lists Windows 10 and older, not Windows 11. It also needs the Microsoft Visual C++ 2008 SP1 Redistributable (x86). We compare it head to head with PowerToys in PowerToys Always On Top vs DeskPins.

Method 3: Window TopMost Control (portable, tray menu)

Sordum's free Window TopMost Control is another lightweight option, and unlike DeskPins its developer lists Windows 11 support. Its tray menu includes a list of open windows where you tick the one to keep on top.

  1. Download and run Window TopMost Control (there are x86 and x64 builds).

  2. Select the window you want to pin.

  3. Press Ctrl + Alt + Space, double-click the tray icon, or tick the window in the tray menu's window list.

  4. Use the same shortcut again to unpin it.

Sordum notes that to pin programs running as administrator, Window TopMost Control itself must also run as administrator. It also supports command-line parameters and a "Remove All Windows On Top" option.

Method 4: AutoHotkey (if you already use scripts)

If you already run AutoHotkey v2 scripts, you can add your own toggle. The WinSetAlwaysOnTop function makes a window stay above all others except other always-on-top windows, and a value of -1 toggles the setting. For example, this line in a v2 script toggles the active window with Ctrl + Space:

^Space::WinSetAlwaysOnTop -1, "A"

Pick a shortcut that doesn't clash with your apps or games. If you're weighing up scripts against Microsoft's tools more generally, see PowerToys Keyboard Manager vs AutoHotkey.

Alternative: a floating live copy with OnTopReplica

Sometimes you don't want to pin the real window at all - you want a small, always-on-top preview of it, such as a corner of a monitoring app or a video. OnTopReplica creates a real-time clone of any window, lets you crop it to a region, adjust its opacity and lock it to a screen corner, and has a click-through mode that turns it into an overlay. Its GitHub page describes it as being for Windows Vista to 10 and lists .NET Framework 4.7 as a requirement; the last release on GitHub is from April 2018.

Tips

  • Pin sparingly. A pinned window covers whatever is underneath it, including dialog boxes from other apps.

  • Use a border. PowerToys' coloured border makes it obvious which window is pinned.

  • Two monitors? Often the simpler answer is to put the reference window on a second screen; our dual monitor setup guide covers that.

For a side-by-side look at every option, see our best free always-on-top tools for Windows.

The bottom line

The easiest way to keep a window always on top in Windows 11 is PowerToys Always On Top: install PowerToys, click the window and press Win + Ctrl + T, then press it again to unpin. Sordum's Window TopMost Control is a lighter portable alternative, DeskPins still offers click-to-pin but hasn't been updated since 2015, and AutoHotkey users can add a one-line toggle.

In this article

Sources

  1. 01Microsoft Learn: PowerToys Always On Top utility
  2. 02Microsoft Learn: Install PowerToys
  3. 03Elias Fotinis: DeskPins
  4. 04Sordum: Window TopMost Control v1.3
  5. 05AutoHotkey v2 documentation: WinSetAlwaysOnTop
  6. 06OnTopReplica on GitHub

About the author

Marcus Thorne

Systems & Technical Editor

Marcus writes Forge PC's step-by-step build, troubleshooting and system optimisation guides. His background spans Windows kernel and power-state diagnostics, UEFI/BIOS configuration, NVMe storage arrays, ATX 3.1 power delivery and running local AI and LLM workloads on consumer graphics cards.

More from Marcus Thorne

Read next

Best Free Screen Ruler Tools for Windows 11 in 2026

Best Picks

Best Free Screen Ruler Tools for Windows 11 in 2026

The best free on-screen rulers for measuring pixels in Windows 11 in 2026: PowerToys Screen Ruler, ShareX Ruler, PicPick Pixel Ruler, Rooler, Just Color Picker and Color Cop, with who each suits, key features and the catches.

Hannah Vance4 min

How to Measure Pixels on Your Screen in Windows 11

How-To

How to Measure Pixels on Your Screen in Windows 11

Need the exact width of a button, image or gap between elements? We show how to measure pixels anywhere on your screen in Windows 11 with the free PowerToys Screen Ruler - shortcut, four tools, edge tolerance, extra units and display scaling - plus free alternatives.

Marcus Thorne4 min