How To Undo And Redo With Keyboard Shortcuts On Windows (2027)
Press Ctrl + Z to undo your last action on Windows, and Ctrl + Y to redo it.
The same two shortcuts work in most apps, in File Explorer and in Microsoft Office.
This guide shows what each one does, where the results differ, and what to try when they do nothing.
Table of Contents
- Undo and redo shortcuts at a glance
- How to undo with Ctrl + Z
- How to redo with Ctrl + Y
- Undo and redo in File Explorer
- Undo and redo from the right-click menu
- Undo, redo and repeat in Word and Excel
- How many steps you can undo
- Use the Edit menu or Alt + Backspace
- When Ctrl + Z or Ctrl + Y does nothing
- More Windows shortcuts
- Sources
- More laptop and PC hardware guides
Undo and redo shortcuts at a glance
| Action | Shortcut | What Microsoft says it does |
|---|---|---|
| Undo | Ctrl + Z | Undoes the previous action |
| Redo | Ctrl + Y | Redoes an action that was undone with Ctrl + Z |
| Repeat (Office) | F4 or Ctrl + Y | Repeats the last command or action, if possible |
How to undo with Ctrl + Z
- Click in the app or window where you made the mistake.
- Press and release Ctrl + Z once.
- Press it again to step back through earlier actions, one at a time.
Microsoft’s Windows shortcut list describes Ctrl + Z as undoing the previous action, and as undoing the last typing in text fields.
How to redo with Ctrl + Y
- Press Ctrl + Z to undo an action.
- Press Ctrl + Y if you want that action back.
Redo only works after an undo, so Ctrl + Y has nothing to restore until you have pressed Ctrl + Z first.
Microsoft Word’s own list adds the words “if possible” to redo, so some actions cannot be redone.
Undo and redo in File Explorer
File Explorer treats Ctrl + Z as an undo for file actions as well as for typing.
| File Explorer action | Can Ctrl + Z undo it? |
|---|---|
| Copy | Yes |
| Move | Yes |
| Rename | Yes |
| Delete (sent to the Recycle Bin) | Yes |
| Create a new item | Yes |
| Permanent delete that skips the Recycle Bin | No |
This list comes from the Windows 11 tutorial site Eleven Forum, not from a Microsoft page.
The same tutorial says only your most recent file action can be undone.
If you renamed a file and then deleted it, undo restores the file from the Recycle Bin but does not reverse the rename.
Undo and redo from the right-click menu
- Right-click an empty spot in a File Explorer window or on the desktop.
- Choose the Undo entry, which names the last action, such as Delete.
- Right-click the same empty spot and choose Redo to bring the action back.
The menu entry only appears after an action that can be reversed.
Undo, redo and repeat in Word and Excel
Microsoft Word lists Ctrl + Z as undo, Ctrl + Y as redo and F4 as repeat the last command.
Excel’s shortcut list says Ctrl + Z undoes the last action, but it describes Ctrl + Y as repeating the last command or action, if possible.
Microsoft’s undo page says Ctrl + Y or F4 redoes or repeats, and that you can keep undoing after you save as long as you stay within the undo limit.
| App | Undo | Redo or repeat |
|---|---|---|
| Windows and most apps | Ctrl + Z | Ctrl + Y |
| Word | Ctrl + Z | Ctrl + Y; F4 repeats |
| Excel | Ctrl + Z | Ctrl + Y or F4 repeats the last action |
How many steps you can undo
Microsoft says the last 100 undoable actions are saved by default in the Microsoft 365 apps covered by its undo page.
If you cannot undo what you need, the same page suggests restoring a previous version of the file in OneDrive or OneDrive for Business.
For a deleted file, see our guide to recovering deleted files in Windows 11.
Use the Edit menu or Alt + Backspace
Many apps also offer Undo and Redo in an Edit menu, which works when the shortcut does not.
How-To Geek says the older Alt + Backspace shortcut still undoes in many apps, but not all.
Microsoft’s Windows shortcut list does not include Alt + Backspace, so treat it as a backup only.
When Ctrl + Z or Ctrl + Y does nothing
| Symptom | Try this |
|---|---|
| Nothing happens in an app | Click inside the app first so it has focus, then press the shortcut again |
| Redo does nothing | Press Ctrl + Z first, because redo only works after an undo |
| F4 does not repeat in Office | Press the F-Lock or Fn key, then F4 |
| The app has no undo for that action | Use the Edit menu, or restore a previous file version in OneDrive |
| Keys do not respond anywhere | See our keyboard not working fix |
The F-Lock and Fn tip comes from Microsoft’s undo, redo or repeat page.
More Windows shortcuts
Our Windows 11 keyboard shortcuts list covers the rest of the common keys.
You can also read how to copy and paste on Windows 11, which pairs with undo for fixing a bad paste.
Sources
- Microsoft: Keyboard shortcuts in Windows
- Microsoft: Undo, redo, or repeat an action
- Microsoft: Keyboard shortcuts in Word
- Microsoft: Keyboard shortcuts in Excel
More laptop and PC hardware guides
- Windows 11 Keyboard Shortcuts: Complete List (2027)
- How To Shut Down Or Sleep Windows 11 With The Keyboard (2026)
- How To Open The Emoji Keyboard In Windows 11 (2026)
- How To Turn Off The On-Screen Keyboard In Windows 11 (2027)
- How To Fix A Keyboard Typing Wrong Letters In Windows 11 (2027)
- How To Fix A Keyboard Not Working In Windows 11 (2027)