What is the ESM file format?
.esm (Elder Scrolls Master) files are the master data files for Bethesda Game Studios' Creation Engine games, including The Elder Scrolls series, the Fallout series, and Starfield. They store all base game content - world cells, NPCs, items, quests, scripts, and game object definitions - in a binary record/subrecord structure.
Modern .esm files (The Elder Scrolls IV: Oblivion onward) open with the 4-byte ASCII signature TES4. A flags field in the TES4 header marks the file as a master; this ESM flag (bit 0x01) is the only meaningful binary difference from .esp plugin files, which share the identical structure. The header also declares master file dependencies, enforcing load order. Records are organized into typed GRUP groups and addressed by 24-bit FormIDs. Optional per-record zlib compression is supported from Skyrim onward.
.esm files are pinned to the top of the load order, before all .esp and .esl plugins. Base game data - Skyrim.esm, Fallout4.esm, and similar - are ESMs, as are large mod dependencies. Mesh, texture, and audio assets live in separate .bsa or .ba2 archives alongside the ESM, not inside it.
The lighter .esl (light master) format introduced in 2016 for Skyrim Special Edition shares the same binary layout with a different flag and is capped at 4,096 records per file.
Security & safety
RISK: LOWESM files are data files, not executables, and cannot run code by themselves. The main risk is mod conflicts and broken load orders causing game crashes or corrupted saves. Download only from reputable sources (Nexus Mods, Bethesda.net) to avoid tampered files that might inject malicious scripts via game scripting systems. Never run an '.esm.exe' file - that is not a legitimate ESM.
Format details
in a nutshell- E-mail Security Manager profile - Some email gateway products have used .esm for export/settings profiles; rare and unrelated to game mods.
Programs that open ESM files
Technical details
deep spec| Format type | Binary record/subrecord game data master file (Creation Engine) |
| Magic bytes | `54 45 53 34` ("TES4") at offset 0 for Oblivion/Skyrim/Fallout; `54 45 53 33` ("TES3") for Morrowind |
| Byte order | Little-endian |
| Container | Proprietary TES record/subrecord structure with typed GRUP record groups |
| Record compression | Optional per-record zlib (Skyrim / Fallout 4 era and later) |
| ESM vs. ESP distinction | Identical binary structure; ESM flag (bit `0x01`) in TES4 header flags field is the sole difference |
| FormID space | 24-bit (~16.7 million records per master slot); 255 full plugin limit per load order |
| Form version | Encoded in TES4 header (43 = Skyrim LE, 44 = Skyrim SE; higher for Fallout 4 / Starfield) |
| Typical file size | 50 MB - 500 MB (base game masters); mod-authored ESMs vary from 1 KB to several hundred MB |
| Asset storage | Meshes, textures, and sounds stored separately in `.bsa` or `.ba2` archives, not inside the ESM |
| Load order position | Always loaded before `.esp` and `.esl` plugins; base game ESMs load first |
| Released | 2002 (The Elder Scrolls III: Morrowind, TES3 record format) |
| Latest version | Creation Engine TES4/TES5/FO4 master format (Starfield, 2023) |
| Specification | en.uesp.net |
ESM conversions
Community Q&A
asked by usersNo questions yet - be the first to ask about ESM files.