FH40

image/x-freehand

Safe

Magic Bytes

Offset: 0
41 47 44 32

The FH40 file format represents a vector graphics document created by Aldus FreeHand 4.0, a design application later acquired by Macromedia and Adobe. It was utilized extensively for creating scalable illustrations, page layouts, and commercial print assets during the mid-1990s. Now classified as an obsolete legacy format, FH40 files pose minimal security risks but typically require specialized conversion software or older virtualization environments to render correctly on modern operating systems.

Extension

.fh40

MIME Type

image/x-freehand

Byte Offset

0

Risk Level

Safe

Validation Code

How to validate .fh40 files in Python

Python
def is_fh40(file_path: str) -> bool:
    """Check if file is a valid FH40 by magic bytes."""
    signature = bytes([0x41, 0x47, 0x44, 0x32])
    with open(file_path, "rb") as f:
        return f.read(4) == signature

How to validate .fh40 files in Node.js

Node.js
function isFH40(buffer: Buffer): boolean {
  const signature = Buffer.from([0x41, 0x47, 0x44, 0x32]);
  return buffer.subarray(0, 4).equals(signature);
}
Go
func IsFH40(data []byte) bool {
    signature := []byte{0x41, 0x47, 0x44, 0x32}
    if len(data) < 4 {
        return false
    }
    return bytes.Equal(data[:4], signature)
}

API Endpoint

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

Related Formats