FLIF

application/octet-stream

Safe

Magic Bytes

Offset: 0
46 4C 49 46

The Free Lossless Image Format (FLIF) is an open-source raster image standard developed by Jon Sneyers and Pieter Wuille to provide superior lossless compression. It was designed for responsive web usage and archival storage, featuring progressive decoding that renders complete images from partial data. Development has effectively ceased, and the format is now considered obsolete, having been superseded by the ISO-standardized JPEG XL format which incorporates its underlying algorithms.

Extension

.flif

MIME Type

application/octet-stream

Byte Offset

0

Risk Level

Safe

Validation Code

How to validate .flif files in Python

Python
def is_flif(file_path: str) -> bool:
    """Check if file is a valid FLIF by magic bytes."""
    signature = bytes([0x46, 0x4C, 0x49, 0x46])
    with open(file_path, "rb") as f:
        return f.read(4) == signature

How to validate .flif files in Node.js

Node.js
function isFLIF(buffer: Buffer): boolean {
  const signature = Buffer.from([0x46, 0x4C, 0x49, 0x46]);
  return buffer.subarray(0, 4).equals(signature);
}
Go
func IsFLIF(data []byte) bool {
    signature := []byte{0x46, 0x4C, 0x49, 0x46}
    if len(data) < 4 {
        return false
    }
    return bytes.Equal(data[:4], signature)
}

API Endpoint

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

Related Formats