What is the NIF file format?
A .nif file is a proprietary binary 3D scene file used by the NetImmerse and Gamebryo engines, best known as the primary 3D asset format for Bethesda Game Studios titles from *The Elder Scrolls III: Morrowind* (2002) through *Starfield* (2023).
The file begins with a human-readable ASCII header string: versions up to 10.0.1.0 start with NetImmerse File Format, Version X.X.X.X, while versions 10.1.0.0 and higher use Gamebryo File Format, Version X.X.X.X. After the header the remainder is binary, organized as a typed block list forming a scene graph. Blocks represent mesh geometry (NiTriShape), skeleton nodes (NiNode), Havok collision bodies (bhkRigidBody), shader properties (BSLightingShaderProperty), and morph targets, all linked by integer indices.
Textures are stored separately as .dds files; skeletal animations are often held in companion .kf keyframe files. Game assets are typically packed into .bsa or .ba2 archives for distribution.
End users encounter .nif files primarily when modding Bethesda games. The community-maintained niftools/nifxml project reverse-engineered the format and powers tools such as NifSkope and the Blender Niftools Add-on. The most widely deployed version is 20.2.0.7, used by Skyrim Special Edition and Fallout 4; Starfield introduced an updated variant with new block types.
Security & safety
RISK: LOWNIF files are static 3D asset data and cannot execute code. They are safe to open in NifSkope or Blender. The practical risk when acquiring NIF files is source: mods distributed as archives on sites like Nexus Mods are generally vetted, but random downloads may bundle unrelated malware in the same archive. Always get mods from reputable sources (Nexus Mods, Bethesda.net) and scan archives before extraction.
Format details
in a nutshellPrograms that open NIF files
Technical details
deep spec| Header format | ASCII string 'NetImmerse File Format, Version X.X.X.X' (versions ≤10.0.1.0) or 'Gamebryo File Format, Version X.X.X.X' (≥10.1.0.0), terminated with 0x0A; remainder of file is binary |
| Byte order | Little-endian on standard PC builds; some older console builds use big-endian |
| Body structure | Typed block list forming a scene graph; each block is a named typed object linked to others by integer index references |
| Key block types | NiNode (skeleton/transform), NiTriShape (mesh geometry), BSLightingShaderProperty (shader), bhkRigidBody (Havok collision) |
| Version range | v3.03 (early NetImmerse, ~1997) through v20.2.0.7 (Skyrim SE / Fallout 4); Starfield uses an extended updated variant |
| Texture storage | Textures not embedded; referenced as external .dds files by path |
| Animation storage | Skeletal animations stored in companion .kf keyframe files, separate from the mesh .nif |
| Collision system | Havok physics via bhk* block types (bhkRigidBody, bhkConvexVerticesShape, bhkMoppBvTreeShape, etc.) |
| Typical file size | 10 KB-50 MB (simple props ~10-200 KB; complex character meshes 1-10 MB; full interior scenes up to 50 MB) |
| Compression | None at file level; .bsa / .ba2 game archives may apply LZ4 compression when packaging .nif files |
| MIME type | application/octet-stream (no registered MIME type for the NIF format) |
| Format specification | Community-maintained niftools/nifxml XML schema at github.com/niftools/nifxml; no official public specification from Bethesda |
| Primary associated titles | Morrowind, Oblivion, Fallout 3/NV, Skyrim LE/SE, Fallout 4, Starfield (all Bethesda Game Studios) |
| Released | 1997 (NetImmerse engine); Gamebryo rebranding 2003; format used through 2023 in Bethesda Starfield |
| Latest version | NIF version 20.2.0.7 (Bethesda Skyrim Special Edition / Fallout 4 era); Starfield uses an updated variant |
| Specification | github.com |
NIF conversions
Community Q&A
asked by usersNo questions yet - be the first to ask about NIF files.