How to Undo on Mac

We’ve all accidentally deleted files, undone the wrong action, or used the wrong keyboard shortcuts on Mac—and when you need to undo your last action on Mac quickly, panic can set in. With the right undo methods and the help of MacKeeper’s Safe Cleanup, you’ll be able to regain control and confidently declutter your Mac without accidentally losing important data.

System Requirements: macOS 10.11 or later

60+ million downloads

i

AV-TEST certified

AV-TEST is an independent lab that checks the effectiveness of antivirus apps against real malware samples.

i

Notarized by Apple

Notarization by Apple is a security measure to check if software is free from malicious components.

i

Trustpilot is an independent digital platform that hosts insightful and honest consumer reviews.

How to Undo on Mac
Written by   Tanya Ellis
Published: December 18, 2025

When you accidentally delete files or make an unwanted change on your MacBook, knowing how to quickly undo sudden deletions can save you time and prevent any data loss. In our experience, the quickest way to instantly undo is to use the Command + Z keyboard shortcut. The Edit > Undo option from your menu bar also works.

What does undo mean on Mac?

The undo action on Mac is exactly what it sounds—it’s the process of quickly retrieving closed applications, work files, or browser tabs that might have accidentally been deleted. However, MacBook keyboard shortcuts and other clever retrieval commands can help you restore data that you thought might have been lost for good.  

Standard ways to undo on Mac

The standard ways to undo on a Mac include executing Command + Z on your keyboard. Whilst easy to action, this shortcut is not always reliable for all undo commands. Some macOS apps only support undoing via the Edit menu, while others require following application-specific undo steps to reverse actions. The bottom line? Depending on the software, you may need to navigate unique menus to restore previous changes.

1. Using keyboard shortcuts (⌘ + Z)

For ease, we recommend the undo command-z on Mac. This method is known to work universally on multiple system applications and browsers to retrieve what you have accidentally closed or deleted.

 

Here’s how to undo with the keyboard shortcut:

  1. Open the app or document that you need to undo.
  2. Press Command + Z to restore deleted data or tabs.
The easiest way to undo on a Mac is to use the Command + R keyboard shortcut. With the app or doc open that needs restoring, press and hold the keys together until your lost content or work is restored.
In your app or documents, press Command (⌘) + R to Undo

2. Undo via Edit menu

If your macOS app or document isn’t recognising or actioning the keyboard shortcut, then an alternative solution that might be vital. In this case, our Clario Tech experts recommend undoing your last action on Mac via the Edit menu.

 

Here’s how to perform the undo action from the Edit menu:

  1. Click on Edit in the top menu bar.
  2. Select Undo.
  3. Repeat if you need to reverse more steps.
Another way you can undo on Mac is by heading to the menu bar at the top of the app or document window tab. Click on Edit >Undo to restore your lost content.
Click on Edit in the menu bar of your app Window, and press Undo

3. Application-specific undo options

Do you have keyboard shortcuts enabled, but still, they don’t work, and neither does undo via Edit? Some apps, like Preview or Pages, are known to have unique undo or version history features personal to them, meaning normal methods won’t always work.

 

Here’s how to gain more editing control over these kinds of applications:

  1. Have the app open that you need to undo changes.
  2. Look for app-specific undo actions or buttons in the menu, toolbar, or history panel.
  3. Follow the on-screen prompts to undo.
The undo action is not always as easy to use in all apps, as some might have limitations or have the action buttons in a different tab or labelled differently. Look in the menu, toolbar bar or History tab if you can’t undo how you normally can.
Look for the Undo option in the menu, separate toolbar, or History tab

A note from our experts: 

 

Undoing actions on a Mac can help reverse sudden changes or accidental deletions, but it may not work as smoothly if your device is bogged down by digital junk. That’s why we recommend keeping your Mac clutter-free. MacKeeper’s Safe Cleanup can keep your MacBook stable by removing digital debris in just a few clicks—less clutter means fewer chances of losing work or browser tabs.

 

Here’s how MacKeeper’s Safe Cleanup feature works:

  1. Open the MacKeeper App.
  2. Go to Safe Cleanup.
  3. Click Start Scan.
  4. Look through the Logs, Cache, Trash, and tick everything you want to remove.
  5. Press Clean Junk Files.
To improve the stability of your Mac, and avoid glitches when trying or retrieving lost data with undo, we recommend keeping your decluve celan of junk. Open the MacKeeper app, go to Safe Cleanup, and click on Start Scan.
Step 1. Open the MacKeeper app, go to Safe Cleanup, and click on Start Scan
After the scan is done, tick any Logs, Cache, or Trash you want to purge from your MacBook. Tick or press Check All and then click on Clean Junk Files.
Step 2. Look for any old Logs, Cache, and Trash that can be removed, and press Clean Junk Files

How to undo in popular Mac apps?

Many apps, browsers, and text editors have different ways to undo. That’s why we’ll now walk you through correctly restoring your content in several programs on Mac: text editors, browsers, and Apple’s basic in-built apps like Finder, Photos, and Preview.

1. Text editors (Notes, Pages, Word)

When you’re writing or editing text, mistakes can happen fast, but fixing them can be just as easy. If you’ve ever wondered how to undo in Notes on a MacBook, the same method also works across Pages and Microsoft Word.

 

Here’s the quickest way to undo in various text editors:

  1. Open your document in Notes, Pages, or Word.
  2. Press ⌘ + Z to undo your last text change.
  3. Alternatively, go to Edit > Undo Edit.
If you need to undo in text editors, many of them all work the same way. With your doc open, you can press the ⌘ + Z shortcut with your keyboard keys to bring back and undo changes. Alternatively, go to Edit > Undo Edit in the menu.
In Pages, Notes, or Word, look for ⌘ + Z or go to Edit > Undo Edit

2. Finder

In Finder, there are several undo actions on Mac you can execute with a simple keyboard shortcut, including Renaming, Typing, Tags, and Sample Image changes.

 

Here’s a reminder of how to undo in Finder:

  1. Open Finder.
  2. If you make a mistake, press Command + Z to undo the last action.
  3. To redo, press Command + Shift + Z.
To make changes, like undo and redo, open Finder. If you’ve made a recent mistake, you can press Command + R. You can also redo by pressing Command + Shift + Z.
You can rely on the Command + Z shortcut to correct errors with renaming, typing, tags, and images

3. Photos and Preview

Like the Finder app, you can again rely on Command + Z to undo your recent edits or changes. Although if your changes are from another session or you want to start again, you can just as easily remove all changes to your photos.

 

Let us show you how:

  1. Undo with Command + Z.
  2. Undo all changes to a photo by going to Image> Revert to Original.
If undoing with Command + Z isn’t working as you have too many changes or they’re not recent, then restoring the image to its original state is a potential solution. With the image in question open, click on Image in the menu bar and click on Revert to Original. This will undo all changes.
To undo all the changes to a photo, go to Image in the menu bar and click on Revert to Original

4. Safari and other browsers

Performing edits and undoing in web browsers mostly support the keyboard shortcut we’ve shown you throughout this post. It can bring back closed tabs and alter recently typed text.

 

Let us show you how to cope with undoing in Safari and other browsers.

Safari:

  1. Go to History > Reopen Last Closed Tab.
  2. Alternatively, press Command, Shift + T.
To undo and bring back closed tabs in Safari, go to History > Reopen Last Closed Tab. Instead, you can use Command, Shift T.
Go to History > Reopen Last Closed Tab to undo accidental closures

Chrome:

  1. Go to Edit > Re-open Closed Tab.
  2. Alternatively, press Command, Shift + T.
Similar to Safari, in Chrome, you can also use the Command, Shift + T shortcut to undo actions. You can also go to Edit > Re-open Closed Tabs.
Go to Edit > Re-open Closed Tab or press Command, Shift + T

Extra tip from us: 

 

If you’re worried about removing files by mistake on your MacBook Air or Pro, our guide on how to undo cleanup on Mac will show you additional ways to recover deleted desktop, application, and folder data safely.

Make Mac cleanup a priority with MacKeeper’s help

We’ve covered the easiest ways to undo the last action on Mac, from quick shortcuts to menu options, so you can edit mistakes before they become bigger problems. Knowing how to undo can help you remain in control, save time, and recover changes across macOS apps with ease.

 

Even so, a cluttered Mac can still cause slowdowns or unexpected issues. That’s why we recommend MacKeeper’s Safe Cleanup to help you safely remove digital junk and reduce the chances of mistakes that need undoing in the first place.

Use your Mac to the fullest! Sign up and get:
Effective tips on how to fix Mac issues
Reliable advice on how to stay safe online
Mac-world news and updates

Thank you!

You’ll love exploring your Mac with us.

Oops, something went wrong.

Try again or reload a page.

Here’s another sign you need to upgrade your macOS ASAP:

30% off your MacKeeper subscription

Сopy the code now and use it in the MacKeeper checkout after the upgrade.

Copy Code

Please be aware that this code cannot be combined with any other discounts, offers, or promotions.

Contents

Unlocked
PC

MacKeeper - your all-in-one solution for more space and maximum security.

Try Now

Read more

How to Unlock MacBook Pro Without Password
How to Unlock MacBook Pro Without Password
How to Uninstall Zoom on Mac
How to Uninstall Zoom on Mac
arrow

Run Application

step_1

Click Continue

step_2

Click Install

step_1

Your macOS version is lower than OS 10.11. We’d like to offer you MacKeeper 4 to solve the cleaning, privacy, and security issues of your macOS.