Recover an unsaved Notepad file
Open Notepad again before doing anything else. The Windows 11 Notepad with tabs reopens unsaved tabs from the last session when its startup setting is Continue previous session. If that setting was set to discard unsaved changes, or you use the old Notepad, unsaved text is not kept. A saved .txt file that you deleted can be found with the Recycle Bin, Previous versions or winfr.
Checked November 10, 2026 against the manufacturer's own pages.
The short version
What to install and where it comes from. Every link goes to the manufacturer or Microsoft, never to a copy.
Official files only, nothing bundled
Step by step
Reopen Notepad first
Launch Notepad from Start and look at the tab strip. With session restore on, the tabs you had open come back, including text you never saved. Save each one with Ctrl+S straight away.
Check the startup setting
Select the gear icon to open Settings and find When Notepad starts. Continue previous session keeps unsaved tabs. Start new session and discard unsaved changes does not, and earlier text will not return.
Do not reset or reinstall Notepad yet
Repair, Reset or uninstalling the app from Settings can clear the data it uses to restore tabs. Copy the session folder described below to a USB drive before trying any of them.
Find a deleted .txt file
If the text had been saved and the file was deleted, check the Recycle Bin, then right-click its folder and choose Restore previous versions. Searching This PC for *.txt also finds files saved to an unexpected folder.
Scan with winfr
For a deleted text file in Documents: winfr C: E: /regular /n \Users\<username>\Documents\*.txt where E: is a different drive. Open the Recovery folder on E: and check the results.
Use a recovery program last
If winfr finds nothing, a recovery program that reads the drive directly can try once more. Save results to the second drive, never to C:.
If the free methods found nothing
Deleted files usually stay on the drive until new data overwrites them. A recovery program reads the drive directly, lists what can still be saved and lets you preview it before restoring. Save recovered files to a different drive.
Find and preview your deleted files
Scans hard drives, USB sticks and memory cards, including quick-formatted ones, and shows what can be recovered.
Auslogics File Recovery 12 · Free scan and preview · NTFS, FAT, exFAT · Windows 11, 10, 8, 7
Two Notepads, two different answers
Windows 11 ships a newer Notepad from the Microsoft Store, with tabs, a Settings page and session restore. When its startup option is Continue previous session, Notepad stores open tabs, including untitled ones, and reloads them at the next launch. Older Notepad, the single window app from Windows 10 and before, keeps nothing. Close it with Do not save and the text is gone, because it only ever lived in memory. Knowing which one you use tells you at once whether there is anything to look for.
Where the restored tabs live
The new Notepad keeps its session state inside its app data folder. Microsoft community answers place it at %LocalAppData%\Packages\Microsoft.WindowsNotepad_8wekyb3d8bbwe\LocalState\TabState. Paste that into the File Explorer address bar to see the files. They are not plain text, so do not edit them, but copy the whole folder to a USB stick as a safety copy before you repair, reset, update or reinstall Notepad. If Notepad then reopens without your tabs, you still have the original state to put back.
Keep Notepad text safe from now on
Leave When Notepad starts on Continue previous session. Give any note worth keeping a file name early with Ctrl+S, ideally in a OneDrive or File History protected folder such as Documents. For longer writing, Word with AutoRecover or a OneDrive document is a better home, since both keep versions. Notepad is built for quick text, and its session restore is a convenience rather than a backup.
Questions
Does Notepad have AutoSave like Word?
Not in the Word sense. The Windows 11 version keeps your open tabs and their unsaved content between sessions, but it does not save to the file itself until you press Save.
I closed a single tab and chose Do not save. Can I get it back?
Usually not. Session restore keeps tabs that were still open when Notepad closed. A tab you closed yourself without saving is dropped.
My PC restarted for an update and Notepad came back empty. Why?
Check When Notepad starts in Settings. If it was set to start a new session, the earlier tabs were discarded. If it was set to continue, copy the session folder before changing anything and try reopening Notepad.
Can Windows File Recovery get unsaved Notepad text?
No. winfr recovers deleted files. Text that was never saved to a file has no file entry for it to find.