If you've been researching old Bitcoin storage or gone looking through an old hard drive, you may have come across a file called wallet.dat. It sounds technical, but understanding what it is takes about five minutes — and it's important, because what that file contains determines whether you can access the Bitcoin associated with it.

What wallet.dat is

Wallet.dat is the wallet file created by Bitcoin Core — the original Bitcoin software released by Satoshi Nakamoto in 2009. Bitcoin Core was the dominant way to hold Bitcoin from 2009 through roughly 2014, when dedicated wallet applications started becoming more popular. Millions of people used it during Bitcoin's early years.

The file is typically small — often just a few kilobytes to a few megabytes — and it lives in a specific folder depending on the operating system:

What wallet.dat contains

The wallet.dat file is a Berkeley DB database that contains one critical thing: private keys. A private key is the cryptographic secret that proves ownership of Bitcoin — mathematically, whoever controls the private key controls the Bitcoin at the corresponding address. No private key, no access.

The file also contains the corresponding Bitcoin addresses (public keys), a transaction history, and metadata like labels the user assigned to addresses. But the private keys are what matters for recovery.

Encrypted versus unencrypted

Bitcoin Core added wallet encryption in version 0.4.0, released September 2011. This is one of the most important facts in crypto recovery:

Not all users encrypted their wallets even after the option became available. Some people using Bitcoin as a casual experiment never set a password. Finding an unencrypted wallet.dat on a machine from 2012 is not unusual.

How to tell if you have a wallet.dat file

If you're looking through an old hard drive — either the machine itself or a forensic image — look for a file named exactly wallet.dat in the paths listed above. On Windows, the AppData folder is hidden by default; you may need to show hidden files to find it.

The file will typically have no recognizable content if you try to open it in a text editor — it will appear as a mix of readable text and binary data. That's normal for a Berkeley DB database file.

What to do if you find one

First: verify there's something there

Before doing anything with a wallet.dat file, check whether it actually holds any Bitcoin. A professional can extract the wallet's addresses and check them against the public blockchain — without touching the private keys. Many old wallet files are empty. Knowing this before investing in recovery work saves significant time and money.

If you find a wallet.dat file:

  1. Copy it to a secure location — a USB drive or encrypted folder. Don't leave it as the only copy.
  2. Don't try to open it with Bitcoin Core unless you know exactly what you're doing. Loading a wallet.dat file into a running Bitcoin Core installation can modify it.
  3. Don't send it to anyone online or upload it to any service. The file contains private keys — anyone with the file and the password (or an unencrypted file) controls the Bitcoin.
  4. Contact a professional who can extract the addresses, verify a balance, and advise on next steps without exposing the private keys to the internet.

What about other wallet files?

Wallet.dat is specific to Bitcoin Core, but other wallet software created their own files. Electrum stores a file called "default_wallet" (no extension) in a folder called .electrum. MultiBit created files with .wallet and .key extensions. Armory used .wallet files in an Armory folder.

All of these are worth preserving and investigating if found. The file name matters less than understanding what software created it and what format it uses — which determines what recovery tools and methods apply.

Have a situation like this?

Book a free 15-minute consultation. We'll assess your situation honestly and explain exactly what investigation would involve — no obligation to proceed.

Book a Free Consultation
Previous
← Can you recover Bitcoin without the password?
Next
Electrum, MultiBit, Bitcoin Core — which wallets are recoverable? →