Undoing an action on a Mac is one of the most fundamental and frequently used skills in everyday computing. Whether you accidentally deleted a paragraph, moved a file to the wrong folder, or made a formatting mistake in a spreadsheet, the ability to reverse that action quickly can save you time and frustration. The good news is that macOS offers several reliable ways to undo, from the universal keyboard shortcut to menu options and even trackpad gestures. Understanding how undo on a Mac works across different applications will make you a more confident and efficient user.
The Universal Shortcut: Command + Z
The most direct and widely known method to undo on a Mac is the keyboard shortcut Command (⌘) + Z. On top of that, this combination works in virtually every application that supports undo, including text editors, web browsers, spreadsheets, design tools, and even Finder. To use it, simply hold down the Command key and press the Z key once. Each press typically reverses one recent action, so you can press it repeatedly to step backward through your history Worth keeping that in mind..
Take this: if you type a sentence in TextEdit and then decide you don’t want it, pressing Command + Z will remove the entire sentence at once (or character by character, depending on the app’s undo granularity). In Finder, if you accidentally move a file to a new location, Command + Z will move it back. The shortcut is contextual: it undoes the last action performed in the active window or application Small thing, real impact..
It’s important to note that Command + Z only works when the application is in focus. If you click on the desktop or another window, the undo command will apply to that context instead. Also, some apps limit the number of undo steps or clear the undo history when you close the document.
Redo: The Forgotten Companion
Just as important as undoing is redoing—reapplying an action you just reversed. On the flip side, the standard redo shortcut on a Mac is Shift + Command + Z. In some applications, such as Microsoft Word or certain Adobe programs, you can also use Command + Y as an alternative redo shortcut. Plus, press it once to redo the last undone action. Mastering both undo and redo creates a fluid editing workflow, allowing you to experiment freely without fear of permanent mistakes Easy to understand, harder to ignore..
Undo Beyond the Keyboard: Menu Bar and Trackpad
Not everyone remembers keyboard shortcuts, and sometimes a mouse or trackpad is more convenient. That's why every Mac application that supports undo includes an Edit menu in the menu bar. Click Edit, then select Undo (or Undo [Action Name]). The menu item often shows exactly what will be undone, such as “Undo Typing” or “Undo Move.” This is particularly helpful when you’re unsure what the last action was That alone is useful..
For trackpad users, macOS supports a handy gesture in many apps: swipe left with three fingers to undo, and swipe right with three fingers to redo. Practically speaking, this gesture works in apps like Pages, Numbers, Keynote, and some third-party text editors. That said, it is not universal—if the gesture doesn’t work, check the app’s preferences or use the keyboard shortcut instead. Additionally, some apps like Preview and Photos include an Undo button in the toolbar, which looks like a curved arrow pointing left.
How Undo Works in Different Mac Applications
The behavior of undo varies by application, so it’s worth knowing the nuances.
Text Editing (TextEdit, Pages, Microsoft Word)
In text-heavy apps, Command + Z typically undoes typing character by character, but it may also undo formatting changes, paste operations, and even style adjustments. In Pages and Word, you can often access a more detailed undo history via the Edit menu or a dedicated history panel. Here's a good example: Microsoft Word lets you click the small arrow next to the Undo button to see a list of recent actions and jump back multiple steps at once.
Finder
Finder supports undo for file operations such as moving, renaming, deleting (to Trash), and creating new folders. Press Command + Z immediately after an action to reverse it. On the flip side, Finder’s undo history is limited—once you perform a new action, the previous undo may no longer be available. Also, emptying the Trash cannot be undone with Command + Z; you would need a backup like Time Machine Small thing, real impact..
Web Browsers (Safari, Chrome, Firefox)
In browsers, Command + Z works primarily within text fields (e.g., undoing typed text in a search bar or form). It does not undo closing a tab or navigating away from a page. To reopen a closed tab, use Shift + Command + T (Safari and Chrome) or Command + Shift + T (Firefox). Browser undo history for text fields is usually session-based and resets when you reload the page.
Image and Design Apps (Preview, Photoshop, Final Cut Pro)
Professional apps often have dependable undo systems. Adobe Photoshop, for example, supports multiple undos via Command + Z (which toggles between undo and redo in newer versions) and offers a full History panel where you can click any previous state. Final Cut Pro uses Command + Z for undo and provides an undo history window. Preview allows you to undo annotations, rotations, and other edits with **Command + Z