Skip to content

ICC (.icc)

.icc file signature | application/vnd.iccprofile

Safe

Magic Bytes

Offset 36
61 63 73 70

Sources: Apache Tika

Extension

.icc

MIME Type

application/vnd.iccprofile

Byte Offset

36

Risk Level

Safe

Validation Code

How to validate .icc files in Python

Python
def is_icc(file_path: str) -> bool:
    """Check if file is a valid ICC by magic bytes."""
    signature = bytes([0x61, 0x63, 0x73, 0x70])
    with open(file_path, "rb") as f:
        return f.read(4) == signature

How to validate .icc files in Node.js

Node.js
function isICC(buffer: Buffer): boolean {
  const signature = Buffer.from([0x61, 0x63, 0x73, 0x70]);
  return buffer.subarray(0, 4).equals(signature);
}

How to validate .icc files in Go

Go
func IsICC(data []byte) bool {
    signature := []byte{0x61, 0x63, 0x73, 0x70}
    if len(data) < 4 {
        return false
    }
    return bytes.Equal(data[:4], signature)
}

API Endpoint

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

See the full API documentation for all endpoints and parameters.

Frequently Asked Questions

What is a .icc file?

A .icc file is a ICC file.

What are the magic bytes for .icc files?

The magic bytes for ICC files are 61 63 73 70 at byte offset 36. These bytes uniquely identify the file format regardless of the file extension.

How do I validate a .icc file?

To validate a .icc file, read the first bytes of the file and compare them against the known magic bytes (61 63 73 70) at offset 36. This is more reliable than checking the file extension alone, as extensions can be renamed.

What is the MIME type for .icc files?

The primary MIME type for .icc files is application/vnd.iccprofile.

Is it safe to open .icc files?

ICC (.icc) 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.