QT

video/quicktime

Safe

Magic Bytes

Offset: 4
6D 6F 6F 76 00

The QuickTime File Format (QT) is a multimedia container developed and maintained by Apple Inc. for storing various types of synchronized media data. It primarily stores video and audio tracks, serving as the technical foundation for the more modern MP4 standard while remaining compatible with major media players. Although largely succeeded by the .mov extension and the MPEG-4 specification, this legacy format remains a secure standard for local media playback within supported software environments.

Extension

.qt

MIME Type

video/quicktime

Byte Offset

4

Risk Level

Safe

Validation Code

How to validate .qt files in Python

Python
def is_qt(file_path: str) -> bool:
    """
    Check if file is a valid QT by magic bytes.
    Signature offset: 4 bytes
    """
    signature = bytes([0x6D, 0x6F, 0x6F, 0x76, 0x00])
    with open(file_path, "rb") as f:
        f.seek(4)
        return f.read(5) == signature

How to validate .qt files in Node.js

Node.js
function isQT(buffer: Buffer): boolean {
  // Signature offset: 4 bytes
  const signature = Buffer.from([0x6D, 0x6F, 0x6F, 0x76, 0x00]);
  if (buffer.length < 9) return false;
  return buffer.subarray(4, 9).equals(signature);
}
Go
func IsQT(data []byte) bool {
    // Signature offset: 4 bytes
    signature := []byte{0x6D, 0x6F, 0x6F, 0x76, 0x00}
    if len(data) < 9 {
        return false
    }
    return bytes.Equal(data[4:9], signature)
}

API Endpoint

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

Related Formats