OAR

application/octet-stream

Safe

Magic Bytes

Offset: 0
4F 41 52

OpenSimulator Archive (OAR) is a standardized packaging format developed by the OpenSimulator project for the archival and transport of virtual world environments. It is primarily used to back up entire simulator regions, including terrain data, primitive objects, inventory assets, and region-specific settings. As a compressed archive, it is generally considered safe for storage, though users should verify the origin of archives to prevent the execution of malicious scripts upon region restoration.

Extension

.oar

MIME Type

application/octet-stream

Byte Offset

0

Risk Level

Safe

Validation Code

How to validate .oar files in Python

Python
def is_oar(file_path: str) -> bool:
    """Check if file is a valid OAR by magic bytes."""
    signature = bytes([0x4F, 0x41, 0x52])
    with open(file_path, "rb") as f:
        return f.read(3) == signature

How to validate .oar files in Node.js

Node.js
function isOAR(buffer: Buffer): boolean {
  const signature = Buffer.from([0x4F, 0x41, 0x52]);
  return buffer.subarray(0, 3).equals(signature);
}
Go
func IsOAR(data []byte) bool {
    signature := []byte{0x4F, 0x41, 0x52}
    if len(data) < 3 {
        return false
    }
    return bytes.Equal(data[:3], signature)
}

API Endpoint

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

Related Formats