How it works
What's Inside a WhatsApp Chat Export (.txt and .zip)
When you export a WhatsApp chat you get either a single text file or a .zip that also holds the photos, videos and voice notes. The format is plain, but it has quirks that trip people up. Here's what is in the file, line by line.
Without media: one text file
Exporting without media gives a single .txt file (named after the chat on Android, _chat.txt on iPhone). Each message starts on a new line with a timestamp and the sender:
12/03/2024, 21:14 - Asha: Did you get home okay?
12/03/2024, 21:16 - Rohan: Yes! Thanks for tonight 😊
12/03/2024, 21:16 - Rohan: <Media omitted>- Messages that span several lines continue on the next lines without a timestamp.
<Media omitted>marks a photo, video, sticker or voice note that wasn't included.- System lines ("Messages and calls are end-to-end encrypted", someone joining a group) have a timestamp but no sender.
With media: a .zip
Exporting with media gives a .zip containing the same text file plus one file per attachment. In the text, the placeholder becomes a reference to the file:
12/03/2024, 21:18 - Asha: IMG-20240312-WA0007.jpg (file attached)
[12/03/24, 9:18:05 PM] Asha: <attached: 00000012-PHOTO-2024-03-12-21-18-05.jpg>The first line is how Android writes it, the second how iPhone does. Either way, the file name in the message matches a file in the .zip, which is how a reader can put each photo back next to its message.
Dates depend on the phone's settings
The timestamp follows the exporting phone's language and region: 12/03/2024 is 12 March in India and the UK, but 3 December in the US. Times can be 24-hour or 12-hour with AM/PM, and iPhone exports add seconds and wrap the timestamp in brackets. A tool that reads exports has to work out which format a file uses.
Limits and what's missing
- WhatsApp includes about 10,000 recent messages with media and about 40,000 without.
- Media that was deleted from the phone, or never downloaded, can't be exported.
- Reactions, edits and some message types show up differently between Android and iPhone exports.
Reading an export
You can open the text file in any text editor, but a long chat quickly becomes hard to follow, and photos sit in a separate folder. Chatcraft reads both the .txt and the .zip without unzipping, from Android or iPhone, and lays the chat out as a book with each photo, voice note and document in place. It runs on your phone and never uploads the chat.