Cómo recuperar archivos de Notepad++ que no se han guardado o que se han eliminado

Losing a tab after a crash, restart, or accidental closure can wipe out hours of work in seconds. The good news is that Notepad++ may have stored a temporary snapshot even if you never clicked Save. This guide explains how to recover Notepad++ unsaved files, where to look first, and when a recuperación de archivos eliminados scan is appropriate. If the missing content had already been written to disk, Magic Data Recovery can also search for deleted TXT files and lost Notepad++ backup copies.
Compatible con Windows 7/8/10/11 y Windows Server
Act before troubleshooting: Avoid installing programs, downloading large files, or running cleanup tools on the affected drive. New data may overwrite a deleted text file or backup snapshot.
Índice
Can Notepad++ Recover an Unsaved File?
Sometimes. The answer depends on whether Notepad++ wrote the text to its backup folder before the loss occurred.
Notepad++ can create a session snapshot of edited tabs at a set interval. The default backup location for a standard installation is usually:
- %AppData%\Notepad++\backup
However, this snapshot is temporary. According to the official Notepad++ user manual, Notepad++ uses periodic backups for changed files and removes a snapshot after the related file is saved. Closing an unsaved tab and choosing not to save it may also remove the temporary copy.
This distinction matters because Notepad++ recover files methods do not all solve the same problem:
| ¿Qué ha pasado? | El mejor método inicial | Can recovery software help? |
| Notepad++ crashed with the tab still open | Reopen Notepad++ and check the restored session | Normalmente innecesario |
| An unsaved tab disappeared after a restart or update | Check the Notepad++ backup folder and session.xml | Possibly, if a snapshot existed and was deleted |
| A saved .txt, code, or log file was deleted | Check Recycle Bin, File History, then scan the drive | Yes, if the file has not been overwritten |
| A file was replaced or saved with unwanted changes | Check backup-on-save, Previous Versions, or cloud history | Recovery tools may find an older deleted copy |
| The document was never saved and periodic backup was disabled | No disk copy may exist | Usually not; software cannot reconstruct text never written to storage |
How to Recover Notepad++ Unsaved Files: 7 Practical Methods
Start with the least invasive option. Do not jump straight to a full disk scan if Notepad++ still has a valid session snapshot.
Method 1: Reopen Notepad++ and Check the Previous Session
If Notepad++ or Windows closed unexpectedly, launch Notepad++ once and wait for the tabs to load. When Remember current session for next launch and periodic backup were enabled, the program may reopen unnamed tabs such as new 1 together with unsaved changes in named files.
As soon as the missing tab appears:
- Seleccione Archivo > Guardar como.
- Give the document a clear filename and extension.
- Save it to a backed-up folder, preferably on another drive if the original disk has errors.
Do not repeatedly close and reopen the application. Session information can change during each launch, so save any recovered content immediately.
Method 2: Open the Default Notepad++ Backup Folder
For most standard Windows installations, the backup directory offers the fastest answer to how to recover Notepad++ unsaved files.
- Pulse Ganar + R.
- Paste %AppData%\Notepad++\backup and press Entre en.
- Ordenar la carpeta por Fecha de modificación.
- Look for names such as new 1@2026-08-24_091500 or notes.txt@2026-08-24_091500.
- Copy promising files to a different folder before opening them.
- Open each copy in Notepad++ and save the correct one with its intended extension.
Do not search only for *.txt. Periodic snapshots often end with a timestamp rather than .txt, so a wildcard search can miss the exact file you need.
Method 3: Check the Configured or Portable Backup Location
The default AppData path is not universal. A portable Notepad++ installation can keep configuration files and backups near notepad++.exe. Users can also select a custom directory.
Abrir Configuración > Preferencias > Copia de seguridad and inspect these options:
- Remember current session for next launch
- Enable session snapshot and periodic backup
- Backup path
- Backup on save settings
If a backup path appears, copy it into File Explorer. For portable mode, check the Notepad++ installation directory for a backup subfolder. When the application is unavailable, search the computer for folders named Notepad++, then inspect recently modified backup directories.
Keep in mind that session snapshot and periodic backup differs from backup on save. The former temporarily protects unsaved changes. The latter can create .bak copies when you actively save a document.
Method 4: Use session.xml to Find the Backup File
When the backup folder contains dozens of timestamped items, session.xml may map a missing tab to its snapshot.
- Close neither Notepad++ nor any recovered tabs until you have copied the relevant folders.
- Open %AppData%\Notepad++ in File Explorer.
- Copy session.xml and the entire backup folder to a safe location.
- Open the copied session.xml in another editor.
- Search for the original filename, tab name, or backupFilePath.
An entry may show the original filename and a timestamped backupFilePath. Browse to that path, copy the backup, and open the copy. This approach is especially useful when you need to recover Notepad files whose backup names no longer resemble the original project names.
session.xml is an index, not the document itself. If it references a backup that no longer exists, move on to Recycle Bin, Previous Versions, or a deleted-file scan.
Method 5: Search Windows, Recycle Bin, and Recent Locations
The file may be saved rather than unsaved. It might have a different extension, live in another folder, or have been moved accidentally.
Prueba estas comprobaciones:
- Open File Explorer and search Este PC for a distinctive phrase, the filename, *.txt, or the expected code extension.
- Ordenar los resultados por Fecha de modificación.
- Consulte Home/Quick access > Recent and Notepad++’s File > Open Recent File menú.
- Open Recycle Bin and search by name, file type, or deletion date.
- If the file appears, restore it or copy it to a safe location.
For an accidental move or rename that just happened in File Explorer, Ctrl + Z may undo the operation. Use this only when you clearly know what the most recent file action was.
Method 6: Restore a Previous Version or Cloud Copy
Windows and cloud services can preserve versions that Notepad++ itself no longer holds. Right-click the original file or its parent folder, choose Propiedades, y abrir Versiones anteriores. Available copies may come from File History or restore-point data.
Before clicking Restore, use Abrir to inspect the version. Then copy the desired document elsewhere. Restoring in place can replace the current folder contents.
If the file lived in OneDrive, Dropbox, Google Drive, Git, or another synced location, check the service’s web-based recycle bin and version history. This is often the best fix for an overwritten file because it preserves distinct historical versions rather than searching raw disk space.
Searching %TEMP% is a low-probability fallback, not the main Notepad++ recovery method. Notepad++ normally relies on its configured snapshot folder. Still, you can enter %TEMP% in Run, sort by date, and inspect recent text-like files if every documented location is empty.
Method 7: Recover Deleted Notepad Files with Magic Data Recovery
Use recovery software when a saved TXT file, a .bak copy, or a Notepad++ snapshot existed on disk and was later deleted. This is different from recovering text that never left the computer’s memory.
Magic Data Recovery addresses the situations that built-in Notepad++ methods cannot: permanent deletion, an emptied Recycle Bin, accidental formatting, a RAW or damaged file system, and files lost from internal or external storage. It supports quick and deep scanning, previews recoverable files before saving, and recognizes more than 5,000 file types.
To use it safely:
1. Stop writing new data to the drive that held the missing file.
2. Download and install Magic Data Recovery on another drive when possible.
Compatible con Windows 7/8/10/11 y Windows Server
3. Launch it and select the affected partition or storage device.

4. Start the scan, then filter results by path, file type, name, size, or modification time.

5. Preview likely TXT, source-code, log, .bak, or Notepad++ snapshot files.
6. Recover selected items to a different drive.

Why is this approach more reliable than searching random temporary folders? It scans storage for file-system records and recognizable file data rather than depending on one guessed path. It can therefore recover Notepad files that Windows no longer lists. Still, no responsible tool can guarantee recovery: TRIM SSD, secure deletion, physical damage, and overwritten sectors may make a file unrecoverable.
Notepad++ Backup Recovery vs. Data Recovery Software
Choosing the right method saves time and reduces unnecessary disk activity.
Opción | Lo mejor para | Principal ventaja | Limitación |
Reopen previous session | Crash or forced restart | Fast and built into Notepad++ | Depends on session settings and intact snapshots |
Notepad++ backup folder | Unsaved changes captured periodically | Preserves the latest temporary text | Snapshot may disappear after saving or discarding the tab |
Backup on save / .bak | Older version of a saved file | Simple copy with readable content | Must have been enabled beforehand |
Windows or cloud version history | Overwritten or synced documents | Can restore multiple versions | Requires prior backup or synchronization |
Magic Data Recovery | Deleted saved files or deleted snapshots | Scans beyond visible folders and supports damaged file systems | Cannot recover text that was never written to disk |
Lo mejor Notepad++ recover files workflow is therefore layered: check the active session, copy the backup folder, inspect version history, and scan the drive only when a disk copy likely existed.
Why the Notepad++ Backup Folder May Be Empty
An empty folder does not automatically mean Notepad++ malfunctioned. Common explanations include:
- Periodic backup was disabled before the loss.
- The interval had not elapsed before the crash.
- You saved the file, so Notepad++ removed the temporary snapshot.
- You closed the tab and chose No when asked to save.
- Notepad++ uses a custom or portable backup path.
- Another Windows account owns the relevant AppData folder.
- A cleanup utility, antivirus action, profile reset, or storage error removed the files.
- Multiple Notepad++ instances used different session behavior.
If you suspect deletion, preserve the folder and drive before running a scan. Continuing to work on the same system partition can overwrite the very snapshot you want to find.
How to Prevent Lost Notepad++ Work
Once you know how to recover Notepad++ unsaved files, spend a minute preventing the next incident.
- Abrir Configuración > Preferencias > Copia de seguridad.
- Activar Remember current session for next launch.
- Activar session snapshot and periodic backup and choose a sensible interval.
- Encender backup on save for important work and use a dedicated backup directory.
- Save new tabs early with meaningful names.
- Store critical documents in a versioned or synced folder.
- Use Git for code and maintain a separate, tested backup for irreplaceable notes.
Periodic snapshots are a safety net, not an archive. If a document matters, save it as a real file and include it in a regular backup plan.
Conclusión
To resolve how to recover Notepad++ unsaved files, first reopen the previous session, inspect %AppData%\Notepad++\backup, verify the configured backup path, and use session.xml to match tabs with snapshots. For saved files, also check Recycle Bin, Previous Versions, and cloud history.
When a TXT document or snapshot was actually written to disk and later deleted, Magic Data Recovery is worth trying because it can scan deleted files, formatted storage, and file-system errors while letting you preview results. It complements built-in backups; it does not invent content that was never stored. For more safe-recovery principles and related methods, visit the guía de recuperación de archivos eliminados.
Compatible con Windows 7/8/10/11 y Windows Server
FAQs About Notepad++ File Recovery
¿Dónde guarda Notepad++ los archivos sin guardar?
Si se ha activado la copia de seguridad periódica, una instalación estándar suele guardar las instantáneas en %AppData%\Notepad++\backup. Una instalación portátil o una configuración personalizada puede utilizar otro directorio. Comprueba Configuración > Preferencias > Copia de seguridad para la ruta activa antes de dar por hecho que faltan los archivos.
¿Cómo puedo recuperar una pestaña cerrada sin guardar en Notepad++?
Vuelve a abrir primero Notepad++ y, a continuación, comprueba en su directorio de copias de seguridad si hay un nuevo archivo N@timestamp modificado recientemente. Si cerraste la pestaña a propósito y no guardaste los cambios, es posible que Notepad++ haya eliminado la instantánea, por lo que la recuperación es menos segura.
¿Puede Notepad++ recuperar archivos tras reiniciar el ordenador?
Sí, siempre y cuando la memoria de sesión y la copia de seguridad periódica estuvieran activadas y sus archivos se mantuvieran intactos. Abre Notepad++ una vez y comprueba si se han restaurado las pestañas. Si no aparece nada, copia la carpeta de copia de seguridad y el archivo session.xml antes de intentar medidas de recuperación más drásticas.
¿Por qué está vacía mi carpeta de copias de seguridad de Notepad++?
Es posible que se haya desactivado la copia de seguridad periódica, que aún no haya transcurrido el intervalo de la instantánea o que Notepad++ utilice una ruta diferente. El programa también elimina las instantáneas temporales después de guardar un archivo o de cerrar una pestaña sin guardar.
¿Puedo recuperar un archivo de Notepad++ que no se ha guardado de la carpeta «Temp»?
Puedes comprobar %TEMP%, pero se trata de una opción secundaria. Normalmente, Notepad++ guarda instantáneas periódicas en la carpeta de copias de seguridad configurada, no en el directorio temporal genérico de Windows. Céntrate primero en la ruta de copia de seguridad oficial y en los archivos de sesión.
¿Puede Magic Data Recovery recuperar un archivo de Notepad++ que no se ha guardado?
Puede recuperar una instantánea de Notepad++ eliminada o un archivo de texto guardado anteriormente, siempre que esos datos hayan llegado al disco y no se hayan sobrescrito. No puede reconstruir un búfer de memoria sin guardar que Notepad++ nunca haya escrito en el almacenamiento.
¿Cómo puedo recuperar un archivo TXT que se ha borrado definitivamente?
Deja de utilizar la unidad afectada, comprueba si hay copias de seguridad disponibles y analízala con una herramienta de recuperación de archivos. Guarda los archivos recuperados en otra unidad. Los resultados dependen de si Windows, la función TRIM del SSD o alguna actividad posterior han sobrescrito los datos originales.
¿Al reinstalar Notepad++ se recuperan los archivos que no se han guardado?
Normalmente no. La reinstalación no recrea una instantánea que falte y puede alterar los datos de configuración. Copia primero las carpetas «AppData» y «backup» de Notepad++ que ya tengas. Busca o analiza en busca de archivos perdidos antes de instalar nada en la unidad afectada.
Jason cuenta con más de 15 años de experiencia práctica en el sector de la seguridad de datos informáticos. Está especializado en tecnologías de recuperación de datos, copia de seguridad y restauración, y reparación de archivos, y ha ayudado a millones de usuarios de todo el mundo a resolver complejos problemas de pérdida de datos y seguridad.
