SHB

application/octet-stream

Safe

Magic Bytes

Offset: 0
52 49 46 46 73 68 62 35

The SHB file format is a Shortcut into a Document created and maintained by Microsoft Corporation for use within its Windows operating systems. It was primarily used to create links directly to specific locations within documents, such as a particular paragraph in a word processor or a cell range in a spreadsheet. This legacy format is now largely obsolete, as modern productivity suites utilize more robust internal linking mechanisms and enhanced security protocols to manage complex document references.

Extension

.shb

MIME Type

application/octet-stream

Byte Offset

0

Risk Level

Safe

Validation Code

How to validate .shb files in Python

Python
def is_shb(file_path: str) -> bool:
    """Check if file is a valid SHB by magic bytes."""
    signature = bytes([0x52, 0x49, 0x46, 0x46, 0x73, 0x68, 0x62, 0x35])
    with open(file_path, "rb") as f:
        return f.read(8) == signature

How to validate .shb files in Node.js

Node.js
function isSHB(buffer: Buffer): boolean {
  const signature = Buffer.from([0x52, 0x49, 0x46, 0x46, 0x73, 0x68, 0x62, 0x35]);
  return buffer.subarray(0, 8).equals(signature);
}
Go
func IsSHB(data []byte) bool {
    signature := []byte{0x52, 0x49, 0x46, 0x46, 0x73, 0x68, 0x62, 0x35}
    if len(data) < 8 {
        return false
    }
    return bytes.Equal(data[:8], signature)
}

API Endpoint

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

Related Formats