SPSS Statistics

application/octet-stream

Safe

Magic Bytes

Offset: 0
25 21 50 53 2D 41 64 6F 62 65 2D

The SPSS Statistics (SAV) format is a proprietary binary format created by SPSS Inc. and currently maintained by IBM for storing statistical datasets. This format is primarily used by social scientists and researchers for managing survey results, performing data manipulations, and conducting quantitative analysis. Although the binary structure is generally considered safe, it remains a closed specification, necessitating the use of specialized software or open-source libraries for cross-platform data migration.

Extension

.sav

MIME Type

application/octet-stream

Byte Offset

0

Risk Level

Safe

Validation Code

How to validate .sav files in Python

Python
def is_sav(file_path: str) -> bool:
    """Check if file is a valid SAV by magic bytes."""
    signature = bytes([0x25, 0x21, 0x50, 0x53, 0x2D, 0x41, 0x64, 0x6F, 0x62, 0x65, 0x2D])
    with open(file_path, "rb") as f:
        return f.read(11) == signature

How to validate .sav files in Node.js

Node.js
function isSAV(buffer: Buffer): boolean {
  const signature = Buffer.from([0x25, 0x21, 0x50, 0x53, 0x2D, 0x41, 0x64, 0x6F, 0x62, 0x65, 0x2D]);
  return buffer.subarray(0, 11).equals(signature);
}
Go
func IsSAV(data []byte) bool {
    signature := []byte{0x25, 0x21, 0x50, 0x53, 0x2D, 0x41, 0x64, 0x6F, 0x62, 0x65, 0x2D}
    if len(data) < 11 {
        return false
    }
    return bytes.Equal(data[:11], signature)
}

API Endpoint

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

Related Formats