WPT (.wpt)
.wpt file signature | application/vnd.wordperfect
Magic Bytes
Offset 0
61 70 70 6C 69 63 61 74 69 6F 6E 2F 76 6E 64 2E 77 6F 72 64 70 65 72 66 65 63 74 3B
Sources: Apache Tika
All Known Signatures
2 signature variants are documented for .wpt files across multiple sources.
| Hex Signature | Offset | Sources |
|---|---|---|
| 61 70 70 6C 69 63 61 74 69 6F 6E 2F 76 6E 64 2E 77 6F 72 64 70 65 72 66 65 63 74 3B | 0 | Apache Tika |
| FF 57 50 43 | 0 | Apache Tika |
Extension
.wpt
MIME Type
application/vnd.wordperfect
Byte Offset
0
Risk Level
Safe
Validation Code
How to validate .wpt files in Python
def is_wpt(file_path: str) -> bool:
"""Check if file is a valid WPT by magic bytes."""
signature = bytes([0x61, 0x70, 0x70, 0x6C, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6F, 0x6E, 0x2F, 0x76, 0x6E, 0x64, 0x2E, 0x77, 0x6F, 0x72, 0x64, 0x70, 0x65, 0x72, 0x66, 0x65, 0x63, 0x74, 0x3B])
with open(file_path, "rb") as f:
return f.read(28) == signature
How to validate .wpt files in Node.js
function isWPT(buffer: Buffer): boolean {
const signature = Buffer.from([0x61, 0x70, 0x70, 0x6C, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6F, 0x6E, 0x2F, 0x76, 0x6E, 0x64, 0x2E, 0x77, 0x6F, 0x72, 0x64, 0x70, 0x65, 0x72, 0x66, 0x65, 0x63, 0x74, 0x3B]);
return buffer.subarray(0, 28).equals(signature);
}
How to validate .wpt files in Go
func IsWPT(data []byte) bool {
signature := []byte{0x61, 0x70, 0x70, 0x6C, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6F, 0x6E, 0x2F, 0x76, 0x6E, 0x64, 0x2E, 0x77, 0x6F, 0x72, 0x64, 0x70, 0x65, 0x72, 0x66, 0x65, 0x63, 0x74, 0x3B}
if len(data) < 28 {
return false
}
return bytes.Equal(data[:28], signature)
}
API Endpoint
/api/v1/wpt
curl https://filesignature.org/api/v1/wpt
See the full API documentation for all endpoints and parameters.
Frequently Asked Questions
What is a .wpt file?
A .wpt file is a WPT file.
What are the magic bytes for .wpt files?
The magic bytes for WPT files are 61 70 70 6C 69 63 61 74 69 6F 6E 2F 76 6E 64 2E 77 6F 72 64 70 65 72 66 65 63 74 3B at byte offset 0. These bytes uniquely identify the file format regardless of the file extension.
How do I validate a .wpt file?
To validate a .wpt file, read the first bytes of the file and compare them against the known magic bytes (61 70 70 6C 69 63 61 74 69 6F 6E 2F 76 6E 64 2E 77 6F 72 64 70 65 72 66 65 63 74 3B) at offset 0. This is more reliable than checking the file extension alone, as extensions can be renamed.
What is the MIME type for .wpt files?
The primary MIME type for .wpt files is application/vnd.wordperfect.
Is it safe to open .wpt files?
WPT (.wpt) 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.