Microsoft Reader eBook file

application/octet-stream

Safe

Magic Bytes

Offset: 0
49 54 53 46

The Microsoft Reader eBook file is a proprietary digital book format developed by Microsoft specifically for use with the Microsoft Reader application. It was historically employed for distributing electronic literature and commercial publications intended for personal computers and handheld devices. This format is now considered obsolete following the discontinuation of the software in 2012, though it remains structurally similar to Microsoft Compiled HTML Help files with added digital rights management capabilities.

Extension

.lit

MIME Type

application/octet-stream

Byte Offset

0

Risk Level

Safe

Validation Code

How to validate .lit files in Python

Python
def is_lit(file_path: str) -> bool:
    """Check if file is a valid LIT by magic bytes."""
    signature = bytes([0x49, 0x54, 0x53, 0x46])
    with open(file_path, "rb") as f:
        return f.read(4) == signature

How to validate .lit files in Node.js

Node.js
function isLIT(buffer: Buffer): boolean {
  const signature = Buffer.from([0x49, 0x54, 0x53, 0x46]);
  return buffer.subarray(0, 4).equals(signature);
}
Go
func IsLIT(data []byte) bool {
    signature := []byte{0x49, 0x54, 0x53, 0x46}
    if len(data) < 4 {
        return false
    }
    return bytes.Equal(data[:4], signature)
}

API Endpoint

GET /api/v1/lit
curl https://filesignature.org/api/v1/lit

Related Formats