For a comprehensive step-by-step guide including manual analysis with strings and hexdump, visit:
Complete Guide: Decoding Notepad Binary Files
NotepadDecoder extracts UTF-16LE encoded text from Windows Notepad's TabState binary files. These files contain unsaved Notepad content that would otherwise be lost. Perfect for dual-boot setups, forensics, or data recovery scenarios.
- π Automatic Detection: Scans for UTF-16LE text runs in .bin files
- π Batch Processing: Process single files or entire directories
- π¨ Interactive Mode: User-friendly CLI with file previews
- πΎ Smart Output: Saves decoded content as readable markdown files
- π₯οΈ Cross-Platform: Works on Linux, Windows, and macOS
- Python 3.10+ (Download Python)
- For colors:
pip install colorama
git clone https://github.com/anonfaded/NotepadDecoder.git
cd NotepadDecoderSingle File:
python3 notepad_decoder.py /path/to/TabState/file.bin
# or python notepad_decoder.py on WindowsDirectory (Batch Processing):
python3 notepad_decoder.py /path/to/TabState/
# or python notepad_decoder.py on WindowsInteractive Mode:
python3 notepad_decoder.py
# or python notepad_decoder.py on WindowsHelp:
python3 notepad_decoder.py --help
# or python notepad_decoder.py --help on WindowsWhen run on a single .bin file, this is the output:
Extracted Content:
----------------------------------------
added zoom feature
added immediate delete option
some notes here
fixed issue with the wide lens and 60fps not workingThe TabState files are located at:
C:\Users\USERNAME\AppData\Local\Packages\Microsoft.WindowsNotepad_8wekyb3d8bbwe\LocalState\TabState\For dual-boot Linux users, use ls -la /media/<USER>/ to find the mounted drives and navigate to where the TabState files are stored:
/media/USERNAME/DRIVE/Users/USERNAME/AppData/Local/Packages/Microsoft.WindowsNotepad_8wekyb3d8bbwe/LocalState/TabState/- UTF-16LE Detection: Scans binary files for UTF-16LE encoded ASCII sequences
- Fallback Decoding: Attempts whole-file UTF-16LE decoding at multiple offsets
- Content Extraction: Extracts readable text and saves as markdown files
- Smart Naming: Creates meaningful filenames from content
MIT License - see LICENSE file for details.
