Skip to content
CtrlKFind a shortcut

Undo Shortcut Key and Undo Redo Shortcut Keys

EditingUndo and redoWindows and MacChecked 2 Nov 2026

Undo on Windows

CtrlZ

Redo on Windows

CtrlY

Undo on Mac

CommandZ

Redo on Mac

CommandShiftZ

The undo shortcut key is Ctrl + Z on Windows and Command + Z on a Mac. It cancels your last action: typing, deleting, formatting, pasting, even moving a file. Press it again to go back one more step.

Redo brings back what you undid. On Windows that is Ctrl + Y, and many programs also accept Ctrl + Shift + Z. Together these undo and redo shortcut keys let you try things without fear.

Quick facts

  • Undo

    Ctrl + Z
  • Redo

    Ctrl + Y
  • Redo in many apps

    Ctrl + Shift + Z
  • Undo in Office too

    Alt + Backspace
  • Mac undo

    Command + Z
  • Mac redo

    Command + Shift + Z

Undo and redo shortcut keys table

Shortcut key for undo and redo on each system
ActionWindowsMac
Undo the last actionCtrl + ZCommand + Z
Redo what you undidCtrl + YCommand + Shift + Z
Redo, alternativeCtrl + Shift + ZOffice for Mac also accepts Command + Y
Undo, alternative in OfficeAlt + BackspaceNot used

There is a separate guide for redo with the repeat trick in Word and Excel: redo shortcut key.

How to use the undo shortcut key

  1. Notice the mistake: wrong text deleted, wrong format, wrong paste.
  2. Press Ctrl + Z once. The last action is reversed.
  3. Still not right? Press it again for each earlier step.
  4. Went back too far? Press Ctrl + Y to step forward again.

Undo works in order, from newest to oldest. You cannot undo only the third step without also undoing the two after it.

Undo in File Explorer

Ctrl + Z also works on files. Straight after you rename, move, copy or delete files in File Explorer, pressing it reverses that action: the old name returns, the moved file goes back, and deleted files come back from the Recycle Bin. It does not bring back files deleted with Shift + Delete, which skips the bin. See the rename and delete guides.

How many times can you undo

Undo limits
ProgramWhat to know
WordMany steps, until you close the document
ExcelUsually the last 100 actions; running a macro clears the list
NotepadSeveral steps in Windows 11; older Notepad undid one step
BrowsersTyping in a text box can be undone until you leave the page
After saving and closingThe undo list is gone in every program
In Word and Excel the small undo arrow at the top has a drop down list. Click it to see the steps and undo several at once.

Undo shortcut key in computer and laptop keyboards

The undo keyboard shortcut is the same on every laptop and desktop: Ctrl is bottom left and Z is next to Shift, so you can press it with one hand. In Hinglish searches it shows up as "undo ka shortcut key" and the answer does not change. Learn it with its neighbours Ctrl + X, Ctrl + C and Ctrl + V, which sit in the same row; the Ctrl A to Z table has the full set.

When undo does not work

Problems and fixes
ProblemFix
Nothing is undoneClick inside the document first so it has focus
Undo is greyed outThere is nothing left to undo, or the file was just opened
File change cannot be undoneToo many other actions since; restore from Recycle Bin instead
Undo undid the wrong thingPress Ctrl + Y to redo it
A clerk applies a colour to a whole Excel sheet by mistake and the report looks wrong. One press of Ctrl + Z removes the colour. They press Ctrl + Y to see it again, decide against it, and undo once more.

Undo on a Mac

Press Command + Z to undo and Command + Shift + Z to redo in most Mac apps. In Finder, Command + Z also undoes moving or renaming a file. See the Mac undo and redo guide for app differences.

This site is not affiliated with Microsoft or Apple; this is an independent explanation.

Frequently asked questions

What is the shortcut key for undo?
Ctrl + Z on Windows and Command + Z on a Mac.
What are the undo and redo shortcut keys?

Undo is Ctrl + Z and redo is Ctrl + Y on Windows.

What is the shortcut key of undo, and can I use it more than once?

Yes. Each press of Ctrl + Z goes back one more step.

Can I undo a file I deleted?

Yes, straight away with Ctrl + Z in File Explorer, or restore it from the Recycle Bin.

Why does Ctrl + Z not work after I closed the file?

The undo list is cleared when you close a document.

What is the redo undo shortcut key on a Mac?

Undo is Command + Z and redo is Command + Shift + Z.