Key Takeaways
wallet.dat is the wallet file used by Bitcoin Core. It stores the keys and records that let the software track and spend your bitcoin, so treat it like cash in a safe.
There are two kinds of wallet.dat. Older “legacy” files use a database format called Berkeley DB, while newer “descriptor” files use SQLite. The file name is the same, but recent software handles them differently.
Back it up before you do anything else. Make several copies before opening, migrating, or testing a password, and never upload the file to a website or send it to a stranger.
What Is a wallet.dat File?
A wallet.dat file is the wallet database created by Bitcoin Core, the original and most widely used full node software for Bitcoin. When you create a wallet in Bitcoin Core, the software writes a file named wallet.dat inside its data directory.
The file is not your bitcoin. Your coins live on the Bitcoin blockchain. What wallet.dat holds is the information needed to prove ownership of those coins and sign transactions that move them. If you lose the file and have no other backup, you usually lose access to the funds. If someone else gets the file (and its password, if it has one), they can spend the funds.
Because the name is so generic, people sometimes find a file called wallet.dat from another program. A few early Bitcoin forks, such as Litecoin and Dogecoin Core, also used wallet.dat. This article focuses on Bitcoin Core.
What Is Inside a wallet.dat File?
The exact contents depend on the wallet type and version, but most wallet.dat files contain the following.
Data | What it does | Sensitive? |
|---|---|---|
Private keys or a seed | Lets the wallet sign transactions and spend coins | Extremely sensitive |
Public keys and addresses | Lets the wallet recognize payments to you | Reveals your history |
Transaction records | Shows past sends and receives | Reveals your history |
Address labels | Names you gave to addresses | Personal information |
Descriptors (newer wallets) | Rules that describe which addresses the wallet controls | Sensitive if they include private keys |
Encryption data | Stores the encrypted form of the keys if you set a passphrase | Sensitive |
Is wallet.dat encrypted?
Not by default. Bitcoin Core’s own wallet guide states that a wallet.dat file is unencrypted unless the user chooses to encrypt it. If you set a passphrase, Bitcoin Core encrypts the private keys, but other data such as addresses and transaction history can still be read by anyone holding the file. That is why even an encrypted file should be kept private.
Legacy vs Descriptor: The Two Types of wallet.dat
This is the most important detail for anyone holding an old file.
Feature | Legacy wallet | Descriptor wallet |
|---|---|---|
Database format | Berkeley DB (BDB) | SQLite |
Era | Bitcoin’s early years through about 2022 | Added in version 0.21, default from version 23.0 (2022) |
How keys are tracked | A pool of individual keys, later HD keys | Output descriptors |
Support in current Bitcoin Core | Removed in version 30.0; must be migrated | Fully supported |
File name | wallet.dat | wallet.dat |
Bitcoin Core developers kept the same file name for both formats. The software tells them apart by reading the first bytes of the file. A SQLite file begins with the text “SQLite format 3”, while a Berkeley DB file does not.
Why the difference matters
Starting with Bitcoin Core 30.0, released in late 2025, the software no longer loads or creates legacy Berkeley DB wallets. If you have an old wallet.dat from 2013 or 2017, current versions will not open it like a normal wallet. Instead, you need to migrate it into a descriptor wallet. The migration copies your keys into the new format so the coins stay spendable.
Where Is wallet.dat Stored?
Bitcoin Core keeps wallet.dat in its data directory. Default locations are below.
System | Default folder |
|---|---|
Windows | %APPDATA%\Bitcoin\ (newer fresh installs may use %LOCALAPPDATA%\Bitcoin\) |
macOS | ~/Library/Application Support/Bitcoin/ |
Linux | ~/.bitcoin/ |
In older versions the file sat directly in the data directory. In newer versions it usually sits in a wallets subfolder, or in a folder named after the wallet, such as wallets/savings/wallet.dat. If you are hunting for a file on an old machine, see our guide on finding wallet files on old computers (linked under More Reading).
What Can You Do With a wallet.dat File?
1. Back it up
The single most useful thing you can do is make safe copies.
Copy the file to at least two separate storage devices, such as two USB drives.
Store one copy in a different physical location.
If the wallet is unencrypted, consider encrypting it in Bitcoin Core first, or store the copies in an encrypted container.
For an active wallet, use Bitcoin Core’s built-in backup option (File, then Backup Wallet) rather than copying the file while the program is running. This avoids saving a half-written file.
2. Open it in Bitcoin Core
If the file is a descriptor wallet, you can open it in a current version of Bitcoin Core.
Download Bitcoin Core only from the official site, bitcoincore.org.
Place a copy of the wallet.dat in its own named folder inside the wallets directory.
Start Bitcoin Core and use File, then Open Wallet.
Let the software sync with the network so it can display your current balance.
A full sync downloads the whole blockchain, which takes a lot of disk space and time. Bitcoin Core offers a “prune” setting to save space, but be aware that pruning played a role in a 2026 migration bug described below.
3. Migrate an old legacy wallet
If the file is a legacy Berkeley DB wallet, current Bitcoin Core offers a migration tool. In the graphical version you can choose File, then Migrate Wallet. Advanced users can use the migratewallet command.
Before you migrate:
Make multiple backups of the original file and keep them off the computer you are using.
Use a current, patched release. In January 2026 the Bitcoin Core project warned that versions 30.0 and 30.1 had a bug that, in rare cases, could delete files in the wallet directory when migrating an unnamed wallet.dat. Bitcoin Core pulled those downloads and shipped a fix in version 30.2.
Know the passphrase if the wallet is encrypted. Migration needs it.
4. Check whether it is encrypted
When you open or migrate a wallet in Bitcoin Core, the software will ask for a passphrase if one is set. If it does not ask, the file is unencrypted and anyone holding a copy could access the keys. Treat it with extra care.
5. Recover a forgotten password
If the file is encrypted and you forgot the passphrase, the coins cannot be moved without it. Some people use open-source password recovery tools that test likely guesses on their own computer. Others hire a recovery firm. Either way, the safest rule is to keep the original file private and only work with copies.
6. Move funds to a modern wallet
Once the wallet is open and synced, many users send the coins to a newer wallet with a written seed phrase, such as a hardware wallet. This gives you a simpler backup going forward. Always test with a small amount first.
What You Should Not Do
Risky action | Why it is risky |
|---|---|
Uploading wallet.dat to a website | Anyone with the file can try to crack the password or read your history |
Sending it to someone who contacts you offering recovery | This is a common pattern in recovery scams |
Opening the original file instead of a copy | Software can change or overwrite the file |
Installing a new wallet on top of the old one | A new wallet.dat could replace the old one |
Buying a wallet.dat online | Files sold as “lost bitcoin wallets” are widely reported as scams |
The US Federal Trade Commission has warned that people who lost crypto are often targeted again by fake recovery services. Legitimate help will never require you to hand over your only copy.
Quick Decision Guide
Your situation | Sensible next step |
|---|---|
Found an old wallet.dat, know the password | Back up, then migrate in a current patched Bitcoin Core release |
Found a newer descriptor wallet.dat | Back up, then open it in Bitcoin Core |
Found a file, forgot the password | Keep copies safe and research recovery options carefully |
Not sure if the file is from Bitcoin Core | Check where it was stored and which software was installed |
Using Bitcoin Core today | Encrypt the wallet and keep regular backups |
FAQ
Is wallet.dat the same as a seed phrase? No. A seed phrase is a list of words you write down. A wallet.dat is a database file. Bitcoin Core does not show a standard 12 or 24 word seed phrase, so the file itself is the main backup.
Can I open wallet.dat in Electrum or another wallet? Not directly. Other wallets use different file formats. You would normally open it in Bitcoin Core, then send the coins to another wallet if you want to switch.
Why will new Bitcoin Core not open my old wallet.dat? Since version 30.0, Bitcoin Core no longer loads legacy Berkeley DB wallets. You need to migrate the file into a descriptor wallet using the built-in tool.
Does a wallet.dat file expire? No. The coins stay on the blockchain. As long as you have the file and any passphrase, the funds can be accessed even years later.
Is it safe to keep wallet.dat in cloud storage? It adds risk. If you do, encrypt the wallet with a strong passphrase and consider storing it inside an additional encrypted container.
Related Terms
Private Key: A secret number that proves ownership of a crypto address and allows the holder to spend its funds.
Descriptor Wallet: A Bitcoin wallet that uses output descriptors to define exactly which addresses and scripts it controls.
Full Node: A computer running software, such as Bitcoin Core, that downloads and verifies every block and transaction on the network.
Disclaimer
This article is for educational purposes only and is not financial, legal, or technical recovery advice. Wallet software changes over time. Always follow the official documentation for the version you use, and keep backups before making any changes.
Sources
Bitcoin Core’s managing wallets guide explains wallet creation, encryption, and backups.
Bitcoin Core’s file system documentation lists default data directories and wallet locations.
Bitcoin Core’s January 2026 wallet migration bug notice covers the risk in versions 30.0 and 30.1.
The legacy wallet removal timeline shows the path from Berkeley DB to descriptor wallets.
Bitcoin Core pull request 23002 made descriptor wallets the default.
Cointelegraph reported on the pulled 30.0 and 30.1 downloads.
The FTC warns about crypto recovery scams.




