{"success":true,"data":{"ext":"tif","name":"BigTIFF files; Tagged Image File Format files >4 GB","description":"Tagged Image File Format (TIFF), originally developed by Aldus and now maintained through Adobe’s specifications and industry implementations, is a flexible raster image file format used for storing high-quality images. It is commonly used in scanning, desktop publishing, archival storage, and professional photography, including very large images in BigTIFF variants. TIFF files are generally safe, though some readers have historically been vulnerable to parsing flaws in malformed files.","mime":["image/tiff"],"risk_level":"Safe","signatures":[{"hex":"4D 4D 00 2A","offset":0,"sources":[{"name":"Apache Tika","url":"https://raw.githubusercontent.com/apache/tika/main/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml"},{"name":"Gary Kessler","url":"https://www.garykessler.net/library/file_sigs_GCK_latest.html"},{"name":"Neil Harvey FileSignatures","url":"https://raw.githubusercontent.com/neilharvey/FileSignatures/master/src/FileSignatures/Formats/Tiff.cs"}],"endianness":"big"},{"hex":"49 49 2A 00","offset":0,"sources":[{"name":"Apache Tika","url":"https://raw.githubusercontent.com/apache/tika/main/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml"},{"name":"Wikipedia","url":"https://en.wikipedia.org/wiki/List_of_file_signatures"},{"name":"Gary Kessler","url":"https://www.garykessler.net/library/file_sigs_GCK_latest.html"}],"endianness":"little"},{"hex":"4D 4D 00 2B","offset":0,"sources":[{"name":"Apache Tika","url":"https://raw.githubusercontent.com/apache/tika/main/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml"},{"name":"Gary Kessler","url":"https://www.garykessler.net/library/file_sigs_GCK_latest.html"}]},{"hex":"49 49 2B 00","offset":0,"sources":[{"name":"Wikipedia","url":"https://en.wikipedia.org/wiki/List_of_file_signatures"}]},{"hex":"49 20 49","offset":0,"sources":[{"name":"Gary Kessler","url":"https://www.garykessler.net/library/file_sigs_GCK_latest.html"}]}],"related":["tiff","cr2","avif","bmp","cr3","dib"],"usage":{"python":"def is_tif(file_path: str) -> bool:\n    \"\"\"Check if file is a valid TIF by magic bytes.\"\"\"\n    signature = bytes([0x4D, 0x4D, 0x00, 0x2A])\n    with open(file_path, \"rb\") as f:\n        return f.read(4) == signature","node":"function isTIF(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x4D, 0x4D, 0x00, 0x2A]);\n  return buffer.subarray(0, 4).equals(signature);\n}","go":"func IsTIF(data []byte) bool {\n    signature := []byte{0x4D, 0x4D, 0x00, 0x2A}\n    if len(data) < 4 {\n        return false\n    }\n    return bytes.Equal(data[:4], signature)\n}"},"category":"Images"}}