How to Open Notepad with Previous Session in Windows 11

Richard
Written by
Richard
Sep 1, 2023 Updated May 1, 2026 3 min read

Windows 11 now lets Notepad remember your work. If you close the app with several tabs open, it will save them for you. When you open the app again, your work will be right where you left it. This keeps you from losing progress if you have many files open at once.

Why use this feature?

This feature is helpful because it saves time. You do not have to manually reopen every file you were working on after you restart your computer or close the app. It makes your workflow smoother and less stressful.

What happens when done?

Once you change these settings, Notepad will change how it starts. It will either load your old tabs or open a clean, blank window, depending on your choice.

How to change your Notepad settings

  1. Open the Notepad app.
  2. Click the Settings (gear) icon in the top right corner.

In the settings menu, look for the When Notepad starts section. Click it to see your choices:

  • Open content from the previous session: This brings back your unsaved work from last time.
  • Open a new window: This always starts with a fresh, empty workspace.
Notepad starts settings

When you are finished, simply close the settings menu to save your changes.

Notepad automatically saves your progress

Troubleshooting Notepad++ Session Issues

If you use Notepad++ and your files are not loading, you may need to check your session files. Notepad++ stores your open tabs in a file called session.xml. You can find this in your user folder at C:\Users\Username\AppData\Roaming\Notepad++.

Where does Notepad++ store session files?

Notepad++ saves your session data in the AppData folder. You can navigate to C:\Users\Username\AppData\Roaming\Notepad++ to find the session.xml file. If this file is corrupted, your previous tabs will not load when you restart the program.

How to recover unsaved text files

If you lost work, check the backup folder. It is usually located at C:\Users\Username\AppData\Roaming\Notepad++\backup. You might find your unsaved files there. For more advanced settings, visit the official Notepad++ documentation.

Warning: Clearing AppData

If you want to force a completely fresh start for Notepad++, you can delete the contents of the AppData folder. Warning: This will remove all your saved settings and session history. This step requires admin privileges to access and modify these system folders. Proceed with caution.

Summary

Whether you are using the native Windows 11 Notepad or the advanced Notepad++, managing your sessions is easy. Windows 11 Notepad allows you to toggle session restore in the app settings. For Notepad++ users, session management is handled through the session.xml file located in your AppData folder. Always check your backup folder if you need to recover lost text.

Why does Notepad keep opening old files?

Notepad keeps opening old files because the session restore feature is enabled in your settings. This feature is designed to help you pick up where you left off. You can disable this by going to Settings and selecting Open a new window instead of the previous session option.

How do I clear my Notepad session history?

To clear your session history in Windows 11 Notepad, you must close all open tabs before exiting the app. If you want a fresh start, you can delete the state files located in your local AppData folder. Note: This requires admin privileges to modify system-protected folders.

Was this guide helpful?

Tags: #Windows 11
Was this helpful?
Richard

About the Author

Richard

Tech Writer, IT Professional

Richard, a writer for Geek Rewind, is a tech enthusiast who loves breaking down complex IT topics into simple, easy-to-understand ideas. With years of hands-on experience in system administration and enterprise IT operations, he’s developed a knack for offering practical tips and solutions. Richard aims to make technology more accessible and actionable. He's deeply committed to the Geek Rewind community, always ready to answer questions and engage in discussions.

No comments yet — be the first to share your thoughts!

Leave a Comment

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

Exit mobile version