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
| App | Platform | Keys | What it does |
|---|---|---|---|
| macOS Sonoma | macOS | Cmd+W | Close the current window |
| Ubuntu Linux 24.04 LTS | Linux | Ctrl+W | Close the current window or tab |
| Ubuntu Linux 24.04 LTS | Linux | Alt+F4 | Close the active window |
| Windows 10 | Windows | Ctrl+W | Close the current window or tab |
| Windows 10 | Windows | Alt+F4 | Close the active application |
| Windows 11 | Windows | Ctrl+W | Close the current window or tab |
| Windows 11 | Windows | Alt+F4 | Close the active application |
Application shortcuts
| App | Platform | Keys | What it does |
|---|---|---|---|
| Google Chrome | Windows, Linux | Ctrl+Shift+W | Close the current browser window |
| Microsoft Edge | App context | Ctrl+Shift+W | Close the current browser window |
| Mozilla Firefox | App context | Ctrl+Shift+W | Close the current window |
| Vim | App context | Ctrl+W+Q | Close 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.