3G2

video/3gpp2

Safe

Magic Bytes

Offset: 4
66 74 79 70 33 67 32 61

The 3GPP2 Multimedia File Format (3G2) is a container standard developed by the 3rd Generation Partnership Project 2 for multimedia services on CDMA cellular networks. It was specifically designed for capturing and transmitting audio and video content via the Multimedia Messaging Service on early mobile devices. Although now considered a legacy format superseded by MP4, it is frequently encountered during digital forensic analysis and the archival of media from older mobile hardware.

Extension

.3g2

MIME Type

video/3gpp2

Byte Offset

4

Risk Level

Safe

Validation Code

How to validate .3g2 files in Python

Python
def is_3g2(file_path: str) -> bool:
    """
    Check if file is a valid 3G2 by magic bytes.
    Signature offset: 4 bytes
    """
    signature = bytes([0x66, 0x74, 0x79, 0x70, 0x33, 0x67, 0x32, 0x61])
    with open(file_path, "rb") as f:
        f.seek(4)
        return f.read(8) == signature

How to validate .3g2 files in Node.js

Node.js
function is3G2(buffer: Buffer): boolean {
  // Signature offset: 4 bytes
  const signature = Buffer.from([0x66, 0x74, 0x79, 0x70, 0x33, 0x67, 0x32, 0x61]);
  if (buffer.length < 12) return false;
  return buffer.subarray(4, 12).equals(signature);
}
Go
func Is3G2(data []byte) bool {
    // Signature offset: 4 bytes
    signature := []byte{0x66, 0x74, 0x79, 0x70, 0x33, 0x67, 0x32, 0x61}
    if len(data) < 12 {
        return false
    }
    return bytes.Equal(data[4:12], signature)
}

API Endpoint

GET /api/v1/3g2
curl https://filesignature.org/api/v1/3g2

Related Formats