DXB (.dxb)
.dxb file signature | image/vnd.dxb
DXB is a drawing interchange format created and maintained by Autodesk for exchanging AutoCAD drawing data, including vector geometry and image-related content, between compatible applications. It is used in CAD workflows for transferring technical drawings, importing and exporting linework, and preserving layout information across systems. DXB is a legacy format and is generally safe, although files from untrusted sources should still be opened with standard caution in any graphics or CAD software.
Magic Bytes
Offset 0
41 75 74 6F 43 41 44 20 44 58 42 20 31 2E 30 0D 0A 30 78 31 41 30 30
Sources: Apache Tika
Extension
.dxb
MIME Type
image/vnd.dxb
Byte Offset
0
Risk Level
Safe
Validation Code
How to validate .dxb files in Python
def is_dxb(file_path: str) -> bool:
"""Check if file is a valid DXB by magic bytes."""
signature = bytes([0x41, 0x75, 0x74, 0x6F, 0x43, 0x41, 0x44, 0x20, 0x44, 0x58, 0x42, 0x20, 0x31, 0x2E, 0x30, 0x0D, 0x0A, 0x30, 0x78, 0x31, 0x41, 0x30, 0x30])
with open(file_path, "rb") as f:
return f.read(23) == signature
How to validate .dxb files in Node.js
function isDXB(buffer: Buffer): boolean {
const signature = Buffer.from([0x41, 0x75, 0x74, 0x6F, 0x43, 0x41, 0x44, 0x20, 0x44, 0x58, 0x42, 0x20, 0x31, 0x2E, 0x30, 0x0D, 0x0A, 0x30, 0x78, 0x31, 0x41, 0x30, 0x30]);
return buffer.subarray(0, 23).equals(signature);
}
How to validate .dxb files in Go
func IsDXB(data []byte) bool {
signature := []byte{0x41, 0x75, 0x74, 0x6F, 0x43, 0x41, 0x44, 0x20, 0x44, 0x58, 0x42, 0x20, 0x31, 0x2E, 0x30, 0x0D, 0x0A, 0x30, 0x78, 0x31, 0x41, 0x30, 0x30}
if len(data) < 23 {
return false
}
return bytes.Equal(data[:23], signature)
}
API Endpoint
/api/v1/dxb
curl https://filesignature.org/api/v1/dxb
See the full API documentation for all endpoints and parameters.
Frequently Asked Questions
What is a .dxb file?
A .dxb file is identified by the magic bytes 41 75 74 6F 43 41 44 20 44 58 42 20 31 2E 30 0D 0A 30 78 31 41 30 30 at byte offset 0. DXB is a drawing interchange format created and maintained by Autodesk for exchanging AutoCAD drawing data, including vector geometry and image-related content, between compatible applications. It is used in CAD workflows for transferring technical drawings, importing and exporting linework, and preserving layout information across systems. DXB is a legacy format and is generally safe, although files from untrusted sources should still be opened with standard caution in any graphics or CAD software.
What are the magic bytes for .dxb files?
The magic bytes for DXB files are 41 75 74 6F 43 41 44 20 44 58 42 20 31 2E 30 0D 0A 30 78 31 41 30 30 at byte offset 0. These bytes uniquely identify the file format regardless of the file extension.
How do I validate a .dxb file?
To validate a .dxb file, read the first bytes of the file and compare them against the known magic bytes (41 75 74 6F 43 41 44 20 44 58 42 20 31 2E 30 0D 0A 30 78 31 41 30 30) at offset 0. This is more reliable than checking the file extension alone, as extensions can be renamed.
What is the MIME type for .dxb files?
The primary MIME type for .dxb files is image/vnd.dxb.
Is it safe to open .dxb files?
DXB (.dxb) 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.