MS Windows journal file
application/octet-stream
Magic Bytes
Offset: 0
4E 45 53 4D 1A 01
Microsoft Windows Journal file (JNT) is a proprietary document format created by Microsoft to store digital ink strokes and handwritten notes. It was primarily utilized by the legacy Windows Journal application to capture handwriting, drawings, and highlighting on Tablet PC editions of Windows. Microsoft has deprecated this format and removed the associated viewer from modern operating systems due to security vulnerabilities, recommending migration to OneNote.
Validation Code
How to validate .jnt files in Python
Python
def is_jnt(file_path: str) -> bool:
"""Check if file is a valid JNT by magic bytes."""
signature = bytes([0x4E, 0x45, 0x53, 0x4D, 0x1A, 0x01])
with open(file_path, "rb") as f:
return f.read(6) == signature
How to validate .jnt files in Node.js
Node.js
function isJNT(buffer: Buffer): boolean {
const signature = Buffer.from([0x4E, 0x45, 0x53, 0x4D, 0x1A, 0x01]);
return buffer.subarray(0, 6).equals(signature);
}
Go
func IsJNT(data []byte) bool {
signature := []byte{0x4E, 0x45, 0x53, 0x4D, 0x1A, 0x01}
if len(data) < 6 {
return false
}
return bytes.Equal(data[:6], signature)
}
API Endpoint
GET
/api/v1/jnt
curl https://filesignature.org/api/v1/jnt