FH

image/x-freehand

Safe

Magic Bytes

Offset: 0
41 47 44 32

Macromedia FreeHand Drawing (FH) is a vector graphics file format originally developed by Altsys Corporation and later maintained by Macromedia and Adobe Systems. It was primarily utilized for creating scalable illustrations, technical drawings, and complex page layouts within the FreeHand software suite. Now considered a legacy format following its discontinuation in 2007, it presents minimal security risks but necessitates specialized conversion tools for integration into modern digital workflows or software environments.

Extension

.fh

MIME Type

image/x-freehand

Byte Offset

0

Risk Level

Safe

Validation Code

How to validate .fh files in Python

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

How to validate .fh files in Node.js

Node.js
function isFH(buffer: Buffer): boolean {
  const signature = Buffer.from([0x41, 0x47, 0x44, 0x32]);
  return buffer.subarray(0, 4).equals(signature);
}
Go
func IsFH(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/fh
curl https://filesignature.org/api/v1/fh

Related Formats