Close Window Shortcut Key (Windows, Mac, Chromebook)

For close window in Windows 11, use Ctrl+W: Close the current window or tab. The tables below list the recorded alternatives by operating system and application; there is no single key combination that works everywhere.

Operating system shortcuts

Operating system shortcuts
AppPlatformKeysWhat it does
macOS SonomamacOSCmd+WClose the current window
Ubuntu Linux 24.04 LTSLinuxCtrl+WClose the current window or tab
Ubuntu Linux 24.04 LTSLinuxAlt+F4Close the active window
Windows 10WindowsCtrl+WClose the current window or tab
Windows 10WindowsAlt+F4Close the active application
Windows 11WindowsCtrl+WClose the current window or tab
Windows 11WindowsAlt+F4Close the active application

Application shortcuts

Application shortcuts
AppPlatformKeysWhat it does
Google ChromeWindows, LinuxCtrl+Shift+WClose the current browser window
Microsoft EdgeApp contextCtrl+Shift+WClose the current browser window
Mozilla FirefoxApp contextCtrl+Shift+WClose the current window
VimApp contextCtrl+W+QClose the current split window

Full shortcut pages

Frequently asked questions

Close Window Shortcut Key (Windows, Mac, Chromebook)
For close window in Windows 11, use Ctrl+W: Close the current window or tab. The tables below list the recorded alternatives by operating system and application; there is no single key combination that works everywhere.
Does this shortcut work the same way in every app?
No. The listed contexts include macOS Sonoma, Ubuntu Linux 24.04 LTS, Windows 10, Windows 11, Google Chrome, Microsoft Edge, Mozilla Firefox, Vim. Check the table for each application and platform: the active window, keyboard layout and application settings determine which command receives the key press. An application being available on an operating system is not evidence that this exact binding works there.
What should I use on a Mac?
Use a macOS binding shown in the table, if one is recorded for your task and application. This page does not assume that replacing Ctrl with Cmd produces a working Mac shortcut. When an equivalent has not been documented, open the linked application reference and check its documented context before relying on it.