Skip to content

Microsoft Windows Media Audio/Video File (.wmv)

.wmv file signature | video/x-ms-wmv

Microsoft Windows Media Audio/Video File (WMV) is a digital media container format developed by Microsoft and maintained as part of the Windows Media family. It is used for storing and streaming compressed audio and video, and is commonly supported by Windows Media Player, media servers, and many conversion tools. The format is legacy in many workflows, but it is generally safe to open when obtained from trusted sources.

Safe

Magic Bytes

Offset 0
30 26 B2 75 8E 66 CF 11 A6 D9 00 AA 00 62 CE 6C

Sources: Gary Kessler, Neil Harvey FileSignatures

All Known Signatures

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

Hex Signature Offset Sources
30 26 B2 75 8E 66 CF 11 A6 D9 00 AA 00 62 CE 6C 0 Gary Kessler, Neil Harvey FileSignatures
30 26 B2 75 8E 66 CF 11 0 Wikipedia
A6 D9 00 AA 00 62 CE 6C 0 Wikipedia

Extension

.wmv

MIME Type

video/x-ms-wmv

Byte Offset

0

Risk Level

Safe

Validation Code

How to validate .wmv files in Python

Python
def is_wmv(file_path: str) -> bool:
    """Check if file is a valid WMV by magic bytes."""
    signature = bytes([0x30, 0x26, 0xB2, 0x75, 0x8E, 0x66, 0xCF, 0x11, 0xA6, 0xD9, 0x00, 0xAA, 0x00, 0x62, 0xCE, 0x6C])
    with open(file_path, "rb") as f:
        return f.read(16) == signature

How to validate .wmv files in Node.js

Node.js
function isWMV(buffer: Buffer): boolean {
  const signature = Buffer.from([0x30, 0x26, 0xB2, 0x75, 0x8E, 0x66, 0xCF, 0x11, 0xA6, 0xD9, 0x00, 0xAA, 0x00, 0x62, 0xCE, 0x6C]);
  return buffer.subarray(0, 16).equals(signature);
}

How to validate .wmv files in Go

Go
func IsWMV(data []byte) bool {
    signature := []byte{0x30, 0x26, 0xB2, 0x75, 0x8E, 0x66, 0xCF, 0x11, 0xA6, 0xD9, 0x00, 0xAA, 0x00, 0x62, 0xCE, 0x6C}
    if len(data) < 16 {
        return false
    }
    return bytes.Equal(data[:16], signature)
}

API Endpoint

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

See the full API documentation for all endpoints and parameters.

Related Formats

Frequently Asked Questions

What is a .wmv file?

A .wmv file is a Microsoft Windows Media Audio/Video File file. Microsoft Windows Media Audio/Video File (WMV) is a digital media container format developed by Microsoft and maintained as part of the Windows Media family. It is used for storing and streaming compressed audio and video, and is commonly supported by Windows Media Player, media servers, and many conversion tools. The format is legacy in many workflows, but it is generally safe to open when obtained from trusted sources.

What are the magic bytes for .wmv files?

The magic bytes for Microsoft Windows Media Audio/Video File files are 30 26 B2 75 8E 66 CF 11 A6 D9 00 AA 00 62 CE 6C at byte offset 0. These bytes uniquely identify the file format regardless of the file extension.

How do I validate a .wmv file?

To validate a .wmv file, read the first bytes of the file and compare them against the known magic bytes (30 26 B2 75 8E 66 CF 11 A6 D9 00 AA 00 62 CE 6C) at offset 0. This is more reliable than checking the file extension alone, as extensions can be renamed.

What is the MIME type for .wmv files?

The primary MIME type for .wmv files is video/x-ms-wmv.

Is it safe to open .wmv files?

Microsoft Windows Media Audio/Video File (.wmv) 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.