WordPerfect text file

application/octet-stream

Safe

Magic Bytes

Offset: 0
86 DD

The WordPerfect text file is a document format originally developed by the WordPerfect Corporation and subsequently maintained by Corel. It was primarily utilized for word processing tasks, including document creation, formatting, and layout design in early desktop computing environments. As a legacy format, it has largely been succeeded by the modern WPD extension, though it remains relevant for archival data retrieval and historical record preservation.

Extension

.wpf

MIME Type

application/octet-stream

Byte Offset

0

Risk Level

Safe

Validation Code

How to validate .wpf files in Python

Python
def is_wpf(file_path: str) -> bool:
    """Check if file is a valid WPF by magic bytes."""
    signature = bytes([0x86, 0xDD])
    with open(file_path, "rb") as f:
        return f.read(2) == signature

How to validate .wpf files in Node.js

Node.js
function isWPF(buffer: Buffer): boolean {
  const signature = Buffer.from([0x86, 0xDD]);
  return buffer.subarray(0, 2).equals(signature);
}
Go
func IsWPF(data []byte) bool {
    signature := []byte{0x86, 0xDD}
    if len(data) < 2 {
        return false
    }
    return bytes.Equal(data[:2], signature)
}

API Endpoint

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

Related Formats