How to Force Quit on Windows (Close Any Frozen App)

To force quit a frozen app on Windows, press Ctrl + Shift + Esc and choose End task. Try Alt + F4 first, and see what each way does to unsaved work.

T

Technobezz

Editorial Team

Oct 2, 2026
•
16 min read
Technobezz
How to Force Quit on Windows (Close Any Frozen App)

Contents

Don't Miss the Good Stuff

Get tech news that matters delivered to your inbox.

To force quit a frozen app on Windows, press Ctrl + Shift + Esc to open Task Manager, select the app and choose End task to force close it. If the app still reacts, try Alt + F4 first, which only asks it to close and lets it offer to save. On our frozen test app, Alt + F4 brought up Windows' not responding box instead. Microsoft lists both shortcuts for Windows 11 and Windows 10 PCs.

Windows 11 can also put End task on the app's right-click menu in the taskbar, once you turn on one switch in Settings. Expect to lose anything you had not saved, because End task, the taskbar's End task and Terminate closed our apps without asking about saving. The exception on our PC was Notepad, which brought back every unsaved line by default.

We tried these methods on Windows 11, version 25H2, with Notepad, Paint and a small app we made freeze on purpose. Without its /f switch, taskkill only asked our frozen app to close, and the app kept running.

The short version

  • Try the gentle way first: click the app and press Alt + F4. A working app can still ask you to save.
  • Frozen app: press Ctrl + Shift + Esc, select the app and choose End task.
  • Windows 11 shortcut: turn on End Task in Settings, then right-click the app on the taskbar and choose End task.
  • No Task Manager: run taskkill /f /im with the app's file name in Command Prompt. Without /f, a frozen app keeps running.
  • Unsaved work: a forced close loses it, unless the app restores it the way Notepad did for us.

Ways to force quit on Windows at a glance

Press or openWhat it doesBest whenWhat happened to open work on our PC
Alt + F4Asks the active app to closeThe app still reactsPaint asked to save, Notepad closed and kept its text
Ctrl + Shift + Esc, then End taskEnds the app from Task ManagerThe app is frozenPaint lost its drawing, Notepad restored its text
Right-click the taskbar button, then End taskEnds the app without opening Task ManagerWindows 11, after turning on one switchNo question asked, Notepad restored its text
Ctrl + Alt + Delete, then Task ManagerReaches Task Manager from the security screenThe desktop or taskbar seems stuckThe same as Task Manager
Settings, Installed apps, Advanced options, TerminateEnds the app and its related processesBuilt-in apps such as Notepad and PaintNo message, Notepad restored its text
taskkill /f /im with the file name, in Command PromptForces the app to endTask Manager will not open or will not end itOur frozen app ended, plain taskkill left it running
taskkill /f /fi "status eq not responding"Ends every app Windows marks as not respondingSeveral apps hang togetherBoth frozen apps ended, Notepad and Paint kept running
Task Manager, Windows Explorer, Restart taskRestarts the taskbar and desktopThe taskbar or desktop is frozenThe taskbar was back in seconds, open apps kept running

Each step is more forceful than the one before, and Alt + F4 is the gentle one that lets a working app ask about saving. The ladder below shows the order we suggest.

Diagram of five steps for closing a stuck app on Windows, from Alt + F4 to restarting the PC.
Click to expand
Try them in this order: ask the app to close with Alt + F4 (1), end it with End task, which does not ask to save (2), force it from Command Prompt with taskkill /f (3), restart the taskbar and desktop (4), and restart the PC only as the last resort (5).

Try Alt + F4 first

Click the app's window so it is the active one, then hold Alt and press F4. Microsoft lists it as the shortcut to close the active window. It asks the app to close rather than ending it, so a working app still gets its say.

When we pressed Alt + F4 in Paint with one unsaved stroke on the canvas, Paint asked "Do you want to save your work?" with Save, Don't save and Cancel. Notepad behaved differently. It closed at once with two unsaved lines and no question, and when we opened it again, the same tab with both lines was back.

Paint asking Do you want to save your work after Alt + F4, above the Shut Down Windows box.
Click to expand
Alt + F4 lets a working app ask first. Paint asked to save (1), and Cancel kept it open (2). With no window selected, the same keys opened Shut Down Windows with Shut down chosen (3), so press Esc or Cancel (4).

Watch where the focus is before you press the keys. With no window selected, Alt + F4 opened the Shut Down Windows box on our PC, with Shut down already chosen and the line "Closes all apps and turns off the PC" under it. Press Esc or select Cancel if that box appears.

Closing a window does not always end the app behind it. Microsoft notes that some apps can run in the background even when you are not using them, and you can stop apps running in the background in Settings. If Alt + F4 never does anything, even in an app that works, see our fixes for keyboard shortcuts that stop working.

Force quit with Task Manager

Task Manager is the tool for an app that no longer reacts. Press Ctrl + Shift + Esc and it opens on the Processes page, with your open apps listed under Apps at the top. Select the frozen app, then select End task in the bar along the top of the window.

Task Manager Processes page with Notepad.exe selected and the End task button active at the top right.
Click to expand
Task Manager opens on Processes (1). Select the app (2), then select End task in the bar at the top (3).

End task stays grey until a row is selected, and hovering over it shows "Terminate the selected process". You can also right-click the app and choose End task, or press Alt and then E, the key tip Task Manager showed on our PC. On Windows 11 the button sits at the top right, in the command bar Microsoft added to every Task Manager page.

The app may be listed by its file name. On our PC, Task Manager listed Paint as mspaint.exe and Notepad as Notepad.exe. If the shortcut does nothing, here is every other way to open Task Manager in Windows.

Use Ctrl + Alt + Delete when the desktop is stuck

If the taskbar and the shortcut both seem dead, press Ctrl + Alt + Delete. Windows switches to its security screen, which Microsoft describes as the place to lock the desktop, switch user, sign out, change a password or open Task Manager.

On our PC the screen listed Lock, Switch user, Sign out, Change a password and Task Manager, with a Cancel button underneath. Select Task Manager, or press the Down arrow until it is highlighted and then Enter, and Task Manager opens on the desktop.

The Ctrl + Alt + Delete security screen with Task Manager highlighted below Change a password.
Click to expand
The Ctrl + Alt + Delete screen. Select Task Manager (1) to open it on the desktop, and Sign out is there if nothing else helps (2).

You can also skip the keys. Right-click an empty part of the taskbar and choose Task Manager, above Taskbar settings.

End a frozen app from the taskbar

Windows 11 can add End task to the menu you get when you right-click an app's taskbar button, so you do not need Task Manager at all. The switch is named End Task, with the line "Enable end task in taskbar by right click", and it was off on our PC until we turned it on.

The quickest way to it is the search box. Open Settings on your computer with Windows + I, type end task at the top, and select Enable end task in taskbar when it is suggested, as it was on our PC. Microsoft says that on Windows 11, version 25H2 the switch is under System > Advanced, in the Taskbar group. On our PC it was still under System > For developers, so look there if your System page has no Advanced entry.

Settings For developers page with the End Task switch, above the taskbar menu without and with End task.
Click to expand
On our PC the switch was under System > For developers (1), named End Task and off at first (2). Microsoft places it under System > Advanced. With it off, the taskbar menu had no End task (3). With it on, End task appeared above Close window (4).

With the switch on, right-click the frozen app's taskbar button and choose End task, just above Close window. It ended our frozen test app at once, with no message. On Notepad it also ended the app without a question, and the two unsaved lines were back when we reopened it.

With two Notepad windows open, the item read End all tasks, next to Close all windows. File Explorer had no End task item even with the switch on, and Microsoft says a PC managed by an organization can have these settings switched off by policy.

When Windows says an app is not responding

A frozen app is one that has stopped handling input. Microsoft's developer documentation says Windows declares a window hung once it has gone 5 seconds without picking up a message, and then lets you only move, minimize or close it. On our frozen test app, the title bar read (Not Responding) about five seconds after we clicked inside it.

The window itself did not fade at first. It only turned pale once Windows showed its message, and it could still be moved with Alt + Space and Move. Task Manager's Processes page left the Status column blank for it every time we looked, while the Details page said Not responding.

A frozen test app marked Not Responding over Task Manager, and the Windows box offering Close the program or Wait.
Click to expand
A frozen app: (Not Responding) appears in its title bar (1), while the Status column on Task Manager's Processes page stays blank (2). Asking it to close offers Close the program (3) and Wait for the program to respond (4).

When we pressed Alt + F4 on the frozen app, Windows showed a box named after the app's file. It said the program is not responding and warned "If you close the program, you might lose information." It offers Close the program and Wait for the program to respond, and Wait had the focus, so pressing Enter waits.

Waiting a little is worth it if the app was in the middle of saving or opening a file, since ending it then loses whatever it was doing. Our test app was frozen for good, and Wait left it frozen.

On our PC, Close the program first showed "Hang on while Windows reports the problem to Microsoft" with a progress bar before the app went away. The taskbar's End task ended the same kind of frozen app at once.

What a force quit does to unsaved work

End task, the taskbar's End task, taskkill and Terminate all closed our apps without asking about saving. End task in Task Manager closed Paint with an unsaved stroke and no question, and Paint opened again with a blank canvas. The drawing was gone for good.

Notepad is the big exception. By default it keeps your unsaved tabs between sessions, and on our PC it brought back every unsaved line after Alt + F4, End task, the taskbar's End task, plain taskkill without /f and Terminate. After End task it even kept a line we typed about half a second before ending it.

Notepad reopened after End task with five unsaved lines, above its When Notepad starts setting.
Click to expand
After End task, Notepad came back with the tab still marked unsaved (1) and all five lines (2). Continue previous session (3) was the setting on our PC. Start new session and discard unsaved changes (4) loses the text instead.

That behavior comes from one setting. In Notepad, select the gear icon to open its settings and look under Opening Notepad for When Notepad starts, where Continue previous session was selected on our PC. With Start new session and discard unsaved changes chosen instead, Alt + F4 asked whether to save, and after End task Notepad came back empty with six lines lost.

A restored tab is still not a saved file. Microsoft says the saved session does not affect your files, so save anything that matters as a proper file once Notepad is back.

If Word or Excel was the app you ended, see whether it can recover the file before you redo the work. Our guides show how to recover an unsaved Word document and how to get back an Excel file you did not save.

Close an app from Settings with Terminate

Settings has a force quit button of its own. Open Settings > Apps > Installed apps, find the app, select the three dots on the right and choose Advanced options. Scroll to Terminate, which reads "Immediately terminate this app and its related processes", and select the Terminate button.

Installed apps in Settings with Notepad's Advanced options and the Terminate button on the next page.
Click to expand
In Settings > Apps > Installed apps, select More options (1) and Advanced options (2). Terminate says it immediately ends the app and its related processes (3), and the Terminate button does it (4).

One click closed Notepad with no message, and its unsaved lines were back when we opened it again. Paint had the same button. Microsoft Edge, a classic desktop program, offered only Modify and Uninstall in its menu, and Microsoft says some apps have no Advanced options at all.

Force quit from Command Prompt with taskkill

Command Prompt is the fallback when Task Manager will not open or will not end an app. Open the Run box with Windows + R, type cmd and press Enter. On our PC that opened Command Prompt inside Windows Terminal, and there are other ways to open Command Prompt if the Run box is blocked.

Run tasklist first to see every running process. Find your app's file name in the first column.

tasklist

Then end the app with taskkill and the /f switch. This line ends Notepad.

taskkill /f /im notepad.exe

Replace notepad.exe with the name tasklist shows for your app. Microsoft's documentation describes /f as forcefully ending processes, /t as also ending any child processes the app started, and /pid as ending a process by its ID number instead of its name.

Do not leave out /f. When we ran taskkill /im on our frozen test app without it, Command Prompt printed "SUCCESS: Sent termination signal to the process", yet the app kept running. With /f added, Command Prompt reported that the process has been terminated, and the app was gone.

Command Prompt output of taskkill without and with the /f switch on a frozen test app.
Click to expand
Without /f, taskkill printed SUCCESS but the frozen app kept running (1). With /f, the app was ended (2).

Without /f, taskkill only asks the app to close. On a working Notepad with two windows open, each run closed one window quietly, so it took two runs to close Notepad, and its unsaved lines were still there afterwards. You do not need an administrator Command Prompt for your own apps, since ours was an ordinary one and /f still ended the frozen app.

PowerShell can do the same job. Open Windows Terminal with a Windows PowerShell tab, run Get-Process to find the app's name, then run Stop-Process with that name, as below. It ended our frozen test app with no confirmation and no administrator rights, and Microsoft says Run as administrator is needed only to stop a process that another user owns.

Stop-Process -Name notepad

Close every frozen app at once

If several apps hang together, one command ends every app Windows marks as not responding. Check what it will hit first with this tasklist line, typing the quotes as plain straight quotes.

tasklist /fi "status eq not responding"

Then run taskkill with the same filter. It ends everything on that list that it is allowed to end.

taskkill /f /fi "status eq not responding"

The quotes matter. When we pasted the command with curly quotes, taskkill stopped with "ERROR: Invalid argument/option - 'eq'". The same error appeared with no quotes at all, and with straight quotes it ended both frozen copies of our test app while Notepad and Paint kept running.

Command Prompt output of tasklist and taskkill with the not responding filter, using curly, no and straight quotes.
Click to expand
The not responding filter also listed dwm.exe (1). With curly quotes (2) and with no quotes (3) taskkill failed with Invalid argument. With straight quotes it ended both frozen apps and was refused on dwm.exe (4).

The list held one surprise. Along with the frozen apps, tasklist named dwm.exe, the Desktop Window Manager that Microsoft says draws the stand-in copy of a hung window, and taskkill tried to end it too before Windows refused with "Access is denied". Run the command from an ordinary Command Prompt, as we did, and leave dwm.exe alone if you end processes one at a time.

When a frozen full-screen window hides Task Manager

A frozen window that fills the whole screen can hide Task Manager. We froze a window covering the entire screen and pressed Ctrl + Shift + Esc. Task Manager stayed hidden behind it, and only Windows' not responding box came up.

The fix that worked is a Task Manager setting, and it is best turned on before you need it. Open Task Manager, select Settings at the bottom left, and under Window management tick Always on top, which was off on our PC. After that, Ctrl + Shift + Esc brought Task Manager up above the frozen full-screen window, ready for End task.

A frozen full-screen window, then Task Manager settings with Always on top ticked shown above it.
Click to expand
A frozen window covering the whole screen (1). In Task Manager's Settings (2), tick Always on top (3), and Task Manager then appeared above the frozen window.

A second desktop can help too, with one catch. Press Windows + Ctrl + D to create a new desktop, then press Ctrl + Shift + Esc there. That showed Task Manager on the new desktop only when it was not already running, and when it was, the shortcut jumped straight back to the first desktop with Task Manager still hidden.

When Task Manager will not end the app

If End task does not end an app, the Details page has a stronger option. Right-click the app on the Processes page and choose Go to details, which opened the Details page with the app's file selected on our PC. Details showed our frozen app's status as Not responding, which the Processes page never did.

Right-click the file there and choose End process tree. Windows warns that open programs tied to that process will close and you will lose any unsaved data, then asks you to confirm with a second End process tree button. On our PC that ended the frozen app.

Task Manager Details page right-click menu with End process tree, and the confirmation box below it.
Click to expand
On the Details page (1), right-click the app and choose End process tree (2), then confirm with the End process tree button (3).

The command line version is taskkill with both /f and /t, which Microsoft says also ends the child processes an app started. If you see "Access is denied", Microsoft says stopping a process that another user owns needs an administrator, and Windows refused our command the same way on one of its own processes, so leave Windows' own processes alone.

If one app freezes again and again, the app itself is the likely problem. Update it, or uninstall the program and install a fresh copy. If many apps hang every day, look at the PC instead, starting with our guide for when Windows 11 keeps freezing.

If the taskbar or the whole PC is frozen

When the taskbar, Start menu or desktop stops responding, restart Windows Explorer instead of the PC. Open Task Manager, type explorer in its search box and select Windows Explorer. The End task button turns into Restart task, and right-clicking offers Restart instead of End task.

Task Manager search for explorer with Windows Explorer selected and the Restart task button.
Click to expand
Type explorer in Task Manager's search box (1) and select Windows Explorer (2). The End task button becomes Restart task (3).

When we chose Restart, the taskbar vanished for a moment and was back within about four seconds. The apps we had open were still running afterwards, their taskbar buttons back in place. If the taskbar keeps failing, follow our fixes for a taskbar not working in Windows 11, or see what to do when Windows Explorer keeps crashing.

A black or blank screen has its own shortcut. Microsoft says Windows + Ctrl + Shift + B resets the graphics driver, and that you should hear a beep or see the screen flicker if it worked. Its blank screen advice also suggests Ctrl + Alt + Delete, then Task Manager and a Windows Explorer restart.

If nothing on screen responds at all, press Ctrl + Alt + Delete and choose Sign out, or restart the PC. Holding the power button until the PC turns off is the last resort. Our guide shows how to restart a computer that is not responding and lose as little as possible.

How we tested this guide

We tested this on Windows 11, version 25H2, closing an app we froze on purpose with Task Manager and PowerShell.

Frequently Asked Questions

What is the shortcut to force quit on Windows?

Press Ctrl + Shift + Esc to open Task Manager, select the frozen app and choose End task. Alt + F4 is the gentler shortcut, which asks the active app to close and lets it offer to save first.

Do I lose unsaved work when I force quit an app?

Usually, yes. End task, taskkill and Terminate closed apps on our PC without asking about saving, and Paint lost its drawing. Notepad brought its unsaved text back by default, because it keeps your session between launches.

Is Alt + F4 the same as force quit?

No. Alt + F4 asks the active app to close, so a working app such as Paint can ask you to save first, and a frozen app may not close, as on our PC, where Windows showed its not responding box instead. With no window selected, it opens the Shut Down Windows box instead.

How do I force quit without Task Manager?

On Windows 11, turn on End Task in Settings, then right-click the app on the taskbar and choose End task. You can also run taskkill /f /im with the app's file name in Command Prompt, or use Terminate under the app's Advanced options in Settings.

Why is End task missing when I right-click the taskbar?

The item stays hidden until you turn on End Task in Settings, which searching Settings for end task finds. Microsoft places the switch under System > Advanced on Windows 11, version 25H2, while on our PC it was still under System > For developers. A work or school PC can block the setting, and File Explorer never showed the item on our PC.

How do I close a frozen full-screen app?

Turn on Always on top in Task Manager's settings. With it ticked, Ctrl + Shift + Esc brought Task Manager above a frozen full-screen window on our PC. A new desktop made with Windows + Ctrl + D also worked for us, but only when Task Manager was not already open.

How do I close all programs that are not responding at once?

Run taskkill /f /fi "status eq not responding" in Command Prompt, typing straight quotes. On our PC it ended every frozen app and left working apps open, although it also tried to end dwm.exe and was refused.