ACE (.ace)
.ace file signature | application/octet-stream
ACE (compressed file format)[citation needed]
Magic Bytes
Offset 7
2A 2A 41 43 45 2A 2A
Sources: Wikipedia
Extension
.ace
MIME Type
application/octet-stream
Byte Offset
7
Risk Level
Safe
Validation Code
How to validate .ace files in Python
def is_ace(file_path: str) -> bool:
"""Check if file is a valid ACE by magic bytes."""
signature = bytes([0x2A, 0x2A, 0x41, 0x43, 0x45, 0x2A, 0x2A])
with open(file_path, "rb") as f:
return f.read(7) == signature
How to validate .ace files in Node.js
function isACE(buffer: Buffer): boolean {
const signature = Buffer.from([0x2A, 0x2A, 0x41, 0x43, 0x45, 0x2A, 0x2A]);
return buffer.subarray(0, 7).equals(signature);
}
How to validate .ace files in Go
func IsACE(data []byte) bool {
signature := []byte{0x2A, 0x2A, 0x41, 0x43, 0x45, 0x2A, 0x2A}
if len(data) < 7 {
return false
}
return bytes.Equal(data[:7], signature)
}
API Endpoint
/api/v1/ace
curl https://filesignature.org/api/v1/ace
See the full API documentation for all endpoints and parameters.
Frequently Asked Questions
What is a .ace file?
A .ace file is a ACE file. ACE (compressed file format)[citation needed]
What are the magic bytes for .ace files?
The magic bytes for ACE files are 2A 2A 41 43 45 2A 2A at byte offset 7. These bytes uniquely identify the file format regardless of the file extension.
How do I validate a .ace file?
To validate a .ace file, read the first bytes of the file and compare them against the known magic bytes (2A 2A 41 43 45 2A 2A) at offset 7. This is more reliable than checking the file extension alone, as extensions can be renamed.
What is the MIME type for .ace files?
There is no officially registered MIME type for .ace files. Systems typically use application/octet-stream as a generic fallback when handling this format.
Is it safe to open .ace files?
ACE (.ace) 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.