The shortcut Ctrl+Z in Windows instantly reverses your last action—whether it’s a typo, a deleted file, or a misplaced window—and returns everything to its previous state. No extra tools or clicks required, and it works across most applications. Even if you’ve closed apps or used other methods, undone changes can sometimes still be retrieved with additional steps.

What You'll Need

  • Windows OS (Windows 10/11); Ctrl+Z works universally across versions.
  • A keyboard with function keys (Ctrl+Z requires physical keys, not touchscreen gestures).
  • Access to the application—Ctrl+Z must be active within an open window.

Step-by-Step

  1. Open the application where you made the change. Ctrl+Z will only work inside an open app window, not in the Start menu or desktop.
  2. Press Ctrl+Z (hold Ctrl and press Z simultaneously). This triggers the undo operation in most applications. If the action is already fully undone, the shortcut may not respond or may show a different effect (like a confirmation).
  3. If the change was in Microsoft Word, Excel, or similar:
    1. Go to the Home tab in the ribbon.
    2. Click the Undo (▶) button next to the Redo (↻) button. This replaces the shortcut and provides a visual confirmation of the undo action.
  4. If the change was in a browser (Chrome, Edge, Firefox):
    1. Open the browser tab with the changes.
    2. Press Ctrl+Z to undo the last edit (e.g., deleting text, adding a link).
      1. For undoing browser history (e.g., clearing the last navigation step), open Settings > Privacy & Safety > Cookies and Site Data and find the History section under Clear browsing data.
  5. If the change involved a file or document:
    1. Open the file in its default application (e.g., Notepad, Word, or Photos).
    2. Use Ctrl+Z while actively editing or deleting content.
      1. If the file is corrupted or unsalvageable, use Settings > Update & Security > Recovery > Open File Explorer to Access Your Drive (Windows 10) to recover recent versions.
  6. If the action was in Notepad or a plain-text editor:
    1. Use Ctrl+Z directly in the editor window. Some older versions may require Edit > Undo from the menu.
      1. For repeatedly undoing actions, repeatedly press Ctrl+Z until the change is reversed.

Common Mistakes

  • Ctrl+Z does not work in some apps—like older versions of PowerShell or certain system utilities. Try the application’s built-in undo menu (e.g., Edit > Undo) or check if the action is fully completed before attempting.
  • Closing the app or shifting focus removes the ability to undo. If you close an app mid-edit, some changes may be permanently lost unless you use toolbars like Recover Unsaved Files (Settings > System > Recovery).
  • Touchscreen devices will not work—Ctrl+Z requires physical keyboard input.
  • Multiple undo stacks can cause confusion. Some apps (e.g., Photoshop) allow multiple undo levels; others (e.g., text editors) revert to the most recent state.

Tips

  • Combine Ctrl+Z with Ctrl+Y to reapply changes. This is especially useful when you undo multiple times (e.g., reverting to a previous edit and then redoing part of it).
  • Use the Redo (↻) button to reverse an undo action—it’s a safety net if Ctrl+Z didn’t work as expected.
  • In Windows 10/11, hold Shift+Ctrl+Z to open the full undo history in some applications (e.g., Word).
  • For saving undone work, enable auto-save in apps like Word or OneNote to prevent permanent loss.
  • If Ctrl+Z fails entirely, restart the app—some temporary glitches are fixed by a simple reboot.

Troubleshooting

If Ctrl+Z does not respond when you expect it to, try these steps:

  1. Check for application-specific errors: Open the app’s error logs (check Help > About or Settings > Troubleshoot) or restart the app. Some apps (e.g., Adobe Creative Suite) use their own undo systems that don’t rely on Ctrl+Z.
  2. Test in a new profile: If Ctrl+Z fails across all apps, the issue may be a corrupted system setting. Create a new user profile (Windows > Settings > Accounts > Family & other users > Add) to test.
  3. Reinstall the app: Corrupted application files can prevent shortcuts from working. Download the latest version from the official store and reinstall.
  4. Reset system settings: If system-wide issues exist (e.g., global keyboard shortcuts disabled), run Settings > Apps > Installed apps > Advanced options and reset settings for problematic apps.
  5. Check keyboard drivers: If Ctrl+Z suddenly stops working, update your keyboard drivers (Windows Update) or test the shortcut on another device.
  6. Use a third-party recovery tool (only for file loss): Apply tools like Recuva (free) or EaseUS Data Recovery after permanently deleting a file to retrieve deleted content. Note: These tools may not work on encrypted or system files.

Frequently Asked Questions

Why does Ctrl+Z not work in Windows Explorer?

Windows Explorer itself does not support Ctrl+Z. To undo file deletions, use Recycle Bin or recovery tools like Windows File History (Settings > Update & Security > Recovery > Open File Explorer to Access Your Drive).

Can I undo a deleted app from the Start Menu?

No. Deleted app entries from the Start Menu are not recoverable via Ctrl+Z. Use the app’s uninstaller or system tools to restore it.

What if I accidentally closed a window and now can’t undo?

If you closed the window without saving, check Settings > System > Recovery > Open File Explorer to Access Your Drive for recent files. Alternatively, use Ctrl+Alt+Del then Task Manager > End Task to revive the app if it froze.

Does Ctrl+Z work in games?

Some games use their own undo systems (e.g., Undo Menu in GTA V or Undo Last Action in Minecraft). These differ from Windows’ Ctrl+Z.

How do I undo changes in a locked/protected document?

For locked documents (e.g., PDFs, encrypted files), use the app’s built-in tools (e.g., Adobe Acrobat > Tools > Protect > Remove Protection) or third-party software like Foxit PDF Editor.

Is there a way to reliably undo multiple deletions?

For bulk deletions, sort files by date in Explorer (Ctrl+A > sort by Date Modified) and recover the oldest items first. Avoid Recycle Bin until the most recent deletions are restored.

If Ctrl+Z still fails after these steps, the issue may be hardware-dependent (e.g., keyboard or system corruption), and a professional repair may be needed.