File format · .ma0

Diablo II .d2s Save File Format and Corruption Recovery Guide

Diablo II .d2s character save files store heroes, items, and progress. Learn the format's structure, common corruption causes, and how to recover damaged s


Diablo II, developed by Blizzard North and released by Blizzard Entertainment in 2000, remains one of the most influential action role-playing games in PC history. Alongside its 2001 expansion, Lord of Destruction, the game relies on a specific local save file format to track character progression, stats, and inventory. Because the original game's single-player and TCP/IP modes store character data locally on the user's hard drive rather than on Blizzard's servers, these save files are highly susceptible to disk errors, improper shutdowns, and export mishaps. At FileRepair.net, we frequently assist players attempting to rescue years of progress locked inside damaged Diablo II character files.

What Are Diablo II Save Files?

Diablo II character data is stored locally using the .d2s file extension. Each time a player creates a new character—such as a Paladin, Sorceress, or Barbarian—the game generates a corresponding .d2s file in the game's Save directory. These files contain everything related to that specific character: their level, allocated attributes (strength, dexterity, vitality, energy), skill points, quest progress, waypoints, and their entire inventory, including equipped items, the backpack, the stash, and the Horadric Cube.

In addition to character files, the game generates .ma0, .ma1, .ma2, and .ma3 files, which store map data for each act. However, the .d2s file is the critical repository of the player's progress. With the release of Diablo II: Resurrected in 2021, Blizzard maintained backward compatibility for local single-player saves, allowing players to import their original .d2s files into the remaster. This compatibility makes preserving and repairing legacy .d2s files highly relevant for modern players.

Structure and Technical Details

The .d2s file format is a binary file structure that relies heavily on specific byte offsets and mathematical checksums to maintain data integrity. While the format was reverse-engineered extensively by the modding community, players should be aware of a few key technical components that dictate whether the game will accept or reject a save file:

  • File Header: The file begins with a specific signature, typically a 4-byte identifier (0x55aa55aa), that tells the game engine the file is a valid Diablo II save.
  • Version Flag: Immediately following the signature is a version number. If this byte does not match the expected game version (for example, if an original Diablo II save is improperly modified for Lord of Destruction), the game may refuse to load it.
  • Checksum: The .d2s format utilizes an additive checksum algorithm. The game calculates the sum of specific bytes in the file and stores this value in the header. If any byte is altered—whether by the game saving an item or by a hex editor—the checksum must be recalculated. If the checksum does not match the file data, the game will silently reject the file or delete the character.
  • Data Blocks: The remainder of the file is divided into compressed data blocks containing character stats, skills, items, and a list of "warm" (recently interacted) NPCs. Items are particularly complex, often stored as bit-packed data rather than byte-aligned data.

Why Diablo II Save Files Become Corrupt

The strict nature of the .d2s checksum and item structure makes these files notoriously fragile. We commonly see corruption resulting from:

  1. Improper Game Closure: If the game crashes, encounters a power outage, or is force-closed via the Task Manager while it is writing to the .d2s file, the file may be truncated. A truncated file fails the checksum validation, causing the character to vanish from the character selection screen.
  2. Third-Party Editors: Tools like Hero Editor are popular for testing builds or recovering lost items. However, saving a file with an editor that does not correctly recalculate the Blizzard checksum, or improperly packing item bits, will result in an unreadable file.
  3. Cloud Sync Conflicts: Modern players often store their Diablo II Save folder in cloud-synced directories (like OneDrive or Dropbox). If the game attempts to save while the cloud service is actively locking or uploading the .d2s file, the resulting write operation can corrupt the file header.
  4. Bad Sectors: As a game from 2000, many players carry their .d2s files across decades and multiple mechanical hard drives. Degraded magnetic sectors can easily destroy the byte-specific offsets required by the format.

What Data Can Be Recovered?

In most cases of .d2s corruption, the underlying character data is not entirely erased; it is simply unreadable by the game's strict validation engine. We can typically recover:

  • The character's name, class, and visual appearance.
  • Progress data, including level, base attributes, and experience points.
  • Quest completion states and discovered waypoints.
  • Inventory items, though heavily damaged item blocks may result in specific items being "rolled back" to a previous state or converted into generic items to stabilize the file.

How Recovery Works

Recovering a Diablo II save file requires repairing the binary structure so the game engine accepts it again. Our process involves analyzing the file's hex data to locate the truncation point or byte misalignment. We verify the header signature, repair the version flag if necessary, and meticulously rebuild the compressed data blocks. Finally, we recalculate the additive checksum so that Diablo II (or Diablo II: Resurrected) recognizes the file as legitimate, allowing the character to safely appear on the selection screen once again.

Frequently Asked Questions

My character disappeared from the selection screen. Is the file gone?

Not necessarily. Diablo II hides characters if the .d2s file fails the checksum validation. If the file is still present in your game's Save folder, the data is likely intact but requires a checksum recalculation to become visible again.

Can I import a repaired original Diablo II save into Diablo II: Resurrected?

Yes. Diablo II: Resurrected supports importing local single-player .d2s files from the original game. However, the file must be completely valid and free of structural errors for the modern client to successfully parse and upgrade it.

Will Blizzard restore my offline character?

No. Blizzard Entertainment does not maintain backups for offline, single-player characters. Because offline .d2s files are stored exclusively on your local machine, recovery must be performed on the file itself.

Can I recover my character from a corrupted item?

Yes. If a specific item caused the file to break (often due to a mod or an outdated editor), we can isolate and remove the offending item block from the binary data, allowing the character and the rest of the inventory to load normally.


If you have lost access to a high-level character or a valuable inventory due to a corrupt .d2s file, do not attempt to overwrite it with an editor. Contact FileRepair.net for a free evaluation, and let our team help you safely restore your hero to Sanctuary.

Send us your .ma0 file for a free evaluation

Our recovery engineers will tell you exactly what can be recovered — at no cost. There is no charge if we cannot recover your data.

Start a free evaluation