How to Keep a Window or Program Always on Top in Windows 10

Sometimes, you may need to keep a program's window always visible on top of other windows while working. Unfortunately, Windows 10 doesn’t have a built-in feature for this, but there are several effective ways to achieve it.

1. Using Microsoft PowerToys

Microsoft PowerToys is a free toolkit by Microsoft that enhances Windows functionality. With PowerToys, you can enable a feature to keep windows on top:

  • Download and install PowerToys from the official GitHub page.
  • Open PowerToys and select the Always on Top module.
  • Enable the feature and set up a hotkey combination for quick access (default is Win + Ctrl + T).
  • Now, to keep any window on top, simply use the chosen hotkey combination.

2. DeskPins Program

DeskPins is a lightweight, free program that allows you to "pin" windows to the desktop:

  • Download and install DeskPins.
  • Launch the program, and a pin icon will appear in the system tray.
  • Click the pin icon, then click on the window you want to keep on top.
  • To unpin, click the pin icon again or close DeskPins.

3. Using AutoHotkey

If you want to customize hotkeys, AutoHotkey is a powerful automation tool that lets you create scripts for various tasks, including keeping windows on top.

Example script:


#^t::  ; Win + Ctrl + T
Winset, AlwaysOnTop, , A
return

To use this script:

  • Download and install AutoHotkey.
  • Create a new text file with the .ahk extension and paste the code above.
  • Double-click the file to run it. Now, pressing Win + Ctrl + T will keep the active window on top.