A common signature and file extension for many drawingprograms

application/octet-stream

Safe

Magic Bytes

Offset: 0
01 FF 02 04 03 02

The Micrografx Designer Drawing (DRW) is a legacy vector graphics format originally developed by Micrografx for early Windows-based illustration software. It was primarily used to create technical schematics, architectural blueprints, and vector illustrations before being superseded by modern design standards. While the DRW extension is shared by several CAD applications, this specific format is now obsolete and generally poses no security risk, though it requires conversion software for archival viewing or modern accessibility.

Extension

.drw

MIME Type

application/octet-stream

Byte Offset

0

Risk Level

Safe

Validation Code

How to validate .drw files in Python

Python
def is_drw(file_path: str) -> bool:
    """Check if file is a valid DRW by magic bytes."""
    signature = bytes([0x01, 0xFF, 0x02, 0x04, 0x03, 0x02])
    with open(file_path, "rb") as f:
        return f.read(6) == signature

How to validate .drw files in Node.js

Node.js
function isDRW(buffer: Buffer): boolean {
  const signature = Buffer.from([0x01, 0xFF, 0x02, 0x04, 0x03, 0x02]);
  return buffer.subarray(0, 6).equals(signature);
}
Go
func IsDRW(data []byte) bool {
    signature := []byte{0x01, 0xFF, 0x02, 0x04, 0x03, 0x02}
    if len(data) < 6 {
        return false
    }
    return bytes.Equal(data[:6], signature)
}

API Endpoint

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

Related Formats