Keyboard Shortcuts Undo and Redo
Undo and Redo are two of the most valuable shortcuts on any computer. They give you the freedom to experiment, make mistakes, and recover instantly — without losing your work. Once you make these shortcuts automatic, you will feel far more confident working with any document, file, or design.
What Undo Does
Undo reverses your last action. If you deleted a paragraph by accident, Undo brings it back. If you typed something you did not mean to type, Undo removes it. The shortcut is the same across almost every application:
Windows / Linux: Ctrl + Z Mac: ⌘ + Z
Each press of Ctrl + Z undoes one action. Press it three times to undo the last three actions. Most programs keep a history of dozens — sometimes hundreds — of past actions, so you can undo far back into your work session.
The Undo Stack
Your software maintains an internal list called the undo stack. Every action you take gets added to the top of this stack. Pressing Ctrl + Z removes one item from the top and reverses it.
YOUR ACTIONS (in order): 1. Typed "Hello" 2. Made text Bold 3. Pressed Enter (new line) 4. Typed "World" ← most recent (top of stack) Press Ctrl + Z once: → "World" disappears Press Ctrl + Z again: → New line removed Press Ctrl + Z again: → Bold removed Press Ctrl + Z again: → "Hello" disappears
You travel backward through your actions one step at a time, like rewinding a video.
What Redo Does
Redo re-applies an action you just undid. Think of it as the opposite of Undo — it moves you forward through the undo stack.
Windows / Linux: Ctrl + Y (most apps)
Ctrl + Shift + Z (some apps, e.g. Photoshop)
Mac: ⌘ + Shift + Z
⌘ + Y (in some apps)
Undo and Redo Working Together
START: "Hello Bold World" Ctrl+Z → "Hello Bold" (undid "World") Ctrl+Z → "Hello" (undid Bold) Changed mind — want Bold back: Ctrl+Y → "Hello Bold" (redid Bold) Ctrl+Y → "Hello Bold World" (redid "World")
This back-and-forth lets you compare versions of your work. Undo to see the old version, Redo to return to the new one.
The Redo Stack Clears When You Type
This is the key rule beginners miss: if you undo several actions and then start typing or making changes, the redo stack clears. The new action creates a new branch in your history, and the undone actions cannot be redone anymore.
ACTION HISTORY:
Type "A" → Type "B" → Type "C"
↑ current position
Undo twice:
Type "A" ← current position
(B and C are in redo stack)
NOW — type "X" instead:
Type "A" → Type "X"
↑ new current position
REDO STACK CLEARED — "B" and "C" are gone permanently
Save your file before experimenting with large undo sequences, so you always have a restore point.
When Undo Is Not Available
Some actions cannot be undone, even with Ctrl + Z:
✘ Deleting a file to the Recycle Bin (use Recycle Bin to restore) ✘ Permanently deleting a file (Shift + Delete on Windows) ✘ Sending an email ✘ Overwriting a saved file in some plain-text editors ✘ Certain database or form submissions
When Ctrl + Z does not work, the Edit menu of the active app usually shows "Can't Undo" (greyed out) to confirm that no undo history is available.
Undo in Different Applications
Microsoft Word: Up to 100+ undo steps (stored per session) Adobe Photoshop: History panel — up to 1000 states (configurable) Google Docs: Virtually unlimited undo history (cloud-stored) Notepad (Win): Single-level undo in older versions; multi-level in Win 11 File Explorer: Ctrl+Z undoes file rename, move, or copy
Photoshop deserves a special mention: it has an entire "History" panel (Window → History) that lets you click any past state visually — far more powerful than pressing Ctrl + Z repeatedly.
Practical Tips
- Press Ctrl + Z immediately after an accidental deletion — before doing anything else — to maximize the chance of recovery.
- In browsers, Ctrl + Z restores text you deleted in a text field, including accidentally cleared form entries.
- In Gmail and Outlook, Undo can retract a sent email if you act within the "Undo Send" window (set in settings).
- In Windows File Explorer, Ctrl + Z undoes the last file operation — handy if you moved a file to the wrong folder.
Quick Reference
ACTION WINDOWS MAC ────────────────────────────────────── Undo Ctrl + Z ⌘ + Z Redo Ctrl + Y ⌘ + Shift + Z Redo (alt) Ctrl+Shift+Z ⌘ + Y (some apps)
Make Ctrl + Z your first instinct whenever something goes wrong on your computer. It is faster than any menu, and it works almost everywhere.
