DWF

model/vnd.dwf

Safe

Magic Bytes

Offset: 0
28 44 57 46 20 56

Design Web Format (DWF) is a compressed vector and raster file format developed and maintained by Autodesk for distributing technical design data. It is primarily utilized to publish, view, and print complex 2D and 3D CAD information, such as architectural drawings and engineering specifications, without requiring the original design software. Although largely superseded by the XML-based DWFx standard, this legacy format remains compatible with viewers like Autodesk Design Review for sharing non-editable documentation securely.

Extension

.dwf

MIME Type

model/vnd.dwf

Byte Offset

0

Risk Level

Safe

Validation Code

How to validate .dwf files in Python

Python
def is_dwf(file_path: str) -> bool:
    """Check if file is a valid DWF by magic bytes."""
    signature = bytes([0x28, 0x44, 0x57, 0x46, 0x20, 0x56])
    with open(file_path, "rb") as f:
        return f.read(6) == signature

How to validate .dwf files in Node.js

Node.js
function isDWF(buffer: Buffer): boolean {
  const signature = Buffer.from([0x28, 0x44, 0x57, 0x46, 0x20, 0x56]);
  return buffer.subarray(0, 6).equals(signature);
}
Go
func IsDWF(data []byte) bool {
    signature := []byte{0x28, 0x44, 0x57, 0x46, 0x20, 0x56}
    if len(data) < 6 {
        return false
    }
    return bytes.Equal(data[:6], signature)
}

API Endpoint

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

Related Formats