Forum Discussion
How to backup WhatsApp to PC from Android for entire chat history
Backing up your WhatsApp chat history to your computer makes it easier to manage your chats and media files in one place. whatsapp-backup-tools is a great tool that can handle backups from supported versions of WhatsApp for Android and generate archive files that you can view locally.
It offers a more technical approach to backing up WhatsApp from an Android device to a computer, especially if you want to browse the exported chat history on your computer.
What is it used for?
- Local access: Browse your archives on your own computer.
- Organized media files: Keep supported attachments and chat histories in one place.
- Searchable history: Browse archived conversations using a browser-based viewer.
How to Back Up WhatsApp to PC from Android
Step 1: Prepare the Backup Files
- On your Android phone, use WhatsApp's backup feature to create a backup. To generate an end-to-end encrypted backup, make sure you have the correct recovery key or password, and follow WhatsApp's official instructions. Copy the required backup database and related media files to your computer.
Step 2: Install the Tools
- Make sure you have Python 3.11 or a compatible version required by this project installed. Open Terminal, PowerShell, or Command Prompt, and run:
python --version
python -m pip install git+https://github.com/auanasgheps/whatsapp-backup-tools.git
Step 3: Build the Archive File
- After confirming the required files and key formats according to the project documentation, run the archiving tool using the actual file paths:
wab-archiver archive --msgstore /path/to/msgstore.db.crypt15 --e2e-key YOUR_64_CHAR_KEY --wa-root /path/to/WhatsApp --output /path/to/my-archive
- Replace the example paths and key placeholders with your own values. The command requires a compatible backup database, the corresponding decryption key, and the relevant WhatsApp media directory.
Step 4: Browse Your Chat History
- Launch the local viewer using the generated archive path:
wab-viewer /path/to/my-archive
Finally, if the viewer launches successfully, open the local address it reports in your browser. Consult the project documentation to confirm the current port and supported archive formats.
You must keep your backup files and encryption keys secure and never upload them to untrusted service platforms. Next, regarding how to backup whatsapp to pc from Android, please note that this project is a specialized archiving tool, not an official backup program. Be sure to review the project's latest documentation before executing any commands on your sole backup copy.