INX (.inx)
.inx file signature | application/x-adobe-indesign-interchange
Magic Bytes
Offset 0
3C 3F 61 69 64
Sources: Apache Tika
Extension
.inx
MIME Type
application/x-adobe-indesign-interchange
Byte Offset
0
Risk Level
Safe
Validation Code
How to validate .inx files in Python
def is_inx(file_path: str) -> bool:
"""Check if file is a valid INX by magic bytes."""
signature = bytes([0x3C, 0x3F, 0x61, 0x69, 0x64])
with open(file_path, "rb") as f:
return f.read(5) == signature
How to validate .inx files in Node.js
function isINX(buffer: Buffer): boolean {
const signature = Buffer.from([0x3C, 0x3F, 0x61, 0x69, 0x64]);
return buffer.subarray(0, 5).equals(signature);
}
How to validate .inx files in Go
func IsINX(data []byte) bool {
signature := []byte{0x3C, 0x3F, 0x61, 0x69, 0x64}
if len(data) < 5 {
return false
}
return bytes.Equal(data[:5], signature)
}
API Endpoint
/api/v1/inx
curl https://filesignature.org/api/v1/inx
See the full API documentation for all endpoints and parameters.
Frequently Asked Questions
What is a .inx file?
A .inx file is a INX file.
What are the magic bytes for .inx files?
The magic bytes for INX files are 3C 3F 61 69 64 at byte offset 0. These bytes uniquely identify the file format regardless of the file extension.
How do I validate a .inx file?
To validate a .inx file, read the first bytes of the file and compare them against the known magic bytes (3C 3F 61 69 64) at offset 0. This is more reliable than checking the file extension alone, as extensions can be renamed.
What is the MIME type for .inx files?
The primary MIME type for .inx files is application/x-adobe-indesign-interchange.
Is it safe to open .inx files?
INX (.inx) 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.