WordStar for Windows Ver

application/octet-stream

Safe

Magic Bytes

Offset: 0
29 15 71 E0 BE FF E5 69 6E 5A 69 70

WordStar for Windows Version 2 is a proprietary word processing document format developed by WordStar International for the Microsoft Windows operating system. It was primarily utilized for creating, editing, and formatting complex text documents during the early 1990s. As a legacy format, it is now largely obsolete and generally considered safe, though it lacks the security features or encryption commonly found in contemporary document files.

Extension

.ws2

MIME Type

application/octet-stream

Byte Offset

0

Risk Level

Safe

Validation Code

How to validate .ws2 files in Python

Python
def is_ws2(file_path: str) -> bool:
    """Check if file is a valid WS2 by magic bytes."""
    signature = bytes([0x29, 0x15, 0x71, 0xE0, 0xBE, 0xFF, 0xE5, 0x69, 0x6E, 0x5A, 0x69, 0x70])
    with open(file_path, "rb") as f:
        return f.read(12) == signature

How to validate .ws2 files in Node.js

Node.js
function isWS2(buffer: Buffer): boolean {
  const signature = Buffer.from([0x29, 0x15, 0x71, 0xE0, 0xBE, 0xFF, 0xE5, 0x69, 0x6E, 0x5A, 0x69, 0x70]);
  return buffer.subarray(0, 12).equals(signature);
}
Go
func IsWS2(data []byte) bool {
    signature := []byte{0x29, 0x15, 0x71, 0xE0, 0xBE, 0xFF, 0xE5, 0x69, 0x6E, 0x5A, 0x69, 0x70}
    if len(data) < 12 {
        return false
    }
    return bytes.Equal(data[:12], signature)
}

API Endpoint

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

Related Formats