Have you accidentally closed Notepad or restarted your computer before saving your Notepad file, or has your PC crashed before you could save it? The good news is that you can still recover unsaved Notepad files with the quick, easy, and effective methods in this article.

First, to answer the question: does Notepad autosave files? The regular or classic Notepad application on Windows 10 and some Windows 11 versions does not save your Notepad files automatically. However, you can still recover files from the Temp and Roaming folders. You get even luckier with file recovery if you have the newer Notepad application on Windows 11 (beginning with version 11.2307.22.0), as it has a session restore feature that can bring your tabs back when you reopen the Notepad app if the app closed abruptly before you could save your work. The guide below explores all the possibilities to help you recover Notepad files.

How to Recover Unsaved Files in Notepad

You can recover unsaved Notepad files through the Ctrl+Z command, i.e., the undo shortcut, if your Notepad file contents disappeared only seconds ago (clearing the page was your last action); search the Temp or Roaming folders for your unsaved Notepad files; use Windows 11 session restore. Below are detailed explanations of these methods.

Method 1: Recover Notepad files with the Ctrl+Z command

If your last action was accidentally deleting or moving your Notepad file, you can use the Ctrl+Z shortcut to recover it. Do not perform any other action after losing your Notepad file contents; press Ctrl+Z to recover your Notepad file right away. However, if you are a Notepad++ user, you need not worry about performing other actions before file recovery, as Ctrl+Z in Notepad++ can undo multiple steps.

Also read: How to Compare Two Files in Notepad ++ 

Method 2: Restore Notepad files from the Temp folder

Windows keeps unsaved files in the Temp folder, a temporary location that stores files until you save them elsewhere or delete them. Below is how to recover unsaved Notepad files from the Temp folder.

  • Press Win+R to access the Run utility.
  • Type %temp% in the Run box and press
  • In the Temp folder, search for files with a .tmp extension or names that correspond to your unsaved Notepad files, depending on when they were edited.
  • To see all your temporary files, type .tmp in the search bar in the top-right corner of the Temp folder.
  • Open likely Notepad files to check what they contain.
  • If you find your work, save it in a safe location.

Method 3: Restore unsaved Notepad files from the Roaming folder

C:\Users\Username\AppData\Roaming is the default file location for Notepad in Windows. You can recover unsaved Notepad files from this folder. Here is how.

  • Press Win+S to access the search utility.
  • Type %AppData% in the search box and press
  • In the AppData folder, type .txt in the search bar located in the upper-right corner to check if there are any unsaved Notepad files that you want to recover.
  • If you find your unsaved Notepad files, save them in a safe place on your computer.

Method 4: Recover unsaved Notepad files from session restore (Windows 11 Notepad (11.2307.22.0))

Windows 11 has a session restore feature that can reopen tabs left unsaved when you last closed Notepad. To recover unsaved Notepad files this way, simply open Notepad; the application checks and opens your last session automatically. However, since this is not an autosave feature, your files may not come back if your system crashed before Notepad updated its session data. While this feature is enabled by default, it is worth checking if this is active on your computer and turning it on if it is not.

  • Open Notepad.
  • Click Settings in the upper-right corner.
  • Look for the When Notepad starts
  • Ensure the “When Notepad starts” option is configured to Continue where I left off.

Also read: How to Scan a Document on an iPhone?

Frequently Asked Questions

Q1. Can I recover a Notepad file that I didn’t save?

Yes, you can recover unsaved Notepad files via the Ctrl+Z command, Temp folder, Roaming folder, or Windows 11 session restore, as explained in the guide above.

Q2. Where do unsaved Notepad files go?

Windows stores unsaved files in the Temp folder, a temporary location to keep files until you save or delete them.

Q3. How do I recover an unsaved Notepad file after a reboot?

You cannot recover unsaved Notepad files after a reboot, as Notepad does not support snapshots, backups, or temporary files once you reboot the PC.

Hopefully, this helps you recover unsaved Notepad files. To prevent losing Notepad files in the future, use the Ctrl+S shortcut frequently, save files immediately after creating them, and enable OneDrive backup. If you have any doubts or confusion, leave us a comment.

Niharika

Niharika is a passionate soul who finds immense satisfaction in putting all her thoughts in writing. Being a technology enthusiast, she loves learning new things about tech and making everyone technologically literate through her articles. When not composing tech articles, you can find her bringing characters to life in her fictional stories, reading something intriguing, or spending time with her near and dear ones.

Recent Posts

  • Top 10

Best Patch Management Tools

A study reveals that more than one in four (27%) breaches happen because of an…

2 days ago
  • Top 10

Best Agentic AI Assistant for Office

An AI assistant for office automates routine tasks (such as calendar management), drafts documents, summarizes…

3 days ago
  • Tips & Tricks

What Is an Endpoint in API: Explained Completely

An API endpoint is the URL a client uses to access a resource or functionality…

4 days ago
  • Top 10

Best Free Metadata Remover Tools for Windows

Metadata provides the essential information about files, documents, photos, and databases, making them easy to…

5 days ago
  • Top 10

Best DNS Changer Software for Windows

A DNS server translates human-readable website addresses to IP addresses. Without the right DNS server,…

6 days ago
  • Top 10

Best Free Markdown Editors for Windows

Markdown editor is a specialized software tool or web application for writing Markdown (a text-to-HTML…

1 week ago