wallet.dat File: What It Is and How to Open It
The wallet.dat file is the wallet file of Bitcoin Core and some older clients, and it stores private keys. It is usually encrypted with a passphrase. You open it in Bitcoin Core, working only on a copy of the file. Never send the file or passphrase to anyone, and a forgotten truly random password cannot be recovered in practice.
What wallet.dat Is
The wallet.dat file is the wallet file of Bitcoin Core and of a number of older clients built on the same foundation. It stores the keys used to sign transactions, along with address labels and service data. The coins themselves are not in the file: they exist on the blockchain, and the file holds the private keys that give you the right to spend them. Losing this file means losing access to the funds unless you have another copy of the keys.
The file normally sits in the program's data folder: on Windows it is the Bitcoin directory inside AppData, on macOS the Bitcoin folder in Application Support, on Linux the hidden .bitcoin folder. In recent versions of Bitcoin Core, wallets live in a wallets subfolder, which may hold several of them. Names and locations vary by version, so go by what is actually on your disk.
How to Back It Up
The most important thing you can do with this file is copy it. Close the program so the file is not changing while you copy, and place the copy on a separate drive. Two copies in different places are better than one. You can also use the backup command inside Bitcoin Core itself, which saves the current state of the wallet.
Keep in mind that new addresses and keys are added over time, and in older versions a copy could become incomplete after several new operations, so refresh your backups. Store it as carefully as cash: an encrypted file is safer than an open one, but it should still never land on someone else's service.
How to Open wallet.dat
The main method is to install Bitcoin Core from the project's official website and load the wallet. First make a copy of the file and work only with the copy, leaving the original untouched. Recent versions let you open a wallet through the File menu by pointing to its path. The program has to download and verify the whole block chain, which takes a lot of disk space and time while it synchronizes.
If the wallet is encrypted, the program asks for the passphrase when you try to send funds. An alternative is to extract the keys and import them into another wallet, but that needs technical knowledge, and a mistake can cost you access. If you are not sure of your skills, do not experiment on the only copy.
Safety: What Not to Do
Never send a wallet.dat file or its passphrase to anyone: not by email, not through a messenger, not into a "personal account" of a third-party service. Whoever receives the file can start guessing the password on their own hardware, and whoever gets the passphrase can move the funds immediately. Be suspicious of services that ask for the file up front, promise a result for certain, or demand full prepayment.
Always work on a copy and, where possible, on a computer without stray programs installed. If a file comes from someone else (for example, a "wallet with coins" for sale), that is a common scam: such a file is either empty or contains keys that were compromised long ago.
If You Forgot the Passphrase or the File Is Damaged
If the passphrase is forgotten, guessing is only realistic when you remember its structure: for example, the base of the password, an approximate set of words, capitalization and likely character substitutions. Then the search is limited to a small number of variants and can be practical. If the password was truly random and you remember nothing, it cannot be recovered in practice: the number of possibilities is far too large, and that limit comes from the cryptography itself, not from any lack of tools.
A damaged file is a separate problem. It may fail to open because of a disk fault, a bad copy, or an interrupted write. Sometimes keys can be recovered from the surviving parts, but the outcome depends on the extent of the damage and cannot be promised in advance. So when you see an error, do not run "repair" tools on your only copy and do not keep overwriting the file.
Example: a user found a wallet.dat file on an old laptop, but Bitcoin Core asked for a passphrase he did not remember. He only recalled that it was a city name plus a birth year with one special character. For a case like that, a pattern-based search may be worthwhile. Had the password been arbitrary characters, there would be no chance. He first copied the file and did all the work on the copy.
If the file matters and you are unsure about safe handling, you can turn to specialists in wallet.dat recovery. Agree the conditions for safe work in advance, before handing over any data.
Frequently Asked Questions
What is a wallet.dat file and how do I open it?
It is the wallet file of Bitcoin Core and some older clients, and it stores the keys. You open it in Bitcoin Core by loading the wallet from the menu. Make a copy first and work only on the copy, keeping the original untouched.
Can I email or message my wallet.dat to a specialist?
You should not. The file holds keys, and password guessing can be run on someone else's hardware. If you do decide to seek help, first agree the conditions for safe handling and never send the file or the passphrase over open channels.
I forgot my wallet.dat password, can it be guessed?
Only if you remember the structure of the password: its base, a set of words, capitalization, character substitutions. Then a pattern-based search is realistic. A truly random password with no memory behind it cannot be recovered in practice, and no outcome can be promised in advance.
What if wallet.dat is damaged and will not open?
Do not run repair tools on your only copy and do not overwrite the file. Make a byte-level copy of the drive or file and work with that. Sometimes keys can be pulled from the surviving parts, but success depends on how badly it is damaged.
Where is the wallet.dat file stored on a computer?
In the Bitcoin Core data folder: on Windows the Bitcoin directory inside AppData, on macOS Application Support, on Linux the hidden .bitcoin folder. In recent versions wallets sit in a wallets subfolder. The location depends on the version and settings.