Lotus WordPro document (.lwp)
.lwp file signature | application/vnd.lotus-wordpro
Lotus WordPro document.
Magic Bytes
Offset 0
57 6F 72 64 50 72 6F 00
Sources: Apache Tika
All Known Signatures
3 signature variants are documented for .lwp files across multiple sources.
| Hex Signature | Offset | Sources |
|---|---|---|
| 57 6F 72 64 50 72 6F 00 | 0 | Apache Tika |
| 57 6F 72 64 50 72 6F 0D FB | 0 | Apache Tika |
| 57 6F 72 64 50 72 6F | 0 | Gary Kessler |
Extension
.lwp
MIME Type
application/vnd.lotus-wordpro
Byte Offset
0
Risk Level
Safe
Validation Code
How to validate .lwp files in Python
def is_lwp(file_path: str) -> bool:
"""Check if file is a valid LWP by magic bytes."""
signature = bytes([0x57, 0x6F, 0x72, 0x64, 0x50, 0x72, 0x6F, 0x00])
with open(file_path, "rb") as f:
return f.read(8) == signature
How to validate .lwp files in Node.js
function isLWP(buffer: Buffer): boolean {
const signature = Buffer.from([0x57, 0x6F, 0x72, 0x64, 0x50, 0x72, 0x6F, 0x00]);
return buffer.subarray(0, 8).equals(signature);
}
How to validate .lwp files in Go
func IsLWP(data []byte) bool {
signature := []byte{0x57, 0x6F, 0x72, 0x64, 0x50, 0x72, 0x6F, 0x00}
if len(data) < 8 {
return false
}
return bytes.Equal(data[:8], signature)
}
API Endpoint
/api/v1/lwp
curl https://filesignature.org/api/v1/lwp
See the full API documentation for all endpoints and parameters.
Frequently Asked Questions
What is a .lwp file?
A .lwp file is a Lotus WordPro document file. Lotus WordPro document.
What are the magic bytes for .lwp files?
The magic bytes for Lotus WordPro document files are 57 6F 72 64 50 72 6F 00 at byte offset 0. These bytes uniquely identify the file format regardless of the file extension.
How do I validate a .lwp file?
To validate a .lwp file, read the first bytes of the file and compare them against the known magic bytes (57 6F 72 64 50 72 6F 00) at offset 0. This is more reliable than checking the file extension alone, as extensions can be renamed.
What is the MIME type for .lwp files?
The primary MIME type for .lwp files is application/vnd.lotus-wordpro.
Is it safe to open .lwp files?
Lotus WordPro document (.lwp) 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.