Recover an Unsaved Notepad++ File After a Crash
If Notepad++ crashed or closed before you saved, your text is almost always still on disk in the backup folder at <code>%AppData%\Notepad++\backup</code>. Open that folder, grab the most recent file, and open it in Notepad++ — that is your unsaved session. Below is the exact path, the three steps to restore it, and how to switch on snapshots so a crash never costs you work again.
Where Notepad++ keeps unsaved work
With the session snapshot feature on (it is on by default in modern versions), Notepad++ periodically writes a copy of every open tab to a hidden backup folder. After an unexpected close it reloads them automatically on the next launch. If it did not, the files are still sitting here:
- Path:
C:\Users\<you>\AppData\Roaming\Notepad++\backup - Quick open: press Win+R, type
%AppData%\Notepad++\backup, hit Enter.
Restore it in three steps
- Open the backup folder with the path above and sort by Date modified — the newest file is your last session.
- Drag that file into Notepad++ (or File → Open). The full unsaved text appears in the editor.
- Immediately File → Save As to a real name and location so it is no longer a temporary backup.
Also check File → Open Recent inside Notepad++ — it lists the paths you were editing, which helps you match a backup file to the right document.
Turn on snapshots so it never happens again
Go to Settings → Preferences → Backup and enable Remember current session for next launch and Enable session snapshot and periodic backup. Set the interval to every 7–10 seconds. From then on Notepad++ restores every open tab automatically after any crash or power loss — nothing to hunt for.
If the backup folder is empty
If snapshots were off, the backup folder may be empty. The text was never written to disk, so the only remaining option is file-recovery software scanning for recently deleted temp files — results vary and are not guaranteed. The reliable fix is turning snapshots on now so the next crash is recoverable.
FAQ
Where does Notepad++ store unsaved files?
In the backup folder at %AppData%\Notepad++\backup (full path: C:\Users\<you>\AppData\Roaming\Notepad++\backup). With session snapshot enabled, Notepad++ writes a copy of every open tab there every few seconds.
I closed Notepad++ without saving — can I get the text back?
Usually yes. Reopen Notepad++ first; with session snapshot on it often reloads the tabs automatically. If not, open %AppData%\Notepad++\backup, sort by Date modified, and open the newest file — that is your unsaved content. Then use Save As to keep it.
The Notepad++ backup folder is empty. What now?
That means session snapshot was off, so the text was never saved to disk. Turn it on under Settings → Preferences → Backup for the future. For the lost text, only file-recovery software scanning for deleted temp files may help, with no guarantee.
Other file types explained
- Vim: Swap File Already Exists — Recover, Edit, or Delete?
- Convert .crdownload to MP4 — How to Play an Incomplete Video
- Firefox Download Stuck at 100% — How to Fix the .part File
- Vim E325: ATTENTION — Swap File Error Explained & Fixed
- What Is a .~lock File? (LibreOffice Lock File)
- What Is a ~$ File? (Word & Excel Owner File)
- Chrome Download Stuck or Not Finishing — How to Fix It
- How to Open a .crdownload File (and Play a Partial Download)