KeyStone
← All articles

Files · Damage

My wallet file is corrupted: can anything be salvaged?

Two things first. One: check whether it really is damaged, because a «wrong password» message does not mean that. Two: if it is damaged, don’t let any program try to «repair» it on the original.

October 7, 2026 · 5-minute read

First, is it really damaged?

What you seeWhat it means
«Wrong password»The file is fine: it was read perfectly
«Cannot read file»Possible real damage
«Unrecognised format»Could be damage or could be a different kind of file
The program crashes on openingPossible real damage
Size of 0 bytesThe copy failed: look for the original

The first row matters most, because it reassures a great many people: if the wallet asks for the password and rejects it, it read the file without trouble. Your case is a password case, not a damage case. See the wallet says wrong password but the file is fine.

What usually survives damage

A wallet file is not an indivisible block: inside there are many separate elements. Partial damage — a bad disk sector, an interrupted copy, a power cut while saving — usually ruins one part and leaves the rest intact. And what really matters, the keys, takes up very little space.

That is why in many cases the contents can be salvaged even when the program refuses to open the file. It isn’t magic: it is reading what remains legible and reconstructing the useful pieces.

What does destroy the opportunity: letting the program «repair» the original file, saving it from a text editor, or continuing to use the drive it was on if you suspect the drive is failing. If the drive is the problem, power it down and stop using it until you have a sector-by-sector copy.

What to do, in order

  1. Copy the file to two separate places, without opening it.
  2. If the drive it is on throws errors, stop using it: every boot can make the damage worse.
  3. Look for earlier copies of the same wallet: a healthy old copy is worth more than a damaged original.
  4. Don’t run repair tools on the original. Only on copies, and only knowing what they do.
  5. Check whether the wallet holds a balance by looking up one of your addresses on an explorer, so you know whether the effort is worth it.
Point three solves more cases than you would think. Many people have a years-old copy of the wallet on a USB stick or in an email and dismiss it as «old». If the original is damaged, that old copy is your best asset, even if it doesn’t contain the most recent addresses.

Keep reading