Where Does Windows Notepad Keep Unsaved Tabs?
Windows 11 Notepad preserves open tabs and unsaved content in its app package LocalState, separate from saved .txt files.
Last updated
Windows 11 Notepad auto preserves every open tab, including never saved scratch buffers. That state lives in the app package LocalState tree, not beside your documents. Saved .txt files go wherever Save points, usually Documents.
This split confuses restores. Reinstalling Windows keeps your .txt files but drops open tab state unless the package data migrated. For important scratch notes, save them as named files instead of trusting tab memory across resets. Character count and spellcheck settings ride in the same package data.
Where Notepad stores this, by platform
%LOCALAPPDATA%\Packages\Microsoft.WindowsNotepad_8wekyb3d8bbwe\LocalState
Tab state and backups inside. Exact package suffix may vary by build, check Packages for WindowsNotepad entries if this does not match. Named .txt files live wherever you saved them.
Frequently asked questions
Where did my unsaved Notepad tabs go after a reset?
They lived in the package LocalState above, which resets wipe. Only files saved with names survive. Turn scratch worth keeping into named files promptly.
How do I back up Notepad tab state?
Close Notepad, copy the LocalState tree elsewhere, and restore it to the same path on the target machine. Verify tabs reopen before relying on the copy.
Notice an outdated path? Let us know.