RealAudio streaming media file

audio/x-pn-realaudio

Safe

Magic Bytes

Offset: 0
2E 72 61 FD

RealAudio streaming media file is a proprietary audio format developed by RealNetworks for transmitting audio over low-bandwidth connections. This format was primarily utilized for internet radio stations, live broadcasts, and early online music distribution services throughout the late 1990s. Although largely superseded by modern standards like MP3 and AAC, this legacy format is considered low-risk as it contains compressed audio data and lacks native executable features.

Extension

.ra

MIME Type

audio/x-pn-realaudio

Byte Offset

0

Risk Level

Safe

Validation Code

How to validate .ra files in Python

Python
def is_ra(file_path: str) -> bool:
    """Check if file is a valid RA by magic bytes."""
    signature = bytes([0x2E, 0x72, 0x61, 0xFD])
    with open(file_path, "rb") as f:
        return f.read(4) == signature

How to validate .ra files in Node.js

Node.js
function isRA(buffer: Buffer): boolean {
  const signature = Buffer.from([0x2E, 0x72, 0x61, 0xFD]);
  return buffer.subarray(0, 4).equals(signature);
}
Go
func IsRA(data []byte) bool {
    signature := []byte{0x2E, 0x72, 0x61, 0xFD}
    if len(data) < 4 {
        return false
    }
    return bytes.Equal(data[:4], signature)
}

API Endpoint

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

Related Formats