Microsoft Undo Shortcut: Ctrl+Z and How to Use It
In this article
The Microsoft undo shortcut is Ctrl+Z on Windows and Command+Z on a Mac. Press it once to reverse your last action, and press it repeatedly to step back through a series of changes. It works in nearly every Microsoft app—Word, Excel, PowerPoint, Outlook, Edge, Notepad, File Explorer, and most third-party programs—so learning the single keystroke covers a huge amount of ground. The only thing you need is a keyboard (or an on-screen keyboard) and an app that supports undo; some apps, like certain games or older utilities, do not.
What You'll Need
- A Windows PC or a Mac. The shortcut differs by platform: Ctrl+Z on Windows, Command+Z on macOS.
- A physical keyboard, or the on-screen keyboard if you are using a touch-only device.
- An app that supports undo. Microsoft Office apps, Edge, Notepad, WordPad, File Explorer, and most modern programs do.
- Optional: a Microsoft 365 subscription for the full version of desktop Office apps, though the shortcut works in the free web versions too.
Step-by-Step
- Make a change you want to undo. Type a word in Word, delete a cell value in Excel, move a file in File Explorer, or change a setting in Edge. The undo command only becomes active after an action has been recorded.
- Press Ctrl+Z on Windows. Hold the Ctrl key (bottom-left or bottom-right of the keyboard) and tap Z. On a Mac, hold Command (⌘) and tap Z. Do not hold Z down—one tap per undo step is more predictable.
- Watch the change reverse. The last action is undone and the app returns to its previous state. In Word, the text you typed disappears. In Excel, the deleted value comes back. In File Explorer, a moved file returns to its original folder.
- Press Ctrl+Z again to keep stepping back. Most Microsoft apps keep a history of recent actions. Each press undoes one more step, in reverse order. Word, Excel, and PowerPoint typically keep dozens of steps; the exact limit varies by app and version.
- Use the toolbar button if you prefer. In Office apps, the Undo button is a curved arrow at the top-left of the ribbon, next to the Quick Access Toolbar. Click it once per step, or click the small dropdown arrow beside it to see a list of recent actions and jump back several at once.
- Redo if you went too far. Press Ctrl+Y on Windows or Command+Shift+Z on a Mac to reapply the last undone action. The Redo button sits next to Undo in the Office ribbon.
- Test it in each app you use. The shortcut is consistent, but the history depth and what counts as an "action" differ. In Excel, for example, typing in a cell and then formatting it are two separate undo steps.
Common Mistakes
- Pressing Ctrl+Z in an app that does not support undo. Some older utilities, games, and certain settings dialogs have no undo history. The keystroke simply does nothing. Check whether the app has an Edit menu with an Undo entry; if it does not, the shortcut will not work there.
- Holding the keys too long. Holding Ctrl+Z can fire the undo command many times in quick succession and blow past the state you wanted. Tap it once per step.
- Expecting undo to reverse a save or a closed file. Ctrl+Z does not reopen a document you closed without saving, and it does not undo a file save. It only reverses edits made inside the open document.
- Confusing undo with the Recycle Bin. Deleting a file in File Explorer and then pressing Ctrl+Z does restore it, but only immediately and only if the action is still in the undo history. Once you have done other actions, use the Recycle Bin instead.
- Using the wrong modifier on a Mac. Command+Z, not Ctrl+Z. Many Mac keyboards label the key with ⌘.
- Assuming undo works across apps. Each app keeps its own history. Undoing in Word will not reverse something you did in Excel.
Tips
- The Quick Access Toolbar in Office apps can be customised to show Undo and Redo if you use them often. Right-click the toolbar and choose to add them.
- In Excel, the undo history is per-workbook. Switching between workbooks resets what Ctrl+Z will reverse.
- In Word, the undo list can be long, but a very large number of small edits can push older ones out of history. Save versions or use Track Changes for important documents.
- On touch devices, the on-screen keyboard in Windows usually includes a Ctrl key, so the same shortcut applies. On phones and tablets, use the app's own undo button in its toolbar.
- Ctrl+Z also works in many text fields across Windows, including search boxes and address bars in Edge.
- If you use a keyboard with a different layout, the physical position of Z may differ, but the labelled Z key is what you press.
Troubleshooting
If Ctrl+Z does nothing, work through these checks in order:
- Click inside the document or window first. The shortcut only reaches the app that has focus. If you clicked on the desktop or another window, the keystroke goes there instead.
- Check the app's Edit menu. Open Edit and look for Undo. If it is greyed out, there is nothing to undo—either no action has been recorded yet or the history has been cleared.
- Try the toolbar button. If the button works but the shortcut does not, another program may be intercepting the keystroke. Close background utilities one at a time to identify the culprit.
- Restart the app. A frozen or partially loaded app can stop responding to keyboard shortcuts. Save your work first if possible.
- Update the app. Use the official update mechanism—Microsoft Store, Office Update, or the app's own Check for Updates option. Do not download installers from third-party sites.
- Check your keyboard. Test Ctrl with another shortcut, such as Ctrl+C to copy. If that also fails, the Ctrl key or the keyboard connection is the problem, not the app.
- Sign out and back in if the problem affects all Microsoft apps. This refreshes the session without deleting any data.
If none of that helps, the app may simply not support undo. Check its documentation or help pages rather than assuming a hidden setting exists.
Frequently Asked Questions
What is the undo shortcut in Microsoft Word?
Ctrl+Z on Windows and Command+Z on Mac. It reverses the last edit, and pressing it repeatedly steps further back through your edit history.
How many times can I press Ctrl+Z?
It depends on the app and version. Word and Excel keep a long history, but the exact number of steps varies and older actions eventually drop off. There is no single fixed number across all Microsoft apps.
What is the difference between undo and redo?
Undo reverses your last action (Ctrl+Z). Redo reapplies an action you just undid (Ctrl+Y on Windows, Command+Shift+Z on Mac).
Does Ctrl+Z work in File Explorer?
Yes, for recent file operations such as moving, renaming, or deleting a file. It only reverses the most recent actions still in the history, so use the Recycle Bin for anything older.
Why does Ctrl+Z not work in some apps?
Some apps, especially older utilities and games, do not implement an undo history. If the app's Edit menu has no Undo entry, the shortcut has nothing to trigger.
Can I undo after closing a document without saving?
No. Ctrl+Z only works inside an open document. Once a file is closed without saving, the unsaved changes are gone; check whether the app offers a recovery or autosave feature.