Introduction
A BLEND file is everything Blender has open, saved to disc: scenes, objects, meshes, materials, animation, the layout of the windows and more. Blender writes its internal data structures almost directly from memory, and stores a description of those structures in the same file. That description lets any version of Blender read a file written by another, even when the structures have changed.
Blender can compress the file when saving. Older versions used gzip; Blender 3.0 and later use Zstandard.
Structure
Files written by Blender 4 and earlier begin with a 12-byte header: the text
BLENDER, a character for the pointer size (_ for 32-bit,
- for 64-bit), a character for the byte order (v for
little-endian, V for big-endian) and three digits of version, such as
293. Blender 5.0 writes a 17-byte header instead, such as
BLENDER17-01v0500, with larger block headers that let one block exceed
2 GB. A series of file blocks follows. Each block has a short code, the
size of its data, the memory address the data had when it was saved, an index into the
structure list and a count of structures, then the data itself.
The DNA1 block holds the SDNA: the names, types and layouts of every
structure Blender saves. Pointers between blocks are the saved memory addresses, which
a reader matches to the blocks that carry them. The ENDB block ends the
file.
0HeaderBLENDER, pointer size, byte order, version12 bytes12File blocks code, size, old address, structure index, count, datavaries…Data blocks scenes, objects, meshes, materials and the restvaries…DNA1 the SDNA, describing every saved structurevaries…ENDB the end of the fileblock header
In this reference
- File header – the 12-byte and 17-byte headers, pointer size, byte order, version and compression
- File blocks – the three block header layouts, block codes, ID codes and the order of a file
- SDNA – the structure catalogue in the
DNA1block and how to read blocks with it
Not described
These pages follow Blender’s own source for the file header, blocks and SDNA. The explorer has no BLEND viewer, so a dropped file shows as bytes.
Known, not yet covered
- Reference: the full list of SDNA basic types, the exact thumbnail pixel order, and the Zstandard framing details (whether the seekable format is used was not confirmed).
- Reference: the contents of
FileGlobaland of every Blender struct: SDNA describes them in each file, but the pages do not list them. - Viewer: there is no BLEND plugin.
Unknown
- Reference: the exact length of the
RenderInfoname, which changes with Blender 5.0’s 255-byte names; the “IP” code is from memory of older versions and is marked so.
Links
Software
- Blender – the free open source 3D suite that writes BLEND files (Windows, macOS, Linux)
- Unity – game engine that imports BLEND files through an installed copy of Blender (Windows, macOS, Linux)
- Godot – free open source game engine that imports BLEND files through an installed copy of Blender (Windows, macOS, Linux)
Reference
- The mystery of the blend – Jeroen Bakker’s description of the file blocks and SDNA