Skip to content

Microsoft Windows Media Audio/Video File (.wma)

.wma file signature | audio/x-ms-wma

Microsoft Windows Media Audio/Video (WMA) is a media file format developed by Microsoft as part of the Windows Media platform and based on the Advanced Systems Format container. It is used for storing compressed audio and, in some cases, audio-video content for playback in Windows Media Player and compatible media applications. The format is largely legacy, though it remains safe to open in trusted players and may appear in older media collections.

Safe

Magic Bytes

Offset 0
30 26 B2 75 8E 66 CF 11

Sources: Wikipedia

All Known Signatures

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

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

Extension

.wma

MIME Type

audio/x-ms-wma

Byte Offset

0

Risk Level

Safe

Validation Code

How to validate .wma files in Python

Python
def is_wma(file_path: str) -> bool:
    """Check if file is a valid WMA by magic bytes."""
    signature = bytes([0x30, 0x26, 0xB2, 0x75, 0x8E, 0x66, 0xCF, 0x11])
    with open(file_path, "rb") as f:
        return f.read(8) == signature

How to validate .wma files in Node.js

Node.js
function isWMA(buffer: Buffer): boolean {
  const signature = Buffer.from([0x30, 0x26, 0xB2, 0x75, 0x8E, 0x66, 0xCF, 0x11]);
  return buffer.subarray(0, 8).equals(signature);
}

How to validate .wma files in Go

Go
func IsWMA(data []byte) bool {
    signature := []byte{0x30, 0x26, 0xB2, 0x75, 0x8E, 0x66, 0xCF, 0x11}
    if len(data) < 8 {
        return false
    }
    return bytes.Equal(data[:8], signature)
}

API Endpoint

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

See the full API documentation for all endpoints and parameters.

Related Formats

Frequently Asked Questions

What is a .wma file?

A .wma file is a Microsoft Windows Media Audio/Video File file. Microsoft Windows Media Audio/Video (WMA) is a media file format developed by Microsoft as part of the Windows Media platform and based on the Advanced Systems Format container. It is used for storing compressed audio and, in some cases, audio-video content for playback in Windows Media Player and compatible media applications. The format is largely legacy, though it remains safe to open in trusted players and may appear in older media collections.

What are the magic bytes for .wma files?

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

How do I validate a .wma file?

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

What is the MIME type for .wma files?

The primary MIME type for .wma files is audio/x-ms-wma.

Is it safe to open .wma files?

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