Where Are WhatsApp Messages Stored? Find the Exact Location
In this article
WhatsApp messages are stored locally on your device in a hidden database folder, and optionally backed up to cloud services such as Google Drive (Android) or iCloud (iPhone). Knowing the exact location lets you export chats, free up space, or recover deleted messages.
What You’ll Need
- A smartphone with WhatsApp installed (Android or iPhone).
- A file‑manager app on Android (e.g., Files by Google, Solid Explorer) or a computer with iTunes/Finder for iPhone.
- Access to the cloud account linked to WhatsApp if you use backups (Google account or Apple ID).
- Optional: a USB cable to connect the phone to a computer for deeper inspection.
Step‑By‑Step
- Identify the platform. The storage path differs between Android and iOS, so follow the appropriate sub‑steps.
- Android – Locate the local database.
- Open your file‑manager app and enable "Show hidden files" in its settings. Hidden folders begin with a dot (.) and are not visible by default.
- Navigate to
/sdcard/WhatsApp/Databases/or/storage/emulated/0/WhatsApp/Databases/. The exact path may vary if you have moved WhatsApp to an SD card; look for the same folder structure on the external storage. - Inside the
Databasesfolder you will find files namedmsgstore.db.crypt12(current chat history) and older backups likemsgstore-YYYY-MM-DD.1.db.crypt12. The number aftercryptreflects the encryption version; the most recent version is usuallycrypt12. - If you only see
msgstore.db.crypt14or a higher number, the steps are the same – the file name pattern does not change.
- Android – Access cloud backups.
- Open the Google Drive app or go to drive.google.com on a computer.
- In the left navigation, click "Backups". Look for an entry named something like "WhatsApp" followed by your phone number.
- Click the backup to view details; the encrypted database is stored as
msgstore.db.crypt12inside the backup. Google does not allow direct download of this file, but you can restore it by reinstalling WhatsApp and choosing the cloud restore option.
- iPhone – Locate the local database.
- Connect the iPhone to a Mac (macOS Catalina or later) or a Windows PC with iTunes installed.
- On a Mac, open Finder (macOS 13+) or iTunes (Windows/macOS Mojave). Select your device, then choose "Back Up Now" to create a fresh local backup. Ensure the backup is unencrypted for easier access.
- Navigate to the backup folder. On macOS it resides at
~/Library/Application Support/MobileSync/Backup/; on Windows it is at%APPDATA%\Apple Computer\MobileSync\Backup\. Each sub‑folder is a UUID representing a device. - Inside the appropriate UUID folder, locate the file with the hash
ChatStorage.sqlite. This SQLite database holds all chat messages. WhatsApp also stores media in a separateMediafolder within the same backup.
- iPhone – Access iCloud backups.
- Log into iCloud.com or open the Settings app on another iOS device.
- Select the backup that corresponds to your iPhone. iCloud does not expose the raw database, but you can restore the entire backup by resetting the iPhone and choosing "Restore from iCloud Backup" during setup.
- Export chats for personal use.
- Open WhatsApp, go to the chat you want to export, tap the three‑dot menu (Android) or contact name (iOS), then choose "More" > "Export Chat".
- Select whether to include media. The app creates a
.txtfile (and a media folder if chosen) and lets you share it via email, cloud storage, or a file‑manager.
Common Mistakes
Many users assume the WhatsApp folder is visible in the default gallery or file view. Because the folder is hidden, the file manager must have the hidden‑files option turned on. Another frequent error is looking for msgstore.db without the .cryptXX suffix; the suffix is required for the file to be recognized as encrypted. On iOS, attempting to browse the app’s sandbox directly on the phone is impossible without jailbreaking – the only supported method is through a computer‑generated backup.
Tips
- Regularly copy
msgstore.db.crypt12to a secure folder on your computer. This creates a manual backup that can be restored by placing the file back into theDatabasesfolder and reinstalling WhatsApp. - If you plan to switch from Android to iPhone, use the official "Move to iOS" feature inside WhatsApp Settings > Chats > Move Chats to iOS. It transfers the encrypted database without exposing raw files.
- For large media libraries, enable the "Storage usage" option in WhatsApp Settings > Storage and data > Manage storage. This helps you identify and delete oversized files that inflate the database.
- Without this, the app cannot read the hidden WhatsApp folder.
Troubleshooting
If you cannot see the Databases folder on Android:
- Restart the phone and reopen the file manager. A fresh boot often forces the OS to refresh storage permissions.
- Check that WhatsApp is installed on internal storage, not an SD card that is mounted read‑only.
- Ensure you are using a file manager that supports hidden files; some lightweight managers hide them permanently.
- If the folder still does not appear, uninstall and reinstall WhatsApp. During reinstall, choose "Restore from Google Drive" if you have a cloud backup, then verify the local folder reappears.
If the iPhone backup does not contain ChatStorage.sqlite:
- Make sure the backup was created without encryption; encrypted backups hide the database from casual browsing.
- Confirm you selected "iPhone" as the device type in iTunes/Finder, not an iPad backup, which stores data in a different structure.
- Try creating a fresh backup after turning off iCloud backup for WhatsApp (Settings > WhatsApp > iCloud Drive toggle off) and then performing a manual local backup.
- If the file is still missing, the only supported recovery path is to reinstall WhatsApp on the same iPhone and choose "Restore from iCloud Backup" during setup.
Never delete the msgstore.db.crypt12 file unless you have a verified backup, as this will permanently erase all chat history that is not stored in the cloud.
Frequently Asked Questions
Where does WhatsApp store media files?
Media such as photos, videos, and voice notes are saved in /WhatsApp/Media/ on Android and in the Media folder of the iOS backup. The app also creates thumbnails in sub‑folders like WhatsApp Images and WhatsApp Video.
Can I read the .crypt12 file on a PC?
The file is encrypted with a key that resides only on the device. Without the key, the database cannot be opened. Third‑party tools claim to decrypt it, but they require the device’s key and may violate WhatsApp’s terms of service.
What happens to messages after I delete a chat?
Deleting a chat removes its entries from the local database, but the underlying .crypt12 file remains the same size until WhatsApp performs a database compaction, which occurs automatically after a few days or after a manual reinstall.
Do archived chats stay in the same database?
Yes. Archiving only changes the UI flag in the database; the messages stay in msgstore.db.crypt12 and are backed up like any other chat.
Is there a way to view WhatsApp messages on a desktop without the phone?
WhatsApp Web and the desktop client sync messages in real time but do not store the full history locally. To view older messages offline you must export the chat from the phone or restore a backup on a new device.
How much storage does the WhatsApp database usually consume?
The size varies with chat volume and media. A text‑only database may be a few megabytes, while a heavy media user can see files exceeding 1 GB. Checking the file size in the Databases folder gives an exact figure.