Where WhatsApp stores your messages on Windows
WhatsApp on Windows keeps your chats, photos, and voice messages in a folder buried inside your user account. By default, this folder lives at C:\Users\[YourUsername]\AppData\Local\Packages\5222927d6bcc7\LocalCache\Roaming\WhatsApp\Databases — usually on your main drive, wherever Windows installed.
If your main drive is running out of space, or you want to move WhatsApp to a faster external drive or secondary internal drive, you can change where it stores everything. The process involves backing up your data, moving the folder, and telling WhatsApp where to find it.
This matters because WhatsApp files can grow large over time, especially if you receive lots of photos and videos. Moving them frees up space on your main drive and can speed up your computer if that drive was nearly full.
Key Takeaways
- WhatsApp stores messages and media in a hidden folder on your C: drive by default, which you can move to another drive to save space.
- You must back up your WhatsApp data through the app's settings before moving anything, or you will lose your chat history.
- The move requires closing WhatsApp completely, using File Explorer to relocate the folder, and then pointing WhatsApp to the new location.
- If something goes wrong during the move, you can restore from your backup through WhatsApp's settings menu.
Back up your WhatsApp data before you move anything
Open WhatsApp on your Windows PC. Click the three dots in the top right corner, then select Settings. Go to Chats, then Chat backup. Click Back up to OneDrive (or Google Drive if you use that instead). Choose which Microsoft account to use, then click Back up.
WhatsApp will create a file containing all your chats, photos, and videos. This backup sits in your OneDrive or Google Drive account, not on your computer. If the move goes wrong, you can restore from this backup later. Wait for the backup to finish — you will see a green checkmark when it is done.
This step is not optional. If you move the folder without backing up first and something breaks, your messages are gone.
Find and copy the WhatsApp folder to your new location
Close WhatsApp completely. Open File Explorer and click the address bar at the top. Paste this path: C:\Users\[YourUsername]\AppData\Local\Packages (replace [YourUsername] with your actual Windows username). Press Enter.
Look for a folder that starts with 5222927d6bcc7 — this is WhatsApp's folder. Right-click it and select Copy. Navigate to the drive or folder where you want to move it (for example, D: or an external drive). Right-click in the empty space and select Paste. Wait for the copy to finish — this can take several minutes if you have a lot of media.
Once the copy is done, you now have two copies of the WhatsApp folder: one in the original location and one in the new location. Do not delete the original yet — you will do that after you confirm the new one works.
Point WhatsApp to the new folder location
Open WhatsApp again. It will try to use the original folder first. Go to Settings and look for an option called Storage or Data location (the exact name depends on your WhatsApp version). Click it and select Change storage location.
A file browser window will open. Navigate to the new folder you just created on your other drive. Select the folder and click Select Folder or OK. WhatsApp will restart and begin using the new location.
Open a few of your chats to make sure your messages and photos are there. If everything looks normal, your move worked.
Delete the original folder to free up space
Go back to File Explorer and navigate to C:\Users\[YourUsername]\AppData\Local\Packages. Find the folder starting with 5222927d6bcc7 — this is now the old copy. Right-click it and select Delete. Confirm the deletion.
Your main drive now has that space back. Check your drive's free space in File Explorer to confirm — right-click your C: drive and select Properties.
Keep your OneDrive or Google Drive backup for at least a few weeks, until you are certain everything is working correctly on the new drive. After that, you can delete it if you want to save cloud storage space.
What to do if WhatsApp will not start after the move
If WhatsApp crashes or will not open after you move the folder, close it completely and restore from your backup. Open WhatsApp, go to Settings > Chats > Chat backup, and click Restore. Select the backup you created before the move. WhatsApp will read your messages and media from OneDrive or Google Drive.
After the restore finishes, try the move again. This time, make sure you followed each step exactly — especially closing WhatsApp before moving the folder and waiting for the copy to finish completely before opening WhatsApp again.
If the problem keeps happening, your new drive may be having issues. Try moving the folder back to your original C: drive location, or try a different external drive if you were using one.
Moving to an external drive instead of an internal one
If you are moving WhatsApp to an external USB drive or portable hard drive, the process is the same, but keep these things in mind: WhatsApp will only work when that drive is plugged in. If you unplug the drive, WhatsApp will not be able to find your messages and will crash.
External drives are also slower than internal drives, so WhatsApp may take longer to open or load your chats. For this reason, moving to a second internal drive (like a D: drive) is usually better than moving to a USB drive, unless you are moving WhatsApp to a computer you do not use every day.
If you do use an external drive, always eject it properly through File Explorer before unplugging it. Right-click the drive name and select Eject.
Frequently Asked Questions
Will I lose my messages if I move the folder?
No, as long as you back up through WhatsApp's settings first. The backup saves everything to OneDrive or Google Drive. Even if something goes wrong during the move, you can restore from that backup and get all your messages back.
Can I move WhatsApp to a network drive or shared folder?
WhatsApp does not work reliably on network drives or shared folders. It needs a drive that is directly connected to your computer. Use an internal drive (like D:) or a USB external drive plugged into your computer, not a network location.
How long does the move take?
Copying the folder usually takes a few minutes to an hour, depending on how much media you have stored. Moving to an external USB drive takes longer than moving to an internal drive. Do not unplug anything or close File Explorer while the copy is happening.
What if I want to move WhatsApp back to my C: drive?
Follow the same steps in reverse: back up your data, close WhatsApp, copy the folder back to the original location, and tell WhatsApp to use that location again in Settings. Then delete the copy on the other drive.
Does moving WhatsApp affect my phone version?
No. WhatsApp on your phone stores its data separately and is not affected by where you move the Windows version. Your phone and PC will still sync messages normally.