Windows Media Player playlist

application/octet-stream

Safe

Magic Bytes

Offset: 0
4D 73 52 63 66

The Windows Media Player Playlist (WPL) is a proprietary XML-based file format developed by Microsoft for organizing multimedia content. It is primarily used by Windows Media Player versions 9 through 12 to store and manage lists of audio and video tracks for sequential playback. Although largely superseded by modern streaming services and the universal M3U format, WPL remains a legacy standard for local media management on the Windows operating system.

Extension

.wpl

MIME Type

application/octet-stream

Byte Offset

0

Risk Level

Safe

Validation Code

How to validate .wpl files in Python

Python
def is_wpl(file_path: str) -> bool:
    """Check if file is a valid WPL by magic bytes."""
    signature = bytes([0x4D, 0x73, 0x52, 0x63, 0x66])
    with open(file_path, "rb") as f:
        return f.read(5) == signature

How to validate .wpl files in Node.js

Node.js
function isWPL(buffer: Buffer): boolean {
  const signature = Buffer.from([0x4D, 0x73, 0x52, 0x63, 0x66]);
  return buffer.subarray(0, 5).equals(signature);
}
Go
func IsWPL(data []byte) bool {
    signature := []byte{0x4D, 0x73, 0x52, 0x63, 0x66}
    if len(data) < 5 {
        return false
    }
    return bytes.Equal(data[:5], signature)
}

API Endpoint

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

Related Formats