Alternatively called Cmd+Z and C-z, Command+Z is a keyboard shortcut often used to undo the previous action.
How to use the Command+Z keyboard shortcut
To use this keyboard shortcut, press and hold either Command key, and while continuing to hold, press Z.
Most programs that support the Command+Z keyboard shortcut allow you to use it multiple times. For example, you could press and hold Command, and then press Z three times to undo the last three changes (if they exist).
The keyboard shortcut that is the opposite of Command+Z is Command+Y (redo).
On Windows computers, the shortcut to undo is Ctrl+Z.
- How to use the Command+Z keyboard shortcut.
- Command+Z in an Internet browser.
- Command+Z in Microsoft Excel and other spreadsheet programs.
- Command+Z in Microsoft PowerPoint.
- Command+Z in Microsoft Word and other word processors.
- Related keyboard shortcuts and keys.
- Related information.
- Computer keyboard shortcuts.
Command+Z in an Internet browser
In all major Internet browsers (e.g., Chrome, Edge, Firefox, Opera, Safari), pressing Command+Z will undo any change made in a browser form or text field.
- Firefox shortcuts
- Google Chrome shortcuts
Command+Z in Microsoft Excel and other spreadsheet programs
In Microsoft Excel and other spreadsheet programs, pressing Command+Z will undo any change made in a spreadsheet.
- Full list of Excel shortcuts.
- Google Sheets shortcuts.
Command+Z in Microsoft PowerPoint
In Microsoft PowerPoint, the Command+Z keyboard shortcut will undo any edit made to a presentation.
- Full list of PowerPoint shortcuts.
Command+Z in Microsoft Word and other word processors
In Microsoft Word and other word processors, pressing Command+Z will undo any change made in a document.
- Full list of Microsoft Word shortcuts.
Related keyboard shortcuts and keys
Below are links to related keyboard shortcuts and individual key pages.
- Command
Cmd, Keyboard shortcut, Keyboard terms, Undo, Z
Related information
- Computer keyboard shortcuts.
- Top 10 keyboard shortcuts everyone should know.
- Keyboard help and support.