To undo on Windows, press Ctrl + Z. It reverses the last thing you did in the window that is currently active, and pressing it again steps further back; Ctrl + Y brings back what you undid.
These instructions are for Windows 11 and Windows 10, including File Explorer, Notepad, Microsoft Office and web browsers. Windows 10 reached end of support on October 14, 2025, but the shortcuts work the same way on both versions.
The Undo and Redo Shortcuts
Microsoft’s list of keyboard shortcuts in Windows gives Ctrl + Z as “Undo the previous action” and Ctrl + Y as the redo for anything undone with Ctrl + Z. Those two keys cover most everyday mistakes, and a few related shortcuts handle the cases they miss.
| Shortcut | What it does | Where it works |
|---|---|---|
| Ctrl + Z | Undoes the last action | Almost every Windows app, File Explorer, the desktop, text boxes on websites |
| Ctrl + Y | Redoes the action you just undid | Most Windows apps, including Office |
| F4 | Redo, or repeat the last simple action | Microsoft Office apps (some keyboards need Fn or F-Lock with it) |
| Ctrl + Shift + T | Reopens the last closed tab | Microsoft Edge and Google Chrome |
| Windows + V | Opens clipboard history | Windows 11 and 10, after it is turned on |
| Shift + Delete | Deletes a file without the Recycle Bin | File Explorer (this one cannot be undone with Ctrl + Z) |

A few programs use a different redo shortcut. If Ctrl + Y does nothing, hover over the program’s Redo button or open its Edit menu, where the shortcut is usually printed next to the command.
How to Undo Your Last Action
The shortcut only works in the window that has focus, which is the window you last clicked. Clicking somewhere else first can send Ctrl + Z to the wrong program.
- Click once inside the program where the mistake happened. In a document, click in the text; in File Explorer, click an empty part of the folder, not the address bar or search box.
- Hold down Ctrl and press Z, then let go of both keys. The last change disappears, or the moved or renamed file goes back where it was.
- Press Ctrl + Z again if more than one change needs to go. Each press takes back one more action, starting with the newest.
- If you went one step too far, press Ctrl + Y. The change you undid comes back.

Undo and redo work as a pair. Once you undo something and then make a new change, the redo history is gone, so check the result before you start typing again.
Undo With the Mouse
Most programs that support undo also show it on screen. Look for a curved arrow pointing left (Undo) and one pointing right (Redo) near the top of the window, or an Edit menu with Undo at the top.
- Notepad in Windows 11 has Edit > Undo. Microsoft added multi-level undo when it redesigned the app, as announced on the Windows Insider blog, so pressing Ctrl + Z repeatedly now steps back through several edits instead of only one.
- Word, Excel and PowerPoint have Undo and Redo on the Quick Access Toolbar or the Home tab, depending on the version and layout.
- Websites usually rely on the shortcut. Right-clicking inside a text box often shows Undo in the menu as well.
Undo Mistakes With Files in File Explorer
File Explorer keeps its own short list of recent file actions, separate from any app. Right after a mistake, Ctrl + Z in an open File Explorer window or on the desktop can reverse:
- A move. The file goes back to its original folder. This helps when you dragged something to the wrong place or moved files instead of copying them by mistake.
- A rename. The old name returns. Each Ctrl + Z reverses one rename, so after you rename multiple files at once in Windows 11 and the numbering comes out wrong, press it again until every name is back.
- A copy. The new copy is removed, and the original stays where it was.
- A delete. The file comes back out of the Recycle Bin into its folder.
Undo the file mistake as soon as you notice it. The list only holds recent actions from the current session, and other file operations in between make it harder to land on the right one.
Get a deleted file back from the Recycle Bin
If you notice the deletion later, the Recycle Bin is the better route. Microsoft’s steps to recover a deleted file work like this:
- Double-click Recycle Bin on the desktop.
- Find the file. Sorting by Date Deleted puts the most recent deletions together, and the search box at the top finds a file by name.
- Select the file, then select Restore the selected items. The file goes back to the folder it was deleted from.

Files deleted with Shift + Delete, files removed after the Recycle Bin was emptied, and many files deleted from USB drives or network folders never reach the Recycle Bin. Neither Ctrl + Z nor the Recycle Bin can bring those back. For that situation, follow the steps to recover permanently deleted files in Windows, which covers File History, Restore previous versions and Microsoft’s Windows File Recovery tool, and stop saving new files to that drive until you are done.
Undo in Word, Excel and PowerPoint
Office apps add a few extras on top of Ctrl + Z, according to Microsoft’s page on how to undo, redo, or repeat an action:
- Undo several steps at once. Select the small arrow next to Undo to see a list of recent actions, then choose how far back to go.
- Redo or repeat. Ctrl + Y or F4 redoes an undone action. When nothing has been undone, the same keys repeat your last simple action, such as a paste.
- Some actions are final. Saving and commands on the File tab cannot be undone; the button then reads Can’t Undo.
- Undo survives saving. Saving does not wipe the list, so you can still step back through earlier edits while the file is open.
- The default limit is 100 actions. In Excel, running a macro clears the undo list completely, so save a copy before you run one on important data.
Microsoft also documents a registry value, UndoHistory, under HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Excel\Options for raising Excel’s limit. Higher numbers use more memory and can slow Excel down, and editing the registry carries risk, so most people are better off with the default.
Word adds Version History for files saved in OneDrive or SharePoint and a way to recover unsaved documents. Both are explained in how to undo changes in Microsoft Word.
Reopen a Closed Browser Tab
Ctrl + Z does not reopen a tab. Browsers use their own shortcut: Ctrl + Shift + T reopens the last closed tab in both Microsoft Edge and Google Chrome, and Google’s Chrome keyboard shortcuts page notes that pressing it repeatedly reopens earlier tabs in the order they were closed. Inside a web page, Ctrl + Z still works for text you typed into a box or form, as long as you have not sent it.
Get Back Text You Cut or Copied Over
When you cut a paragraph and then copy something else before pasting, the first item is no longer on the normal clipboard. Clipboard history can rescue it, but only if it was on before the mistake. Microsoft’s clipboard help page explains the details:
- Press Windows + V.
- If you see a message that history is off, select Turn on. Items copied from now on are saved.
- When history is on, select the earlier item in the list to paste it where your cursor is.

Clipboard history keeps the 25 most recent items, each up to 4 MB, and it clears when the PC restarts unless you pin an item. The full set of options is in how to access the clipboard on Windows.
Undo System Changes With System Restore
A bad driver, an app install or a settings change that breaks Windows is not something Ctrl + Z can reach. System Restore is the closest thing to an undo button for Windows itself. According to Microsoft’s System Restore page, it returns system files, registry settings and installed programs to the state they were in when a restore point was made, without affecting your personal files.

- Open Control Panel, select Recovery, then Open System Restore. Another way is to press Windows + R, type
rstrui.exeand press Enter. - In the Restore system files and settings window, select Next.
- Pick a restore point dated before the problem started. If the one you need is missing, select Show more restore points.
- Select Scan for affected programs to see which apps and drivers would be removed or brought back.
- Select Next, then Finish. Windows restarts and applies the restore point.

System Restore only works if restore points exist, and System Protection has to be turned on for the system drive. Making one before a big change is quick; create a restore point in Windows 11 shows where the setting is.
What Undo Cannot Reverse
Knowing the limits saves time, because the fix depends on what kind of mistake it was.

- Saved and closed files. Closing a program clears its undo list. Use the app’s version history, AutoRecover or a backup instead.
- Permanent deletions. Shift + Delete, an emptied Recycle Bin and deletions on many USB drives need file recovery tools or a backup.
- Sent and posted content. An email, chat message or submitted form has already left the PC. Some email services show a short Undo button right after sending, controlled by that service’s own settings.
- Most Windows settings. Settings has no undo; change the setting back by hand, or use System Restore for system-level changes.
- Actions in apps without undo. Some programs, especially games and simple utilities, do not keep an undo history at all.
When Ctrl + Z Does Nothing
If the shortcut seems to be ignored, work through these checks:
- Wrong window. Click inside the program first. In File Explorer, a cursor in the address bar or search box undoes typing there instead of the file action.
- Nothing left to undo. The program reached its undo limit, or the history was cleared when the file or app was closed.
- The action is not undoable. Office shows Can’t Undo; other apps gray out the Undo command in the Edit menu.
- A keyboard problem. Test Ctrl + Z in Notepad. If it fails there too, try the other Ctrl key, a different keyboard, or check whether a key remapping tool or a keyboard maker’s app has changed the shortcut.
- F4 does nothing in Office. Press Fn + F4, or turn on F-Lock if your keyboard has it.
Undo on Windows: Questions People Ask
Is there a shortcut to undo closing a program?
No. Windows has no shortcut that reopens a program you closed, and closing a program clears its undo list. Start it again from the Start menu or taskbar. Unsaved work may still be recoverable through the app’s own recovery feature, such as AutoRecover in Microsoft Office.
How many times can I press Ctrl + Z?
It depends on the program. Office apps keep up to 100 actions by default, Notepad in Windows 11 keeps several levels, and some simple programs keep only one. When the list runs out, Ctrl + Z stops having any effect.
Does Ctrl + Z work after I save?
In Microsoft Office, yes: saving does not clear the undo list while the file stays open. Many other programs behave the same way, but closing the file or the program clears the list in almost every app.
Can I undo a Windows update?
Not with Ctrl + Z. If a restore point exists from before the update, System Restore (described above) returns system files, registry settings and installed programs to that point and leaves your personal files alone. Select Scan for affected programs first to see what will change.
Can Ctrl + Z undo an emptied Recycle Bin?
No. Emptying the Recycle Bin is permanent as far as undo is concerned. Restore the file from File History, OneDrive or another backup, or try Microsoft’s Windows File Recovery tool before you save anything new to that drive.