wallet.datIf you are running a full node using the original Bitcoin software—Bitcoin Core—your entire financial sovereignty sits inside a single, small file.
It is called wallet.dat.
While modern hardware wallets and complex seed phrases have become the standard for new users, the wallet.dat file remains the heart of the original Bitcoin experience. Understanding this file is the difference between being your own bank and losing your fortune to a hard drive failure.
Here is everything you need to know about the most important file in your Bitcoin directory.
The wallet.dat file is a critical component of using Bitcoin Core. By understanding its role, securing it properly, and knowing how to manage and recover your wallet, you can safely store and manage your Bitcoins. Always prioritize security and consider best practices for protecting your digital assets. Bitcoin Core Wallet.dat
This guide covers what it is, where to find it, how to back it up, how to encrypt it, and how to recover from corruption.
If someone gains access to your wallet.dat file, do they have your Bitcoin?
It depends.
If you encrypted your wallet within Bitcoin Core (Settings -> Encrypt Wallet), the attacker cannot access your funds without your passphrase. They have the file, but the private keys inside are mathematically scrambled. Security & Encryption If someone gains access to
If you did not encrypt your wallet, the file is essentially a plaintext list of your private keys. Anyone with the file can spend your coins immediately.
Always encrypt your wallet. Just remember: if you forget the passphrase for your wallet.dat, there is no "Forgot Password" button. The Bitcoin is lost.
The single most important thing you can do is encrypt your wallet. Bitcoin Core has a built-in encryption feature.
wallet.dat?wallet.dat is the default wallet file for Bitcoin Core (formerly Bitcoin-Qt). Unlike lightweight or web wallets that outsource key management, Bitcoin Core stores everything locally. The file is an SQLite database (since v22.0) or a Berkeley DB (BDB) file in older versions. Private keys (for receiving and spending) Public keys
It contains:
Crucially, wallet.dat does not store the blockchain. It stores your slice of the blockchain—only transactions that involve your addresses.
wallet.dat (The Firewall)An unencrypted wallet.dat is a plain text file waiting to be read. If a hacker gets it, they can sweep your funds instantly.
How to encrypt via Bitcoin Core:
What encryption does:
wallet.dat sees only gibberish.Warning: Encrypt your wallet before making your first backup. If you encrypt after backing up, the old backup remains unencrypted.