Save WeChat Messages from iPhone to Computer
In this article
Yes, you can save WeChat messages from an iPhone to a computer by using WeChat’s built‑in migration feature or by exporting an iPhone backup and extracting the chat database.
What You'll Need
- An iPhone with the latest version of WeChat installed.
- A Windows PC or macOS computer.
- A Lightning‑to‑USB cable (or USB‑C if your iPhone uses it).
- iTunes (Windows) or Finder (macOS Catalina and later) for creating a backup.
- The WeChat desktop client (available for Windows and macOS) – optional but makes migration easier.
- Optional: a third‑party backup‑extract tool such as iMazing or iExplorer if you prefer to pull the raw database file.
Step‑By‑Step
- Update both devices. Open the App Store on your iPhone and ensure WeChat is up to date. On your computer, download the latest WeChat desktop client from the official Tencent website and install it.
- Prepare the computer. Launch the WeChat desktop client and log in with the same account you use on the iPhone. If you have two‑factor verification, complete it now. Keep the client running; you will need it for the migration.
- Start the migration on the iPhone. Open WeChat, tap Me → Settings → General → Chat → Chat History Migration. The wording may vary slightly by version, but look for “Migrate Chat History”. Choose Migrate to PC (or “Migrate to Mac” on macOS).
- Generate the QR code on the computer. In the desktop client, go to File → Backup & Migrate → Migrate from Phone. A QR code will appear on the screen.
- Scan the QR code with the iPhone. Use the WeChat scanner that appears after you tap “Start Migration” on the phone. Point the iPhone camera at the computer’s QR code and confirm the connection.
- Select chats to export. After the devices pair, the iPhone will display a list of recent conversations. You can tap “Select All” or pick individual chats. Confirm your selection.
- Begin the transfer. Press the “Start Migration” button on the iPhone. The transfer speed depends on the amount of data and the USB connection quality. Do not disconnect the cable or close either app until the progress bar reaches 100%.
- Verify the export on the computer. Once the migration finishes, the desktop client will show the imported chats. You can scroll through them, export individual chat logs as .txt files (right‑click a conversation → Export Chat History), or simply keep the desktop client as a local archive.
If you prefer a backup‑file approach instead of using the desktop client, follow the alternative method below.
- Create an encrypted iPhone backup. Connect the iPhone to your computer. On Windows, open iTunes; on macOS Catalina or later, open Finder and select your device. Choose “Back Up Now” and tick the “Encrypt iPhone backup” box. Encryption preserves passwords and app data, which is required to read WeChat’s database.
- Locate the backup folder. On Windows, the backup resides in
%APPDATA%\Apple Computer\MobileSync\Backup\. On macOS, it is at~/Library/Application Support/MobileSync/Backup/. Each subfolder is a unique device identifier; open the most recent one. - Extract the WeChat database. Inside the backup folder, look for the file named
AppDomain-com.tencent.xin(or a similar long hash). The actual chat database isChatMsg.dblocated underDocuments. Because the files are stored with hashed names, using a tool like iMazing, iExplorer, or the freeiphonebackupbrowsersimplifies the search. - Copy the database to your computer. Drag the
ChatMsg.dbfile to a convenient location, such as your Desktop. - Read the messages. The database is SQLite format. Open it with a free SQLite viewer (DB Browser for SQLite, for example). The main table is
ChatMsg; columns includemsgId,msgContent,createTime, andtalkerId. You can export the table as CSV or HTML for easy reading. - Optional: Convert to a friendly format. If you want a plain‑text log, run a simple query like
SELECT datetime(createTime/1000, 'unixepoch') AS Date, msgContent FROM ChatMsg ORDER BY createTime;and copy the result into a .txt file.
Common Mistakes
- Attempting migration without an active internet connection – the QR‑code pairing works over the local network, but both devices still need Wi‑Fi or cellular data to verify the account.
- Using a non‑encrypted iPhone backup – WeChat stores its data in an encrypted container; an unencrypted backup will not contain
ChatMsg.db. - Disconnecting the USB cable before the progress bar reaches 100% – this corrupts the transfer and forces you to start over.
- Selecting “Back Up to iCloud” instead of a local backup – iCloud backups cannot be accessed directly on a PC or Mac for database extraction.
- Skipping the step to log into the same WeChat account on both devices – mismatched accounts prevent the migration handshake.
Tips
- For large chat histories, start with the most recent month; you can repeat the migration later for older periods to avoid timeouts.
- Keep the iPhone screen awake during migration (Settings > Display & Brightness > Auto‑Lock > Never) to prevent the app from suspending.
- If you only need a single conversation, use the “Export Chat History” option inside the desktop client – it creates a readable .txt file without exposing the entire database.
- When using a third‑party extraction tool, make sure it is the latest version; older versions may not recognize the newer backup format introduced in iOS 17.
- Store the exported .txt or CSV files in a cloud folder (OneDrive, Dropbox) for automatic backup and cross‑device access.
Troubleshooting
- Device won’t pair after scanning QR code. Restart both the iPhone and the computer, ensure Bluetooth is on (some versions use Bluetooth for initial handshake), and try again.
- Migration stops at 0% or stalls. Verify the USB cable is genuine and not a charge‑only cable. Switch to a different USB port, preferably a USB‑2.0 port if using an older PC.
- Desktop client says “No backup data found”. Make sure you selected the correct WeChat account on the computer. Sign out and sign back in, then repeat the migration steps.
- Backup folder does not contain
ChatMsg.db. Confirm you created an encrypted backup. If you used iCloud backup, switch to a local iTunes/Finder backup. Re‑create the backup with encryption enabled. - SQLite viewer reports “file is encrypted”. Some iOS versions encrypt the app’s sandbox even in encrypted backups. Use a tool that can decrypt iOS app data (iMazing offers this feature) or restore the backup to a temporary iPhone and export chats via the desktop client instead.
Frequently Asked Questions
Can I migrate chats without installing the desktop client?
Yes. By creating an encrypted iPhone backup and extracting ChatMsg.db, you can read the messages without the desktop client, though the process is more technical.
Will this method also back up images, videos, and voice messages?
The built‑in migration transfers all media attached to the selected chats. The SQLite database only contains references; the actual media files are stored in the Attachment folder of the backup and can be extracted with the same third‑party tool.
Do I need to jailbreak my iPhone?
No. All steps use official WeChat features or Apple‑approved backup methods, so jailbreaking is unnecessary and not recommended.
How often should I export my WeChat history?
Export whenever you anticipate changing devices, before a major iOS update, or on a regular schedule (e.g., monthly) if you keep important conversations for personal records.
Can I restore the exported chats back to a new iPhone?
The desktop client can import a previously exported .txt file only for viewing, not for restoring into the WeChat app. To move chats to a new iPhone, use the same migration feature in reverse – start migration on the new iPhone and select “Migrate from PC”.
Is the exported data secure?
If you use an encrypted iPhone backup, the data remains encrypted until you extract it. Store the exported files in a password‑protected folder or encrypted drive to keep them private.