BLEND
application/octet-stream
Magic Bytes
Offset: 0
42 4C 45 4E 44 45 52
The BLEND format is the native project container for Blender, an open-source 3D creation suite maintained by the Blender Foundation. It serves as a database for 3D assets, storing geometry, textures, animation data, lighting setups, and workspace configurations for rendering and modeling workflows. As a binary representation of the application’s memory state, the format is stable but requires caution regarding embedded Python scripts, which can execute upon opening if not sandboxed.
Validation Code
How to validate .blend files in Python
Python
def is_blend(file_path: str) -> bool:
"""Check if file is a valid BLEND by magic bytes."""
signature = bytes([0x42, 0x4C, 0x45, 0x4E, 0x44, 0x45, 0x52])
with open(file_path, "rb") as f:
return f.read(7) == signature
How to validate .blend files in Node.js
Node.js
function isBLEND(buffer: Buffer): boolean {
const signature = Buffer.from([0x42, 0x4C, 0x45, 0x4E, 0x44, 0x45, 0x52]);
return buffer.subarray(0, 7).equals(signature);
}
Go
func IsBLEND(data []byte) bool {
signature := []byte{0x42, 0x4C, 0x45, 0x4E, 0x44, 0x45, 0x52}
if len(data) < 7 {
return false
}
return bytes.Equal(data[:7], signature)
}
API Endpoint
GET
/api/v1/blend
curl https://filesignature.org/api/v1/blend