Harvard Graphics DOS Ver

application/octet-stream

Safe

Magic Bytes

Offset: 0
52 49 46 46 73 68 77 34

Harvard Graphics DOS Version (SHW) is a legacy presentation file format developed by Software Publishing Corporation for the DOS operating system. It was primarily used to create slide shows, business graphics, and charts during the late 1980s and early 1990s. As an obsolete format, it requires specific legacy software or modern conversion tools for viewing, and it is generally considered safe due to its lack of executable code or complex macro capabilities.

Extension

.shw

MIME Type

application/octet-stream

Byte Offset

0

Risk Level

Safe

Validation Code

How to validate .shw files in Python

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

How to validate .shw files in Node.js

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

API Endpoint

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

Related Formats