PrintChats

What Is Inside a WhatsApp Chat Export Zip

By Josep Mampel Marques, updated

A WhatsApp chat export contains one text file with the conversation and, if you chose to include media, the photos, videos, voice notes and documents as separate files. On iPhone it is a .zip with the text in _chat.txt. On Android the text file is usually called something like WhatsApp Chat with Ana.txt, and depending on the version and the app you share to, it comes as a .zip or as separate files.

The files at a glance

iPhoneAndroid
Container.zip.txt alone, a .zip, or .txt plus loose files
Chat text_chat.txtWhatsApp Chat with Name.txt (localised)
Photo name00000003-PHOTO-2024-01-15-21-41-45.jpgIMG-20240115-WA0003.jpg
Reference in the text<attached: file name>file name (file attached)
Exported without mediaimage omitted, video omitted<Media omitted>

WhatsApp's help center confirms that iPhone exports are ZIP files. The file naming is not documented by WhatsApp; the patterns above come from open source tools that read these exports and may vary by version and language.

The chat text file

Each message starts on a new line with the date and time, then the sender's name, then the text. A message with several lines continues on the following lines until the next date appears. Typical lines look like this:

The date order (day first or month first) and the 12 or 24 hour clock follow your phone's region settings, which is why exports from different phones look different. iPhone exports often include invisible direction marks before some lines, which is harmless but can confuse simple text tools.

System messages, such as someone joining a group or changing its name, appear as lines without a sender.

The encryption notice

Most exports begin with a system line saying that messages and calls are end-to-end encrypted, and that no one outside the chat can read them. The exact wording varies by version and language. It is a notice WhatsApp shows inside the chat, not a property of the exported file: once exported, the .txt and the media are ordinary unencrypted files, so store them as carefully as you would the phone itself.

Media files

Because the text refers to media by file name, renaming or removing files from the zip breaks the link between a message and its photo. Keep the export as it came.

What an export does not contain

Open it without unpacking anything

You do not need to unzip the export to read it. Choose the .zip in PrintChats and it finds the chat text, matches every attached line to its photo and shows the conversation as bubbles, with search and a date filter. It works the same with an Android .txt, minus the photos. More in how to open and read an exported WhatsApp chat.

FAQ

What is _chat.txt?

It is the text of the conversation in an iPhone WhatsApp export: one message per line with date, time, sender and text. Media files in the same zip are referenced from it by file name.

Why does the export start with a line about encryption?

WhatsApp adds a system message to chats saying that messages and calls are end-to-end encrypted. It is part of the chat history, so it appears in the export like any other system message.

Sources