How to Alt F4 on Mac: quit apps & force close

5 min read

If you're searching for how to Alt F4 on Mac, you're probably coming from Windows and expecting one shortcut to close everything in front of you.

On Windows, Alt+F4 closes the app, but on macOS, closing a window is different from quitting the app, and most shortcuts use Command rather than Alt. By design, macOS keeps apps' menu bars and lightweight helpers alive after the last window closes to reopen faster, so there's no true Alt+F4 equivalent; instead, you pick your intent and use the matching shortcut. 

I'll walk you through everything.

How to Alt F4 on Mac  vs. Command + W close windows/tabs

So when people ask, how to do Alt F4 on Mac, I think the most direct equivalent would be Command + W.

How to Alt F4 on Mac  vs. Command + W close windows/tabs

What happens when you press it?

In browsers like Safari or Chrome, it closes the current tab. If a page is in a separate window, it closes that window. In document apps like Pages, Preview, and TextEdit, it closes the current document window. If there are unsaved changes, you get a prompt to save or cancel. In the Finder, it closes the current Finder window, not the app.

How it differs across app types

  • Browsers: tab focus matters. If your cursor is in the tab strip, Command + W closes that tab. If the browser only has one tab left, the window closes, but the browser keeps running.

  • Native apps with multiple windows: Command + W closes just that one window. Other windows of the same app stay open.

  • Single-window apps: Command + W may hide the content and leave the app idle, ready to reopen the file quickly.

Command + W doesn't quit the app; it only closes the window or tab you're viewing. The app keeps running in the background, so its name stays in the menu bar, and its icon remains in the Dock. 

How to do alt f4 on Mac Vs. Command + Q to quit the entire application

On a Mac, closing a window is not the same as quitting. So while the Command I covered above removes the window or tab you see. Command + Q stops the application itself, releases its memory, and removes the dot under its Dock icon.

When to use Command + Q

  • You finished with an app and want its processes to stop.

  • The app has no windows open, but still shows in the menu bar.

  • You closed every document, yet the app keeps beachballing later.

  • You are switching tasks and want RAM back for a heavy app like a browser or editor.

It still runs in the background, in confusion

If the app name remains in the top-left menu, you did not quit it. Press Command + Q while that app is active. Some apps have menu bar helpers that persist even after quitting; those are small background agents you can disable in the app's own settings or at login items later.

How to confirm it actually quit

  • The dot under the Dock icon disappears.

  • The app name in the menu bar changes to the next frontmost app.

  • In Activity Monitor, the process no longer appears.

The dot under the Dock icon disappears

Clean up stubborn apps for good with CleanMyMac's Uninstaller

If an app never behaves or relaunches small helpers after every reboot, remove it completely so you reclaim space and avoid conflicts. Here's how:

  1. Get your free CleanMyMac trial (free for seven days)

  2. Open and click Application > Scan.

  3. Next, click Manage My Applications.

  4. Find the problematic app, expand its triangle to see related components.

  5. Choose Uninstall to remove the app and all leftover files.

Safari reset selected in the Uninstaller module in CMM

That route clears hidden launch agents, caches, and support files that manual drag-to-Trash misses, which is why some apps feel still running" even after you quit them.

Force quit unresponsive apps — your emergency close

So what about when apps crash or freeze? You might be thinking: what's the Mac equivalent of Ctrl + Alt + Delete? Or looking again for how to Alt-F4 on a Mac. 

Here's what will work on a Mac.

  1. Press Command + Option + Esc to open the Force Quit Applications.

  2. Click the frozen app in the list. It usually shows "Not Responding."

  3. Click Force Quit and confirm.

Force quit unresponsive apps

When to use it

  1. Use Command + W to close a window or tab.

  2. Use Command + Q to quit a responsive app.

  3. Use Command + Option + Esc only when the app is unresponsive, beachballing, or blocking input.

What happens next

The app is killed immediately. Unsaved work is usually lost. Most apps try to restore your last session on relaunch, but there are no guarantees. If it freezes again right away, I restart the Mac before reopening it.

Keep on top of your Mac's performance

If you regularly hit unresponsive apps, a little system maintenance helps prevent the slowdowns that trigger freezes. I can highly recommend the Performance feature from CleanMyMac; here's how it works:

  1. Open CleanMyMac > Performance > Scan.

  2. Click View All Tasks and select items to run.

Free up Mac RAM with CleanMyMac

After updates or heavy installs, macOS can feel sticky. Reindexing search and refreshing file associations reduces odd delays, lowering the chance of apps hanging during routine tasks. These quick tasks can really help to maintain Mac health and reduce crashes.

Alternative methods beyond keyboard shortcuts

Menu bar red close button

  • Click the red dot to close the current window or tab.

  • The app usually stays running; quit with Command + Q or from the Dock if you want it fully closed.

Menu bar red close button

Dock options

  • Right-click the app icon > Quit.

  • Hold Option, right-click > Force Quit (same as Command Option Esc).

  • Right-click > Hide to get it off-screen without closing.

Trackpad or Magic Mouse

  • Three-finger swipe to switch full-screen spaces, then close the window in front.

  • Two-finger swipe on a tab bar to change tabs, then click the tab's x.

  • Secondary-click the Dock icon for Quit or Force Quit without the keyboard.

Touch Bar (MacBook Pro models that have it)

  • In Safari, close tabs from Touch Bar thumbnails.

  • Some apps show Close Window or Done on the Touch Bar, the same as the red close button.

Light maintenance reduces freezes that force these workarounds. I run CleanMyMac periodically so browsers and open dialogues stay responsive. It will not change shortcuts, but a tidy system means fewer stalls before they happen.

Pro tips: Shift + Cmd + W & complete app removal

Shift + Command + W

Closes all tabs in the current window in many browsers/editors, but leaves the app running.

Make your own "Alt+F4" style shortcut

  1. Go to System Settings > Keyboard > Keyboard Shortcuts > App Shortcuts.

  2. Click +, choose the app, set the menu title exactly (for example, Quit Safari), and pick a shortcut.

  3. Test to avoid colliding with existing shortcuts.

Make your own "Alt+F4" style shortcut

Third-party helpers

  • BetterTouchTool: map trackpad/mouse gestures to Quit or Close

  • Keyboard Maestro: Create unique commands

When closing isn't enough: remove the app cleanly

Use CleanMyMac > Applications > Uninstaller to delete the app and leftovers.

All apps selected in the Uninstaller module of CMM

Shortcuts worth memorizing

  • Command + W closes window/tab

  • Command + Q quits app

  • Shift + Command + W close all tabs in window

  • Command + Option + Esc Force Quit

  • Option + right-click Dock icon > Force Quit (mouse fallback)

Now you know how to Alt-F4 on Mac or as close as you can get to it.

Follow us
Blog FAQ