Skip to content

MapInfo Interchange Format file (.mif)

.mif file signature | application/vnd.mif

MapInfo Interchange Format file

Safe

Magic Bytes

Offset 0
3C 4D 61 6B 65 72 46 69 6C 65

Sources: Apache Tika

All Known Signatures

9 signature variants are documented for .mif files across multiple sources.

Hex Signature Offset Sources
3C 4D 61 6B 65 72 46 69 6C 65 0 Apache Tika
3C 4D 49 46 46 69 6C 65 0 Apache Tika
3C 4D 61 6B 65 72 44 69 63 74 69 6F 6E 61 72 79 0 Apache Tika
3C 4D 61 6B 65 72 53 63 72 65 65 6E 46 6F 6E 74 0 Apache Tika
3C 4D 4D 4C 0 Apache Tika
3C 42 6F 6F 6B 0 Apache Tika
3C 4D 61 6B 65 72 0 Apache Tika
3C 4D 61 6B 65 72 46 69 6C 65 20 0 Gary Kessler
56 65 72 73 69 6F 6E 20 0 Gary Kessler

Extension

.mif

MIME Type

application/vnd.mif

Byte Offset

0

Risk Level

Safe

Validation Code

How to validate .mif files in Python

Python
def is_mif(file_path: str) -> bool:
    """Check if file is a valid MIF by magic bytes."""
    signature = bytes([0x3C, 0x4D, 0x61, 0x6B, 0x65, 0x72, 0x46, 0x69, 0x6C, 0x65])
    with open(file_path, "rb") as f:
        return f.read(10) == signature

How to validate .mif files in Node.js

Node.js
function isMIF(buffer: Buffer): boolean {
  const signature = Buffer.from([0x3C, 0x4D, 0x61, 0x6B, 0x65, 0x72, 0x46, 0x69, 0x6C, 0x65]);
  return buffer.subarray(0, 10).equals(signature);
}

How to validate .mif files in Go

Go
func IsMIF(data []byte) bool {
    signature := []byte{0x3C, 0x4D, 0x61, 0x6B, 0x65, 0x72, 0x46, 0x69, 0x6C, 0x65}
    if len(data) < 10 {
        return false
    }
    return bytes.Equal(data[:10], signature)
}

API Endpoint

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

See the full API documentation for all endpoints and parameters.

Frequently Asked Questions

What is a .mif file?

A .mif file is a MapInfo Interchange Format file file. MapInfo Interchange Format file

What are the magic bytes for .mif files?

The magic bytes for MapInfo Interchange Format file files are 3C 4D 61 6B 65 72 46 69 6C 65 at byte offset 0. These bytes uniquely identify the file format regardless of the file extension.

How do I validate a .mif file?

To validate a .mif file, read the first bytes of the file and compare them against the known magic bytes (3C 4D 61 6B 65 72 46 69 6C 65) at offset 0. This is more reliable than checking the file extension alone, as extensions can be renamed.

What is the MIME type for .mif files?

The primary MIME type for .mif files is application/vnd.mif.

Is it safe to open .mif files?

MapInfo Interchange Format file (.mif) 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.