.ESM

ESM File

Elder Scrolls Master File
Ask a question
QUICK ANSWER

An ESM file is a master data file for Bethesda games - Skyrim, Fallout, Oblivion and others. It holds core game records (world data, NPCs, items, quests) that mod plugins depend on. The game loads it automatically; to inspect or edit it use xEdit (free) or the Creation Kit. To install a mod that ships as an ESM, use Vortex or Mod Organizer 2.

Developer: Bethesda Game Studios / Bethesda Softworks Category: Game Files MIME: application/octet-stream
OPENS ON Windows Linux
Related: .OBB · .PAK · .ROFL · .PACKAGE

On this page

19k+ extensions indexed
Last reviewed Aug 25, 2026

Not sure what your file is?

Drop any file into our identifier - we read just the first bytes to name the format.

Identify a file

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: LOW

ESM 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
FULL NAMEElder Scrolls Master Fileaka Bethesda Master File, ESM mod file
DEVELOPERBethesda Game Studios / Bethesda Softworkssince 2002 (The Elder Scrolls III: Morrowind, TES3 record format)
CATEGORYGame Files
MIME TYPEapplication/octet-stream
TYPEBinary record/subrecord game data master file (Creation Engine)
This extension is also used by…
  • E-mail Security Manager profile - Some email gateway products have used .esm for export/settings profiles; rare and unrelated to game mods.
MAGIC BYTES · FILE SIGNATURE
OFFSET
00010203
HEX
54455334
ASCII
TES4
Modern Bethesda master files (Oblivion 2006 onward) begin with the 4-byte ASCII string "TES4". The header record contains a flags field; bit 0x01 (ESM flag) marks this as a master. ESM and ESP share identical binary structure; only this flag and load-order placement differ. Morrowind master files begin with "TES3" instead.

Programs that open ESM files

Windows6 apps
Creation Kit Free Load the ESM as a master in the game's official level editor to view or author content.
Fallout 3 Paid Place the ESM in Fallout 3's Data folder; the game loads it at launch.
The Elder Scrolls IV: Oblivion Paid Place the ESM in the game Data folder; the game loads it automatically on startup.
xEdit (SSEEdit / FO4Edit / TES5Edit) Open-source Select the ESM in the load order list; xEdit loads it with all its records for inspection, editing, conflict detection and cleaning.
Vortex (Nexus mod manager) Free Install and enable the ESM via Vortex; it manages load order so the game finds the file.
Mod Organizer 2 Open-source Enable the ESM in the plugin list; MO2 uses a virtual filesystem to deploy it to the game data folder.
Linux1 app
xEdit (via Proton/Wine) Open-source Run xEdit under Proton/Wine alongside the game install on Linux/Steam Deck.

Technical details

deep spec
Format typeBinary 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 orderLittle-endian
ContainerProprietary TES record/subrecord structure with typed GRUP record groups
Record compressionOptional per-record zlib (Skyrim / Fallout 4 era and later)
ESM vs. ESP distinctionIdentical binary structure; ESM flag (bit `0x01`) in TES4 header flags field is the sole difference
FormID space24-bit (~16.7 million records per master slot); 255 full plugin limit per load order
Form versionEncoded in TES4 header (43 = Skyrim LE, 44 = Skyrim SE; higher for Fallout 4 / Starfield)
Typical file size50 MB - 500 MB (base game masters); mod-authored ESMs vary from 1 KB to several hundred MB
Asset storageMeshes, textures, and sounds stored separately in `.bsa` or `.ba2` archives, not inside the ESM
Load order positionAlways loaded before `.esp` and `.esl` plugins; base game ESMs load first
Released2002 (The Elder Scrolls III: Morrowind, TES3 record format)
Latest versionCreation Engine TES4/TES5/FO4 master format (Starfield, 2023)
Specificationen.uesp.net

ESM conversions

Community Q&A

asked by users
Ask a quick question
Get help from people who work with ESM files. Be specific - include your system and software version.
No account needed · answers usually within a day

No questions yet - be the first to ask about ESM files.

Frequently asked questions

What is an ESM file?
It's a master data file for Bethesda games (Skyrim, Fallout, Oblivion). It contains core game records that plugin mods (.esp files) depend on. Base game masters like Skyrim.esm are shipped with the game.
How do I open an ESM file?
Use xEdit (SSEEdit/FO4Edit - free, open-source) to inspect and edit records, or the Creation Kit to view the game world. To use a mod that comes as an ESM, install it with Vortex or Mod Organizer 2.
What's the difference between ESM and ESP?
They share the same binary format. ESM files are 'masters' that load first and that other mods can depend on. ESP files are plugins that load after masters. The difference is a single flag in the file header.
What is an ESL file compared to ESM?
ESL is a 'light master' format introduced in Skyrim Special Edition / Fallout 4. It's the same format with a different flag, but is capped at 4096 new records and doesn't consume a full load-order slot (limit 255 for full plugins, 4096 for light).
My mod says a required ESM is missing - what do I do?
The missing master file must be installed and enabled before this mod. Check the mod's description on Nexus Mods for its requirements and install them first, then re-enable the mod.
Can I convert an ESP to ESM?
Yes - in xEdit toggle the ESM flag on the file header. The binary data is unchanged; only the load-order behaviour changes.

References

1UESP - Skyrim Mod file formaten.uesp.net
2UESP - Mod file format TES4 recorden.uesp.net

Keep exploring

across the database

Top extensions this week

1.AQQAQQ Instant Messenger File
2.CRDOWNLOADChrome Partial Download File
3.PARTPartial Download File
4.BINCD/DVD Disc Image (BIN/CUE)
5.RPMSGRestricted Permission Message
6.MDMarkdown Document
7.NOMEDIAAndroid No-Media Marker File
8.PRO6XProPresenter 6 Bundle File
9.PRDXSoftMaker Presentations Document
10.EXEWindows Executable (Portable Executable)

Related extensions

.OBBAndroid Opaque Binary Blob (APK Expansion File)
.PAKGame Resource Package (PAK)
.ROFLLeague of Legends Replay
.PACKAGEThe Sims / Maxis DBPF Package (game content & mods) - dominant meaning
.XSBXACT Sound Bank
.SAVSaved Game File

Free file tools

An in-browser file identifier and image converter - everything runs on your device.

Open the toolbox

Browse file extensions A-Z