Shortcut to Close App on Windows, Mac, Android, iPhone

How-to basics · Updated November 23, 2026

The fastest universal shortcut to close an app is Alt+F4 on Windows and Cmd+Q on macOS. On mobile, there is no single keyboard shortcut—you swipe the app away in the app switcher or use a gesture, but Android and iPhone both offer a “close all” button in the recent apps view.

Why a Shortcut Matters

Most people close apps by moving the mouse to a tiny X or clicking the File menu. That takes several seconds and multiple precise movements. A keyboard shortcut does the same thing in one keystroke, which adds up when you close many windows a day. On laptops, where trackpads are slow, shortcuts are even more valuable. On phones, closing apps properly can stop background battery drain and free up RAM, though modern operating systems manage memory well enough that you rarely need to force-close anything.

Windows: Alt+F4 and Its Variations

On Windows 10 and Windows 11, Alt+F4 closes the active window. If the window is the main app window, it exits the app entirely. If you have multiple windows open for the same app (like several Word documents), Alt+F4 closes only the active one; you would press it repeatedly to close them all.

  • Alt+F4 – close the active window or app.
  • Ctrl+Shift+Esc – open Task Manager, then select the app and press End Task (not a direct close, but useful when an app freezes).
  • Win+Down Arrow – minimize the window (not close, but often confused).
  • Alt+Space, then C – opens the window menu and selects Close (works in most classic apps).

On Windows, some apps (like games) may ignore Alt+F4 to prevent accidental exits; in that case, use the in-game quit option or Ctrl+Shift+Esc to force close.

macOS: Cmd+Q and Cmd+W

On a Mac, Cmd+Q quits the entire application, closing all its windows. Cmd+W closes only the front window, leaving the app running (like closing a browser tab). These are the two shortcuts you will use most.

If an app is unresponsive, you can force quit with Option+Cmd+Esc (opens the Force Quit window) or use the Apple menu > Force Quit. On a Mac with a Touch Bar, you can also add a “Quit” button to the Control Strip, but the keyboard shortcut is faster.

Android: Gestures and the Recents Screen

Android does not have a universal “close app” shortcut. The method depends on your phone’s navigation style:

  • Gesture navigation (most new phones): swipe up from the bottom and hold to open Recents, then swipe the app card away or tap “Clear all”.
  • Three-button navigation: tap the square Recents button, then swipe the app away or tap “Clear all”.
  • Some manufacturers (Samsung, OnePlus) offer a “Close all” button at the bottom of the Recents screen.

There is no keyboard shortcut on Android because most Android devices have no physical keyboard. If you use a Bluetooth keyboard, some apps respond to Ctrl+W or Alt+F4, but it is not consistent across the OS.

iPhone and iPad: App Switcher and Gestures

On an iPhone or iPad, there is no keyboard shortcut to close an app (except on iPad with a connected keyboard, where some apps support Cmd+Q—but that is rare and app-specific). The standard method:

  • Without Home button (iPhone X and later): swipe up from the bottom edge and pause in the middle to open the App Switcher, then swipe the app’s preview up and off the top of the screen.
  • With Home button (older iPhones): double-click the Home button, then swipe the app preview up.
  • Close all at once: iOS does not have a “close all” button; you must swipe each app individually. Some third-party shortcuts (like using a multi-finger gesture) are not supported by default.

On iPadOS, you can also use the Dock to quit an app by swiping it up from the Dock, but that only removes it from the Dock, not closes it.

How to Choose the Right Shortcut

Choosing the correct shortcut depends on what you actually want to do:

  • Close the entire app – use Alt+F4 (Windows) or Cmd+Q (Mac).
  • Close just the current window – use Cmd+W (Mac) or Ctrl+W in many Windows apps (like browsers). On Windows, Alt+F4 closes the window, but if the app has only one window, it quits the app.
  • Close a background app on mobile – use the Recents/App Switcher, not the Home button (pressing Home just minimizes).
  • Force close a frozen app – use Task Manager (Windows) or Force Quit (Mac). On mobile, you may need to clear the app’s cache or restart the phone.

A common mistake is to press Ctrl+W expecting to close an app on Windows—it often only closes a tab or document within the app, leaving the app running.

Common Problems and Misconceptions

One misconception is that closing an app on a phone “frees up memory” and makes the phone faster. In reality, iOS and Android are designed to keep apps in memory for quick relaunch; force-closing them can actually slow things down because the next launch takes longer. Only close an app if it is misbehaving or you want to stop background activity (like music playing).

Another issue: on Windows, some apps (like the Start menu or certain system dialogs) do not respond to Alt+F4. That is normal—they are not standard windows. Also, if you have a laptop with an Fn lock, you might need to press Fn+Alt+F4 because the F4 key is mapped to a hardware function (like brightness).

Finally, on macOS, pressing Cmd+Q in an app with unsaved changes will prompt you to save—there is no way to bypass that unless you hold Option+Cmd+Q (which quits without saving, but only in some apps). Always save your work first.

Frequently Asked Questions

Does Alt+F4 work on a Mac?
No. The Mac equivalent is Cmd+Q. Alt+F4 on a Mac does nothing (or may trigger a system function). If you are using a Windows keyboard on a Mac, the Alt key maps to Option, so Option+F4 still does not quit—use Cmd+Q.

How do I close an app that is not responding on Windows?
Press Ctrl+Shift+Esc to open Task Manager, find the app under “Processes”, right-click it, and choose “End task”. This force-closes the app, but you may lose unsaved work.

Is there a shortcut to close all apps at once on Windows?
No built-in shortcut closes all open apps at once. You can press Alt+F4 repeatedly, or use a third-party utility, but Windows does not have a native “close all” command.

Why does pressing the Home button on my phone not close the app?
The Home button (or gesture) only minimizes the app—it keeps running in the background. To actually close it, you must use the Recents/App Switcher and swipe it away.

Can I close apps on my phone with a keyboard?
On Android, if you connect a physical keyboard, some apps may respond to Ctrl+W or Alt+F4, but it is not universal. On iPhone, there is no keyboard shortcut for closing apps, even with a Smart Keyboard.

Alternatives to Keyboard Shortcuts

If you do not want to memorize shortcuts, there are other ways:

  • Mouse/trackpad: click the X in the corner (Windows) or the red close button (Mac).
  • Menu bar: File > Exit/Quit (Windows) or app name > Quit (Mac).
  • Taskbar/Dock: right-click the app icon and choose Close window/Quit.
  • Voice commands: On Windows 11, you can say “Close window” if you have Voice Access enabled. On Mac, you can use Siri to quit an app (e.g., “Quit Safari”).
  • Third-party tools: Apps like AutoHotkey (Windows) or BetterTouchTool (Mac) let you assign custom shortcuts to close apps, but they require setup.

For most users, the built-in keyboard shortcuts are the fastest and most reliable. Once you get used to them, you will never hunt for the X again.

Related

Try it: the Date Difference Calculator: days, months, years and weekdays between two dates, with the DATEDIF formulas.

More in How-to basics

Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources

Spotted an error in this guide? Let us know.