Palmpilot resource file

application/x-mobipocket-ebook

Safe

Magic Bytes

Offset: 0
42 4F 4F 4B 4D 4F 42 49

The Palm Pilot resource file is a database container format originally developed by Palm, Inc. for use on the Palm OS platform. These files primarily serve as electronic books for Mobipocket Reader and early versions of the Amazon Kindle, though they originally stored handheld applications and system data. Now considered a legacy format, it has been largely superseded by modern standards like EPUB, yet it remains a stable, low-risk container for static text and image content.

Extension

.prc

MIME Type

application/x-mobipocket-ebook

Byte Offset

0

Risk Level

Safe

Validation Code

How to validate .prc files in Python

Python
def is_prc(file_path: str) -> bool:
    """Check if file is a valid PRC by magic bytes."""
    signature = bytes([0x42, 0x4F, 0x4F, 0x4B, 0x4D, 0x4F, 0x42, 0x49])
    with open(file_path, "rb") as f:
        return f.read(8) == signature

How to validate .prc files in Node.js

Node.js
function isPRC(buffer: Buffer): boolean {
  const signature = Buffer.from([0x42, 0x4F, 0x4F, 0x4B, 0x4D, 0x4F, 0x42, 0x49]);
  return buffer.subarray(0, 8).equals(signature);
}
Go
func IsPRC(data []byte) bool {
    signature := []byte{0x42, 0x4F, 0x4F, 0x4B, 0x4D, 0x4F, 0x42, 0x49}
    if len(data) < 8 {
        return false
    }
    return bytes.Equal(data[:8], signature)
}

API Endpoint

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

Related Formats