Skip to content

Advanced Gravis Ultrasound patch file (.pat)

.pat file signature | application/octet-stream

GIMP (GNU Image Manipulation Program) pattern file

Safe

Magic Bytes

Offset 0
47 46 31 50 41 54 43 48

Sources: Gary Kessler

All Known Signatures

2 signature variants are documented for .pat files across multiple sources.

Hex Signature Offset Sources
47 46 31 50 41 54 43 48 0 Gary Kessler
47 50 41 54 0 Gary Kessler

Extension

.pat

MIME Type

application/octet-stream

Byte Offset

0

Risk Level

Safe

Validation Code

How to validate .pat files in Python

Python
def is_pat(file_path: str) -> bool:
    """Check if file is a valid PAT by magic bytes."""
    signature = bytes([0x47, 0x46, 0x31, 0x50, 0x41, 0x54, 0x43, 0x48])
    with open(file_path, "rb") as f:
        return f.read(8) == signature

How to validate .pat files in Node.js

Node.js
function isPAT(buffer: Buffer): boolean {
  const signature = Buffer.from([0x47, 0x46, 0x31, 0x50, 0x41, 0x54, 0x43, 0x48]);
  return buffer.subarray(0, 8).equals(signature);
}

How to validate .pat files in Go

Go
func IsPAT(data []byte) bool {
    signature := []byte{0x47, 0x46, 0x31, 0x50, 0x41, 0x54, 0x43, 0x48}
    if len(data) < 8 {
        return false
    }
    return bytes.Equal(data[:8], signature)
}

API Endpoint

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

See the full API documentation for all endpoints and parameters.

Frequently Asked Questions

What is a .pat file?

A .pat file is a Advanced Gravis Ultrasound patch file file. GIMP (GNU Image Manipulation Program) pattern file

What are the magic bytes for .pat files?

The magic bytes for Advanced Gravis Ultrasound patch file files are 47 46 31 50 41 54 43 48 at byte offset 0. These bytes uniquely identify the file format regardless of the file extension.

How do I validate a .pat file?

To validate a .pat file, read the first bytes of the file and compare them against the known magic bytes (47 46 31 50 41 54 43 48) at offset 0. This is more reliable than checking the file extension alone, as extensions can be renamed.

What is the MIME type for .pat files?

There is no officially registered MIME type for .pat files. Systems typically use application/octet-stream as a generic fallback when handling this format.

Is it safe to open .pat files?

Advanced Gravis Ultrasound patch file (.pat) files are generally safe to open. They are classified as low risk because they primarily contain data rather than executable code. However, always ensure files come from a trusted source.