QuattroPro for Windows Spreadsheet file

application/x-quattro-pro;version=6

Safe

Magic Bytes

Offset: 0
00 00 02 00 02 10

The Quattro Pro for Windows Spreadsheet file (WB2) is a proprietary format developed by Borland and currently supported by Corel. This binary format was used to store numerical data, complex formulas, and macro commands within version 6.0 of the office suite during the mid-1990s. As a legacy format, it has largely been replaced by modern XML-based standards, though it remains compatible with current versions of Corel WordPerfect Office.

Extension

.wb2

MIME Type

application/x-quattro-pro;version=6

Byte Offset

0

Risk Level

Safe

Validation Code

How to validate .wb2 files in Python

Python
def is_wb2(file_path: str) -> bool:
    """Check if file is a valid WB2 by magic bytes."""
    signature = bytes([0x00, 0x00, 0x02, 0x00, 0x02, 0x10])
    with open(file_path, "rb") as f:
        return f.read(6) == signature

How to validate .wb2 files in Node.js

Node.js
function isWB2(buffer: Buffer): boolean {
  const signature = Buffer.from([0x00, 0x00, 0x02, 0x00, 0x02, 0x10]);
  return buffer.subarray(0, 6).equals(signature);
}
Go
func IsWB2(data []byte) bool {
    signature := []byte{0x00, 0x00, 0x02, 0x00, 0x02, 0x10}
    if len(data) < 6 {
        return false
    }
    return bytes.Equal(data[:6], signature)
}

API Endpoint

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

Related Formats