Where WhatsApp stores your files on PC, and why you might move them
WhatsApp on Windows stores all your messages, photos, videos, and documents in a folder buried inside your user account — usually at C:\Users\[YourUsername]\AppData\Local\Packages\5222927d6bcc7\LocalCache\Roaming\WhatsApp\Databases. If your C: drive is running low on space, or you want backups on a faster external drive, you can move this folder to a different location.
The process involves backing up your data, moving the folder, and then telling WhatsApp where to find it. Windows does not offer a built-in settings menu for this — you have to do it manually through File Explorer and a configuration file. The steps take about 10 minutes if you follow them in order.
Key Takeaways
- WhatsApp stores messages and media in a hidden folder on your C: drive that you can move to another drive or external storage.
- You must back up your WhatsApp data before moving the folder, or you risk losing messages and media.
- The process requires you to close WhatsApp completely, move the folder in File Explorer, and edit a configuration file to point WhatsApp to the new location.
- After moving the folder, WhatsApp will rebuild its database in the new location the next time you open it — this may take a few minutes on first launch.
Back up your WhatsApp data before you move anything
Open WhatsApp on your PC. Click the three-dot menu in the top left corner, then select Settings. Go to Chats, then click Chat backup. Choose whether to back up to Google Drive (if you use Android) or to your local computer. If you choose local backup, WhatsApp will save a .zip file to your Downloads folder that contains all your messages and media.
Wait for the backup to finish — you will see a confirmation message. Do not close WhatsApp until the backup is complete. This backup is your safety net. If something goes wrong during the move, you can restore from this file.
Enable viewing hidden files in Windows File Explorer
The AppData folder is hidden by default in Windows, so you need to turn on the option to see hidden files. Open File Explorer and click the View tab at the top. On the right side, check the box next to Hidden items. You will now see folders and files that Windows normally hides.
Navigate to C:\Users\[YourUsername]\AppData\Local\Packages. You are looking for a folder that starts with 5222927d6bcc7 — this is WhatsApp's folder. Open it, then open LocalCache\Roaming. You should see a folder called WhatsApp. This is the folder you will move.
Close WhatsApp and move the folder to your new location
Close WhatsApp completely — do not just minimize it. Right-click the WhatsApp icon in your system tray (bottom right corner) and select Quit. Wait a few seconds to make sure it is fully closed.
In File Explorer, right-click the WhatsApp folder and select Cut. Navigate to the drive or external storage where you want to move it — for example, D:\ or an external USB drive. Right-click in the empty space and select Paste. The folder will now copy to the new location. This may take a few minutes if you have a lot of media files. Do not unplug an external drive or turn off your computer while the copy is happening.
Edit the configuration file to point WhatsApp to the new folder
Once the folder has moved, you need to tell WhatsApp where to find it. Navigate back to C:\Users\[YourUsername]\AppData\Local\Packages\5222927d6bcc7\LocalCache\Roaming. You should see a file called settings.json. Right-click it and select Open with, then choose Notepad.
Look for a line that says "dbPath". It will look something like this: "dbPath": "C:\\Users\\[YourUsername]\\AppData\\Local\\Packages\\5222927d6bcc7\\LocalCache\\Roaming\\WhatsApp". Change the path to point to your new location. If you moved the folder to D:\WhatsApp, change it to "dbPath": "D:\\WhatsApp". Use double backslashes between folder names, exactly as shown in the original line.
Click File, then Save. Close Notepad. Do not delete the old WhatsApp folder from AppData yet — keep it for a few days in case something goes wrong.
Open WhatsApp and verify the move worked
Open WhatsApp from your Start menu or taskbar. It will take longer than usual to launch the first time — WhatsApp is rebuilding its database in the new location. Wait for it to fully load. You should see all your chats, contacts, and media exactly as they were before.
Check a few conversations to make sure your messages and photos are there. If everything looks correct, you can delete the old WhatsApp folder from C:\Users\[YourUsername]\AppData\Local\Packages\5222927d6bcc7\LocalCache\Roaming. This will free up space on your C: drive. If something is missing, restore from your backup file instead.
Moving WhatsApp to an external drive instead of another internal drive
If you are moving WhatsApp to an external USB drive, the process is the same, but you need to keep the drive plugged in whenever you use WhatsApp. If you unplug the drive while WhatsApp is running, it may crash or lose data. For this reason, moving to a second internal drive (like D:) is usually more reliable than moving to external storage.
If you do use an external drive, make sure it is formatted as NTFS, not FAT32. FAT32 has a file size limit that can cause problems with large WhatsApp backups. You can check the format by right-clicking the drive in File Explorer, selecting Properties, and looking at the File system field.
Frequently Asked Questions
Will moving the folder delete my messages?
No, as long as you follow the steps in order and do not unplug an external drive during the move. The folder contains all your data — you are just moving it to a different location on your computer. Back up your data first anyway, so you have a safety copy if something goes wrong.
Can I move WhatsApp to a network drive or cloud storage?
WhatsApp works best with local drives (internal or external). Network drives and cloud storage like OneDrive or Google Drive can cause sync conflicts and slow down WhatsApp. Stick to a second internal drive or a USB external drive if possible.
What if I cannot find the settings.json file?
Make sure you have enabled hidden files in File Explorer (the View tab). If you still cannot find it, try searching for "settings.json" in the Windows search bar. If the file does not exist, WhatsApp will create one automatically the next time you open it — you can skip the editing step and just move the WhatsApp folder.
Can I move WhatsApp back to the original location?
Yes, follow the same steps in reverse. Move the WhatsApp folder back to C:\Users\[YourUsername]\AppData\Local\Packages\5222927d6bcc7\LocalCache\Roaming, edit settings.json to point back to the original path, and restart WhatsApp.
Why is WhatsApp taking so long to open after the move?
WhatsApp rebuilds its database the first time it runs from a new location. This can take several minutes if you have thousands of messages or large media files. Let it finish — do not close it or restart your computer during this process.