|

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

ActionShortcutWhat Microsoft says it does
UndoCtrl + ZUndoes the previous action
RedoCtrl + YRedoes an action that was undone with Ctrl + Z
Repeat (Office)F4 or Ctrl + YRepeats the last command or action, if possible

How to undo with Ctrl + Z

  1. Click in the app or window where you made the mistake.
  2. Press and release Ctrl + Z once.
  3. 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

  1. Press Ctrl + Z to undo an action.
  2. 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 actionCan Ctrl + Z undo it?
CopyYes
MoveYes
RenameYes
Delete (sent to the Recycle Bin)Yes
Create a new itemYes
Permanent delete that skips the Recycle BinNo

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.

  1. Right-click an empty spot in a File Explorer window or on the desktop.
  2. Choose the Undo entry, which names the last action, such as Delete.
  3. 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.

AppUndoRedo or repeat
Windows and most appsCtrl + ZCtrl + Y
WordCtrl + ZCtrl + Y; F4 repeats
ExcelCtrl + ZCtrl + 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.

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

SymptomTry this
Nothing happens in an appClick inside the app first so it has focus, then press the shortcut again
Redo does nothingPress Ctrl + Z first, because redo only works after an undo
F4 does not repeat in OfficePress the F-Lock or Fn key, then F4
The app has no undo for that actionUse the Edit menu, or restore a previous file version in OneDrive
Keys do not respond anywhereSee our keyboard not working fix

The F-Lock and Fn tip comes from Microsoft’s undo, redo or repeat page.

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

Leave a Reply

Your email address will not be published. Required fields are marked *