← All questions

The Basics

I did something by mistake. How do I undo it?

492.I did something by mistake. How do I undo it?

You typed over a sentence, deleted the wrong line, or pasted something in the wrong place — and now you want it back the way it was. Good news: almost every program hands you a do-over, and it is called Undo. Undo takes back the last thing you did — the typing, the deleting, the moving — and pressing it again steps back one more thing. It costs nothing and breaks nothing, so reach for it first, before you try to fix a mistake by hand. Pick your device below.

On a Windows computer
  1. Hold the Ctrl key (bottom left of the keyboard) and tap the Z key: Ctrl + Z. Your last action is taken back. Tap it again, still holding Ctrl, to step back further — most programs remember many steps.
  2. Changed your mind about undoing? Hold Ctrl and tap Y (Ctrl + Y) to redo — put back what you just undid. Some programs spell redo as Ctrl + Shift + Z; trying both is safe.
  3. No keyboard handy? Most programs also keep Undo in their Edit menu, and many show a curved back arrow near the top left. Same do-over, three doors.
On a Mac
  1. Hold the Command key (the one marked with the four-looped square, beside the space bar) and tap Z: Command + Z. Again steps back again.
  2. Redo is Command + Shift + Z. And the Edit menu at the top of the screen always lists Undo in words, if you would rather tap than type.
On a Chromebook
  1. Easy: a Chromebook uses the Windows keys. Ctrl + Z undoes, Ctrl + Y redoes — nothing new to learn.
On an iPhone or iPad
  1. Shake the phone gently right after the mistake: a box pops up offering Undo Typing — tap Undo. Shaking again offers Redo Typing. (If shaking feels undignified, you are in good company — it is really how Apple built it.)
  2. The steadier way: while typing, swipe three fingers to the left across the words to undo, and three fingers to the right to redo. A small note at the top of the screen confirms it worked.
  3. Many apps also simply show you an Undo button for a few seconds right after a change — delete something in Mail or Notes and watch the bottom of the screen. If the button appears, tap it before it fades.
On a Samsung or other Android phone
  1. Android has no single undo move of its own — honestly, this is the one place it trails the iPhone. Instead, many apps offer their own: after a change, watch for an Undo button that appears for a few seconds (Gmail and Google Keep both do this), and in typing apps check the row above the keyboard for a curved back arrow. The rule on Android is: look for the app’s own Undo in the first few seconds, before you tap anything else.
  1. The honest limits, so undo never fools you. Undo works inside the program where you did the thing, and usually only until you close that program — closing the app often empties its memory of your steps. A deleted file on a computer is a different road: open the Recycle Bin (Windows) or Trash (Mac), right-click the file, and choose Restore or Put Back. And a message already sent cannot be unsent by undo — email’s short “undo send” grace period is a separate trick, covered in our Email lessons. Our Basics chart Cut, Copy, Paste, and Undo keeps all four moves on one card, if you want the set together.
One move to memorize per device: Windows and Chromebook — Ctrl + Z. Mac — Command + Z. iPhone — shake gently, or swipe three fingers left. Reach for it the moment a mistake happens, before tapping anything else — undo works best as your very next action.