Skip to main content

Free demo scans your drive and previews files before you buy.

PCVITA Logo
Data Recovery

How to Recover Unsaved Notepad File in Windows?

  • Ashwani TiwariPublished ByAshwani Tiwari
  • Tej Pratap ShuklaApproved ByTej Pratap Shukla
  • Published
  • Updated
  • Reading Time7 min
Quick Answer

Recover unsaved Notepad text before you type anything new on the drive. You get 4 methods in this guide. Method 1 reopens Notepad to restore your last session. Method 2 searches the AppData folder for leftover files. Method 3 restores a previous version with File History. Method 4 scans the drive with PCVITA software. Stop saving new files until you finish.

You close Notepad and your text is gone. Your app crashed or Windows restarted before you pressed Save.

This guide shows how to recover unsaved Notepad text with 4 methods. Microsoft describes the session restore feature on its Windows Insider blog and the version restore steps on its File History page.

Why You Lose Notepad Text Before Saving

Notepad is the plain text editor of Windows and you cannot recover unsaved Notepad text from a normal save file because none exists. You type notes, code and lists in it and many people never save until the end. A crash, a power cut or a wrong click on Don't Save removes that text.

  • Closed without saving. You click Don't Save on the prompt.
  • App crash. Notepad stops responding and you end the task.
  • System failure. Windows restarts after an update or a power cut.
  • Deleted file. You save the file and then remove it from the folder.
Do You Know?

Microsoft states that Notepad saves your session state and restores open tabs with unsaved content and edits. Open Notepad first because this feature can bring your text back.

Heads Up

Do not save new files on the drive that held the lost text. New data can overwrite the space of a deleted file.

Method #1: Reopen Notepad to Restore the Session (Free)

This first method helps you recover unsaved Notepad text with no extra software. Microsoft states that Notepad starts to save your session state automatically. Notepad then restores previously open tabs as well as unsaved content and edits across those tabs.

  1. Open Notepad from the Start menu.
  2. Check the tab bar for the tabs from your last session.
  3. Click the tab that holds your text and copy it.
  4. Click File and Save As and save the text in a safe folder.

Saved session state does not change your files. You still choose whether to save or discard changes when you close a tab.

Method #2: Search the AppData Folder for Leftover Files (Free)

You can recover unsaved Notepad file data from leftover files in some cases. Notepad can leave temporary data in your user profile. This method works on older Windows builds and on systems where Notepad shows an empty window.

  1. Press Windows + R and type %AppData%.
  2. Press Enter and open the folder that opens in File Explorer.
  3. Type *.txt in the search box and sort the results by Date modified.
  4. Open recent files one by one in Notepad and look for your text.
  5. Save the file you find to a new folder.

Open the folder of your text and press Ctrl + S to save it again. Repeat the search in the Temp folder when the first search shows nothing. Open the Start menu and type %Temp% to reach that folder.

Method #3: Restore a Previous Version With File History (Free)

Use this method to recover unsaved Notepad edits of a file that you saved once and then changed or removed. File History keeps earlier versions of saved files. Microsoft states that File History needs to be on before the loss.

  1. Open File Explorer and go to the folder that held the file.
  2. Right click the folder name and select Restore previous versions.
  3. Review the versions on the Previous Versions tab.
  4. Select a version with your file and click Open in File History to preview it.
  5. Click Restore or select Restore to to save a copy in another place.
Heads Up

Microsoft warns that a plain Restore replaces the current version and you cannot undo it. Choose Restore to when you want to keep both copies.

You can also open the Recycle Bin and restore a deleted text file from there. Right click the file and select Restore.

Method #4: Scan the Drive With PCVITA Software (Best for Deleted Files)

Use this method to recover unsaved Notepad files and deleted ones when the Recycle Bin and File History hold nothing. PCVITA Hard Disk Recovery Tool scans your drive and finds deleted text files. It reads internal and external hard drives, USB drives and SD cards.

  • Two scan modes. Scan finds deleted files and Formatted Scan searches a formatted drive.
  • Many file types. Documents, photos, videos, audio, emails and databases show in the result.
  • Free preview. The demo lists files and previews them before you buy.
  • File systems. FAT16, FAT32, exFAT and NTFS drives open in the scan.
PCVITA Hard Disk Recovery ToolScan your drive and preview deleted files before you buy.
Windows 7 to Windows 11. 30 day money back guarantee.
  1. Download PCVITA Hard Disk Recovery Tool and install it on a drive that does not hold the lost file.
  2. Open the software with administrator rights.
  3. Select the drive that held your Notepad file and click the Scan option.
  4. Wait until the scan ends and browse the folder tree for your TXT file.
  5. Preview the file and select the items you want.
  6. Choose a safe destination on another drive and save the file.
Pro Tip

The free demo previews files but cannot save them. Find your text in the preview and then activate the full edition at $39.

Which Method Fits Your Case?

MethodWorks WhenNeeds SetupCost
#1 Reopen NotepadYou closed Notepad with unsaved textNoneFree
#2 Search AppDataNotepad shows an empty windowNoneFree
#3 File HistoryYou saved the file beforeFile History turned onFree
#4 Drive ScanYou deleted the file for goodNoneFree demo, $39 full

Safe Handling Tips

  • Act fast. New files on the drive reduce your chance to recover unsaved Notepad text.
  • Save early. Press Ctrl + S as soon as you type your first line.

FAQs About Notepad File Recovery

Can I recover unsaved Notepad text after I close the app?

Yes in many cases. Microsoft states that Notepad saves its session state and restores previously open tabs with unsaved content and edits. Reopen Notepad first.

Where does Notepad keep an unsaved file?

Notepad keeps no regular file for a tab that you never saved. Windows 11 stores the session state in app data. Search the AppData folder for recent text files if Notepad shows an empty window.

Can I recover a Notepad file that I saved and then deleted?

Yes. Open the Recycle Bin and restore the file. Scan the drive with data recovery software when the Recycle Bin no longer holds it.

Does File History restore my unsaved text?

No. File History restores saved files only. Microsoft states that File History keeps versions after you enable it.

What file types does PCVITA Hard Disk Recovery Tool scan for?

PCVITA Hard Disk Recovery Tool recovers documents, photos, videos, audio, emails and databases. It lists TXT files in the scan result.

Does the free demo save the recovered Notepad files?

No. The free demo scans your drive and previews files but cannot save them. The full edition costs $39 and comes with a 30 day money back guarantee.

Which drives and Windows versions does the software support?

PCVITA Hard Disk Recovery Tool scans internal and external hard drives, USB drives and SD cards. It works on Windows 7 to Windows 11 with FAT16, FAT32, exFAT and NTFS file systems.

Closing Words

You can recover unsaved Notepad text in most cases when you act at once. Reopen Notepad first because Microsoft states that it restores your last session.

  • Methods 1 to 3 recover unsaved Notepad text for free with Windows alone.
  • Method 4 finds files that you deleted for good.