WKQ

application/x-quattro-pro;version=1-4

Safe

Magic Bytes

Offset: 0
00 00 02 00 20 51

WKQ is a spreadsheet file format developed by Borland for use with early versions of the Quattro Pro software suite. It was primarily used for organizing numerical data, performing mathematical calculations, and generating financial reports within DOS-based office environments. This legacy format is now largely obsolete, though modern spreadsheet applications like Corel Quattro Pro and LibreOffice Calc can still import these files for data recovery and historical archival purposes.

Extension

.wkq

MIME Type

application/x-quattro-pro;version=1-4, application/x-quattro-pro;version=5

Byte Offset

0

Risk Level

Safe

Validation Code

How to validate .wkq files in Python

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

How to validate .wkq files in Node.js

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

API Endpoint

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

Related Formats