How to Undo in Notepad and Recover a Text Edit

Press Ctrl + Z in Notepad to undo the last text edit. Click inside the correct document first, then press the shortcut once and check the result. In modern Windows 11 Notepad, repeated presses can undo earlier edits too.

Undo is for changes in the editing session. For a file that's been closed, replaced on disk, or deleted, look for a saved copy or backup rather than keep pressing Ctrl + Z. Keep the document open while checking an accidental edit.

Undo the last edit in the correct document

Switch to Notepad and choose the document you were editing. Click in the document, hold Ctrl, and press Z once. Release both keys and look at the part of the text that changed.

A recent deletion should bring text back; a recent paste should remove what was pasted. Undo works backward through edits, so it may reverse something you did after the mistake before reaching the mistake itself.

Drawing of Notepad with the Edit menu open and Undo highlighted

Avoid holding the shortcut down. Holding the keys can undo several edits before you've checked what's happening. A paragraph can disappear because it was typed recently, even when your goal was to recover a different paragraph.

To use the mouse instead, open Edit > Undo. This is also useful when the Ctrl key or a shortcut remapping seems to be the problem. If the menu command works, the document still has an undo action available.

Microsoft's keyboard shortcut reference lists Ctrl + Z for undoing an action. Keep the keyboard focus in Notepad; the same shortcut can do something different in File Explorer.

When several Notepad windows are open, check the title before pressing the shortcut. Modern Notepad also supports tabs, so the text you want may be in another tab inside the same window.

Go back through several edits in Windows 11 Notepad

The redesigned Windows 11 Notepad supports multi-level undo. After checking the first result, press Ctrl + Z again to step back further. Stop when the document shows the version you need.

One press of Undo doesn't always change just one character. Notepad can group a stretch of typing or another editing action into one undo step. Watch the actual text after each press instead of counting keystrokes from memory.

This matters after replacing selected text. A replacement or paste can affect a large selection in one action. Undoing it can restore the selected text, so try that before manually rebuilding the deleted paragraph.

For a long document, note a distinctive phrase near the affected area first. Use that phrase to locate the affected area while stepping back. Don't rewrite the same area between undo presses unless you intend to make a new edit.

Older Windows 10 Notepad uses a much more limited undo model. It doesn't provide the modern app's multi-level editing history. Repeated Ctrl + Z presses there shouldn't be treated as a way to recover an unlimited chain of earlier changes.

Check the behavior in your copy of Notepad; its editing history differs between versions. The Notepad versions guide explains why its appearance and session behavior can differ between installations.

Redo an edit when you've undone too much

In the modern Windows 11 app, use Ctrl + Y to redo an available undone edit. Check Edit for Redo when you prefer the menu. This moves forward through the edits you've just stepped back from.

Use redo as soon as you notice you've gone back too far. Typing new text can replace the forward editing history, so making fresh corrections can stop you from redoing those earlier edits.

Classic Notepad's Undo can toggle the last change rather than offer the modern app's separate history. Read the Edit menu and check the visible result instead of assuming Ctrl + Y behaves identically on that version.

I'd keep this slow for a document with important text. One undo followed by a look at the paragraph is easier to control than a long burst of shortcuts and having to put the text back together again.

Once the text is right, use File > Save As for a separate copy when comparing it against the existing file. Choose a different filename to leave the existing file available for that comparison.

For a saved JSON copy that needs readable indentation, use the JsonTools formatter in Notepad++, a separate editor from Windows Notepad.

Why doesn't Ctrl + Z change the text?

Open the Edit menu and see whether Undo is available. A disabled command means that document has no undo action available right now. Pressing the shortcut harder or using an administrator window won't create an earlier history.

If Undo is available and works from the menu, check the keyboard. Try the other Ctrl key if your keyboard has one. Also check whether a keyboard utility or accessibility setup has reassigned the shortcut.

To check without risking your main document, start a blank document, then type one short word. Press Ctrl + Z once. If the new word disappears, Notepad is receiving the shortcut, so return to the original tab to check its Undo command.

If the menu and keyboard both fail while the app is frozen, preserve the visible text in another app if you can. A reset or reinstall can remove app data, so it isn't a first step for recovering an unsaved document.

When the app can't launch or load TXT files, the Notepad repair guide covers that separate failure. Finish saving recoverable text before using its reset steps.

Can Undo recover a file after it was closed?

Undo can't browse older saved versions of a file. When you reopen a document, its earlier editing history might be gone. If Undo is unavailable, look for an existing saved copy; a hidden shortcut won't recreate missing history.

Check another open tab, a copy you made, or the original source of pasted text. For a document kept in a service with version history, inspect that service's earlier versions before replacing the current file.

File History can help only when an existing backup contains the needed file. Enabling backups afterward won't recreate earlier text. The Recycle Bin is for a deleted file, rather than a paragraph removed inside Notepad.

If a modern Notepad session reopens with your text, save it to a named file immediately. Session restoration and undo history are different features; a restored tab doesn't mean you can still undo every earlier edit.

For repeated failures, report the Notepad version and a harmless example through Feedback Hub. Use sample text, describe whether Edit > Undo works, and keep the real document's private contents out of the report.

The Short Version

Use Ctrl + Z or Edit > Undo in the correct Notepad document. Modern Windows 11 Notepad can step through multiple edits, with Ctrl + Y for available redo actions. When undo history is gone, check saved copies and existing backups.

Checked December 3, 2026.

If you have any business, I can build it online

Hi, I’m Hamza. I’ve been building websites and online shops for business owners since 2019, and I also built this site you’re reading.

Tell me what business you have or what you’re working on. I’ll look into how much it can grow online, and then we talk. You don’t have to buy anything or hire me first.

Chat with me on my site and I’ll show you proof of businesses I’ve helped and how they’ve grown.

Written by Isaac Smith

Isaac Smith is the founder and editor of PC Glance, a website that covers computers, laptops, and technology. He is a tech enthusiast and a computer geek who loves to share his insights and help his readers make smart choices when buying tech gadgets or laptops. He is always curious and updated about the latest tech trends.

More from Isaac Smith

Leave a Comment