Skip to content

StuffIt compressed archive (.sit)

.sit file signature | application/x-stuffit

StuffIt compressed archive

Safe

Magic Bytes

Offset 0
53 74 75 66 66 49 74

Sources: Apache Tika

All Known Signatures

3 signature variants are documented for .sit files across multiple sources.

Hex Signature Offset Sources
53 74 75 66 66 49 74 0 Apache Tika
53 49 54 21 00 0 Gary Kessler
53 74 75 66 66 49 74 20 28 63 29 31 39 39 37 2D 0 Gary Kessler

Extension

.sit

MIME Type

application/x-stuffit

Byte Offset

0

Risk Level

Safe

Validation Code

How to validate .sit files in Python

Python
def is_sit(file_path: str) -> bool:
    """Check if file is a valid SIT by magic bytes."""
    signature = bytes([0x53, 0x74, 0x75, 0x66, 0x66, 0x49, 0x74])
    with open(file_path, "rb") as f:
        return f.read(7) == signature

How to validate .sit files in Node.js

Node.js
function isSIT(buffer: Buffer): boolean {
  const signature = Buffer.from([0x53, 0x74, 0x75, 0x66, 0x66, 0x49, 0x74]);
  return buffer.subarray(0, 7).equals(signature);
}

How to validate .sit files in Go

Go
func IsSIT(data []byte) bool {
    signature := []byte{0x53, 0x74, 0x75, 0x66, 0x66, 0x49, 0x74}
    if len(data) < 7 {
        return false
    }
    return bytes.Equal(data[:7], signature)
}

API Endpoint

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

See the full API documentation for all endpoints and parameters.

Frequently Asked Questions

What is a .sit file?

A .sit file is a StuffIt compressed archive file. StuffIt compressed archive

What are the magic bytes for .sit files?

The magic bytes for StuffIt compressed archive files are 53 74 75 66 66 49 74 at byte offset 0. These bytes uniquely identify the file format regardless of the file extension.

How do I validate a .sit file?

To validate a .sit file, read the first bytes of the file and compare them against the known magic bytes (53 74 75 66 66 49 74) at offset 0. This is more reliable than checking the file extension alone, as extensions can be renamed.

What is the MIME type for .sit files?

The primary MIME type for .sit files is application/x-stuffit.

Is it safe to open .sit files?

StuffIt compressed archive (.sit) files are generally safe to open. They are classified as low risk because they primarily contain data rather than executable code. However, always ensure files come from a trusted source.