To undo on your keyboard, press Ctrl + Z in a supporting Windows 11 app or Command + Z in a supporting Mac app. To redo, press Ctrl + Y on Windows or Shift + Command + Z on Mac. Your app may use a different redo shortcut. The Windows steps use Windows 11 menus.
The short version
- Undo: Press Ctrl + Z on Windows or Chromebook, or Command + Z on Mac, in a supporting app.
- Redo: Supporting Windows apps use Ctrl + Y, while Chromebook editors use Ctrl + Shift + Z.
- App differences: Office for Mac uses Command + Y for redo, while Google Docs uses Command + Shift + Z.
- Easier key entry: Enable Sticky keys to enter shortcut keys one at a time on Windows or Chromebook.
| Device or option | Shortcut or control |
|---|---|
| Windows 11 supporting apps | Undo with Ctrl + Z; redo with Ctrl + Y |
| Supporting Mac apps | Undo with Command + Z; redo with Shift + Command + Z |
| Chromebook supporting editors | Undo with Ctrl + Z; redo with Ctrl + Shift + Z |
| iPad hardware keyboard | Undo with Command + Z; redo with Shift + Command + Z |
| Office desktop on Windows | Ctrl + Z and Ctrl + Y, or toolbar controls |
| Office desktop on Mac | Command + Z and Command + Y, or ribbon controls |
| Office web apps | Ctrl + Z and Ctrl + Y, or ribbon controls |
| Office repeatable actions | Repeat can share the redo shortcut |
| Google Docs browser shortcuts | Redo with Ctrl + Shift + Z, or Command + Shift + Z on Mac |
| Google Docs browser toolbar | Click Undo or Redo at the top |
| Google Sheets browser editor | Several redo combinations, depending on platform and editing context |
| Google Slides browser editor | Redo with Ctrl + Y or Ctrl + Shift + Z; use Command on Mac |
| Google Docs on Android with a physical keyboard | Undo with Ctrl + Z; redo with Ctrl + Shift + Z |
| Google Docs on iPhone or iPad with a physical keyboard | Undo with Command + Z; redo with Command + Shift + Z |
| LibreOffice | Linux and Windows use Ctrl + Z and Ctrl + Y; Mac uses its standard combinations |
| Microsoft Planner task notes | Alt + Backspace is an additional undo shortcut |
| Photoshop default shortcuts | Undo with Ctrl + Z; redo with Shift + Ctrl + Z; use Command on Mac |
| Photoshop compatibility setting | Use Legacy Undo Shortcuts changes shortcut behavior |
| Photoshop rollback to last save | File > Revert discards changes since the last save |
| Photoshop recorded states | Window > History |
| iPhone text gestures | Three-finger swipe, then tap Undo or Redo |
| iPad text gestures | Three-finger swipe, then tap Undo or Redo |
| iPhone shake control | Shake to Undo controls shake-triggered undo |
| Samsung Keyboard on supported Galaxy phones | Swipe left with two fingers to undo, or right to redo |
| Gboard corrections on Android | Backspace reverses an automatic correction; Undo removes a proofreading correction |
| Windows 11 Voice access | Say Undo that or Redo that |
| Google Docs voice commands | Say Undo to reverse an incorrectly interpreted command |
| Windows accessibility controls | Sticky keys or On-screen keyboard |
| Mac accessibility controls | Sticky Keys or Accessibility Keyboard |
| Chromebook sequential entry | Turn on Sticky keys |
| Mac custom shortcuts | Assign an existing menu command under App Shortcuts |
| Gmail mailbox actions | Enable keyboard shortcuts, then press z to undo a supported action |
| Gmail custom undo key | Enable Custom keyboard shortcuts, then assign a replacement key |
| Google Drive web file actions | Ctrl + Z and Ctrl + Y; use Command on Mac |
Undo and redo on your computer
On Windows 11, focus the app or editing field where you want to undo something. Hold Ctrl and press Z to undo, or hold Ctrl and press Y to redo an undone action. Availability depends on the app and action.
On Mac, hold Command and press Z to undo. To redo, hold Shift and Command, then press Z. Repeat where the app supports multiple undo levels.
On Chromebook, press Ctrl + Z to undo the last action in a supporting editor. Hold Ctrl and Shift, then press Z to redo.
In LibreOffice on Linux or Windows, press Ctrl + Z to undo and Ctrl + Y to redo. On Mac, use Command + Z and Command + Shift + Z. If desktop shortcuts conflict, open Tools > Customize > Keyboard to inspect the assignments.
Undo several changes in Microsoft Office
In Word, Excel, and PowerPoint desktop apps for Microsoft 365 or applicable Office 2024 editions on Windows, press Ctrl + Z or select Undo on the Quick Access Toolbar. Repeat to undo more actions. To undo several actions together, select the arrow beside Undo, then select the actions in its list.
Redo with Ctrl + Y, F4, or Redo on the Quick Access Toolbar. Depending on your keyboard, using F4 may require Fn or F-Lock. If the function key does not work as expected, use the toolbar control.
In those apps for Microsoft 365 for Mac or Office 2024 for Mac, undo with Command + Z or select Undo at the upper-left of the ribbon. Redo with Command + Y or select Redo. Where available, use the arrow beside Undo to select multiple actions.
In Word, Excel, and PowerPoint for the web, press Ctrl + Z to undo or Ctrl + Y to redo. You can also select Undo or Redo in the ribbon.
After a repeatable Office action, Ctrl + Y or F4 on Windows, or Command + Y on Mac, can repeat that action instead of restoring an undo. Select Repeat where available when that is what you want to do.
While editing Microsoft Planner task notes, you can undo with Alt + Backspace or Ctrl + Z, then redo with Ctrl + Y or Ctrl + Shift + Z. On Mac, use Command + Z and Command + Shift + Z. The Alt + Backspace alternative applies specifically to Planner task notes.
Use the right shortcut in Google apps
In the Google Docs browser editor on Windows or ChromeOS, press Ctrl + Z to undo and Ctrl + Shift + Z to redo. On Mac, use Command + Z and Command + Shift + Z. Alternatively, open your document and click Undo or Redo at the top.
Google Docs uses Ctrl + Y to repeat the last action. To restore an undone action on Windows or ChromeOS, use Ctrl + Shift + Z.
In Google Sheets on Windows, undo with Ctrl + Z, then redo with Ctrl + Y, Ctrl + Shift + Z, or F4. On ChromeOS, undo with Ctrl + Z and redo with Ctrl + Y or Ctrl + Shift + Z. Sheets shortcuts depend on the platform and editing context.
In Sheets on Mac, press Command + Z to undo. Redo with Command + Y, Command + Shift + Z, or Fn + F4.
In Google Slides on Windows or ChromeOS, undo with Ctrl + Z and redo with Ctrl + Y or Ctrl + Shift + Z. On Mac, undo with Command + Z and redo with Command + Y or Command + Shift + Z.
For supported file-management actions in Google Drive's web interface, press Ctrl + Z to undo and Ctrl + Y to redo on Windows or ChromeOS. On Mac, use Command + Z and Command + Y.
Undo edits in Photoshop
With Photoshop desktop's default shortcuts, undo with Ctrl + Z on Windows or Command + Z on Mac. Redo with Shift + Ctrl + Z on Windows or Shift + Command + Z on Mac. Alternatively, choose Edit > Undo or Edit > Redo; the menu command can include the action name.
If you prefer the older shortcut behavior, Photoshop offers a compatibility setting. Select Edit > Keyboard Shortcuts and Menus, select Use Legacy Undo Shortcuts, then select OK. Restart Photoshop to apply it.
Using Revert discards changes made since the last save. To return to that saved state, select File > Revert.
To return to a recorded editing state, open Window > History and select that state. Adjust how many states Photoshop retains under Preferences > Performance.
In the History panel menu, open History Options. To preserve subsequent states when editing an earlier state, select Allow Non-Linear History. To include layer visibility changes in undo history, select Make Layer Visibility Changes Undoable.
Undo on a phone or tablet keyboard
With a compatible hardware keyboard connected to your iPad, press Command + Z to undo in a supporting app. Press Shift + Command + Z to redo. Google Docs on iPhone and iPad also supports these combinations with a compatible physical keyboard.
In Google Docs on Android with a compatible physical keyboard, press Ctrl + Z to undo. Press Ctrl + Shift + Z to redo. Pressing Ctrl + Y repeats the last action.
In supporting text fields on iOS 27 and iPadOS 27, swipe left with three fingers, then tap the Undo button or Undo to reverse a text edit. To redo, swipe right with three fingers, then tap the Redo button or Redo. On iPhone, the text controls can appear at the top of the screen.
On supported Galaxy phones using Samsung Keyboard, swipe left with two fingers to undo. Swipe right with two fingers to redo.
In Gboard for Android, tap Backspace after an automatic correction to undo that correction. If proofreading is available and you apply corrections with Fix it, tap Undo to remove the correction. Proofreading has availability restrictions, including US English requirements.
Enter shortcuts one key at a time
On Windows 11, open Start > Settings > Accessibility > Keyboard, then turn on Sticky keys to enter shortcut keys sequentially. Alternatively, turn on On-screen keyboard and select the shortcut keys with a pointing device. You can also open the onscreen keyboard with Windows + Ctrl + O.
On Mac, choose Apple menu > System Settings > Accessibility > Keyboard. Enable Sticky Keys for sequential entry or Accessibility Keyboard for onscreen input. Press Option + Command + F5 to open the Accessibility Shortcuts panel. If you selected only one feature for the shortcut, the panel does not appear and that feature turns on or off instead.
On Chromebook, select the time, then open Settings > Accessibility. Under Keyboard and text input, turn on Sticky keys. Enter the modifier keys and Z sequentially for the applicable undo or redo shortcut.
Use voice commands to undo
With Windows 11 Voice access configured and listening, focus the target editing surface. Say Undo that to undo or Redo that to redo. These English commands depend on the app supporting the action and having an available action to reverse.
In Google Docs, open a document in Chrome, Edge, or Safari, then select Tools > Voice typing and click the microphone. To reverse an incorrectly interpreted command, say Undo. Voice commands require English account and document languages and are unavailable in Slides speaker notes.
Set up custom undo shortcuts
On Mac, choose Apple menu > System Settings > Keyboard > Keyboard Shortcuts > App Shortcuts. Click Add and choose the application. In Menu title, enter the existing undo or redo menu command exactly as displayed.
In Keyboard shortcut, press your desired combination, then click Done. Some apps do not permit this customization, so use their existing shortcuts or menu controls instead.
In Gmail on a computer, open Settings > See all settings, find Keyboard shortcuts, and select Keyboard shortcuts on. Click Save Changes, then press z in the mailbox interface to undo the last supported mailbox action. This shortcut applies to mailbox actions rather than general text editing.
You can also enable Gmail shortcuts through shortcut help. Press ?, press Tab to reach Enable, then press Enter.
To change Gmail's undo key, open Advanced in Gmail settings. Beside Custom keyboard shortcuts, click Enable, then click Save Changes. Reopen settings, select Keyboard Shortcuts, enter a replacement key beside the undo action, then click Save Changes.
Frequently Asked Questions
How can you see the keyboard shortcuts inside Google Docs?
In the Google Docs browser editor on Windows or ChromeOS, press Ctrl + / to open the shortcut reference. On Mac, press Command + /.
How do you stop accidentally triggering Shake to Undo on iPhone?
Open Settings > Accessibility > Touch, then turn off Shake to Undo. This disables the shake-triggered undo feature.
Does Photoshop keep History panel states after you close a document?
Closing a Photoshop document clears its history states and snapshots. Use those recorded states during the current editing session.
How do you remove a custom Mac undo shortcut?
Removing a custom shortcut removes that keyboard assignment. Choose Apple menu > System Settings > Keyboard > Keyboard Shortcuts > App Shortcuts, select the custom shortcut, then click Remove.