|

How To Recover Unsaved Or Lost Files In Notepad++ (2027)

Quick answer

  • Reopen Notepad++ first: if Settings > Preferences > Backup > Enable session snapshot and periodic backup was on, your unsaved tabs come back by themselves.
  • If they do not, look in %AppData%\Notepad++\backup\ for files named like new 1@2026-11-29_101500 or filename.ext@date_time and open them in Notepad++.
  • A file you closed after saving can be reopened with File > Recent Files > Restore Recent Closed File.

Applies to: Notepad++ for Windows (installed version, default settings; checked against the current user manual)

Notepad++ keeps unsaved tabs for you when its session snapshot and periodic backup option is on, so a crash or an accidental close is often recoverable.

The files are kept in a backup folder inside your user profile, and you can open them from there if they do not reappear.

This guide follows the Notepad++ user manual and was checked on November 29, 2026.

Table of Contents

Quick answer: get your Notepad++ text back

SituationWhat to try
Notepad++ closed or crashed with unsaved tabsStart it again; with the snapshot option on, the unsaved tabs reopen.
Tabs did not come backOpen the %AppData%\Notepad++\backup\ folder and look for the files.
You closed a saved file by mistakeFile > Recent Files > Restore Recent Closed File.
You overwrote a file you savedLook for a .bak copy if Backup on save was on.
You clicked Reload from DiskUnsaved changes in that tab are lost, so do not use it.

Restart Notepad++ first

When you exit Notepad++ with unsaved changes, the manual says it will not ask you to save, because the periodic backup restores those changes on the next launch.

  1. Open Notepad++ again.
  2. Look through the tab bar for tabs named new followed by a number, or for your named files.
  3. Save each one you need with File > Save As.

The manual says unsaved documents stay in the default session only when the snapshot option is checked, and when it is unchecked, exiting prompts you to save changed files.

Check that the safety net is on

Open Settings > Preferences > Backup and look at these options.

OptionWhat it does
Remember current session for next launchReopens the same list of files on your next launch.
Enable session snapshot and periodic backupAuto-saves changed files to the backup folder every few seconds; it requires the session option above.
Remember inaccessible files from past sessionControls whether a session keeps files that no longer exist.

The manual does not state the interval’s default value in the text we read, so check the setting on your own PC.

Find the backup folder

The default folder for periodic backups is %AppData%\Notepad++\backup\.

  1. Press Win+R.
  2. Paste the path below and press Enter.
%AppData%\Notepad++\backup\

This opens the backup folder in File Explorer.

File typeName pattern
Named filefilename.ext@yyyy-mm-dd_hhmmss
Unnamed tabnew NNN@yyyy-mm-dd_hhmmss

Open the file you need in Notepad++ and save it somewhere safe.

Why the backup can disappear

The manual warns that periodic backups are not a long-term backup.

Saving or closing a file while Notepad++ stays open deletes its periodic backup, and a crash can still lose data.

In multi-instance mode, periodic backup works only for the first instance.

Use backup on save

Backup on save is a separate setting under Settings > Preferences > Backup.

OptionWhat it keeps
NoneNo extra copy on save.
Simple backupOne .bak copy of the previous version, in the same folder as the original.
Verbose backupTimestamped .bak copies in an nppBackup subfolder of the file’s folder.

A backup on save always holds the version from just before your last save, so it is one version behind.

If you set a Custom Backup Directory, files with the same name from different folders can overwrite each other’s backups.

Reopen a file you closed

Choose File > Recent Files > Restore Recent Closed File, which reopens the most recently closed file.

The Recent Files list shows files Notepad++ has edited and then closed, and you can click any entry to open it.

If your list is not in a sub-menu, the entry sits directly under the File menu.

Save and load a session

A session is a set of files that can be opened with one action, and it stores file paths, the active file, selections, positions and bookmarks.

Use File > Save Session and File > Load Session, but note that unsaved or unnamed documents are not included, so save them to a file first.

What not to click

File > Reload from Disk replaces the editor contents with the last-saved version, so unsaved changes in that tab are lost.

With the snapshot option on, Notepad++ does not ask you to save on exit, so reopen it to get your unsaved tabs back.

For Microsoft Office files, see our separate guide to recovering an unsaved Word document.

We also cover how to download and install Notepad++.

Sources

Leave a Reply

Your email address will not be published. Required fields are marked *