Alt + F4 is a Windows keyboard shortcut that closes the program or window you currently have active, and on the desktop it can open the Shut Down Windows dialog to shut down or restart your PC.

Quick Scoop

  • On Windows, pressing Alt+F4 closes the active app or game, just like clicking the X button in the top-right corner.
  • If no apps are open and your desktop is active, Alt+F4 brings up the Shut Down Windows dialog so you can shut down, restart, or sign out.
  • In browsers or multi‑document apps, Alt+F4 closes the entire program, while shortcuts like Ctrl+F4 or Ctrl+W usually close just the current tab or document instead.

On many laptops, you may need to press Fn + Alt + F4 if the F-keys are mapped to volume/brightness by default.

A tiny “gotcha” from forums

In online gaming and forum culture, people sometimes jokingly tell newcomers to “press Alt+F4” as a fake “fix,” knowing it will instantly close their game or app. It’s not harmful, but it can be annoying if you weren’t expecting your program to vanish.

TL;DR: Alt+F4 = close the current app; on the empty desktop it opens the shutdown dialog.