How to Analyze a WhatsApp Chat With ChatGPT (iPhone and Android)

8 min read

An iPhone showing a chat with green message bubbles next to a laptop with an AI chat window, one reply highlighted in yellow.

To analyze a WhatsApp chat with ChatGPT, export the chat from WhatsApp without media, unzip the file, and attach the text file inside to a ChatGPT chat. Then ask one specific question at a time, and ask for exact quotes with their dates so you can check every answer against your phone. ChatGPT can't open WhatsApp itself, so the export is the only way to show it a whole conversation.

Settle two things before you upload. On a personal account, ChatGPT can use your chats to train its models unless you turn that off. And if the WhatsApp chat is part of a court case, talk to your lawyer before you type anything about the case into a chatbot. Both are covered below, under Before you upload.

WhatsApp always exports the whole chat. If you only need certain dates, or want a spreadsheet for counting, open the export in TextPort on your iPhone first.

The short version

  1. Open the chat in WhatsApp and tap Export chat. Choose Without media.
  2. Save the file. On iPhone, tap Save to Files. On Android, send it to yourself or save it to your phone.
  3. Unzip it. On iPhone, WhatsApp saves a ZIP file. Tap it in the Files app, and a folder with the text file appears.
  4. Attach the text file in ChatGPT. Tap + in the message box and pick the file.
  5. Say who's who, then ask. One question at a time, with exact quotes and dates.
  6. Check the quotes against the chat on your phone.

Step 1: Export the chat from WhatsApp

On iPhone

WhatsApp's instructions for iPhone:

  1. Open the chat, one person or a group.
  2. Tap the contact's name or the group's name at the top.
  3. Scroll down and tap Export chat.
  4. Choose Without media.
  5. Tap Save to Files and pick a folder.

WhatsApp exports the chat as a ZIP file. Messages sent as View once are not exported.

On Android

WhatsApp's instructions for Android:

  1. Open the chat.
  2. Tap the three dots at the top right, then More, then Export chat.
  3. Tap Without media.
  4. Pick where to send it, for example Gmail, to mail the file to yourself.

WhatsApp describes the Android export as a text file. If you choose Include media, the most recent media are added as attachments, and ChatGPT doesn't need them.

If Export chat is gray or missing in one chat, that chat probably has WhatsApp's advanced chat privacy turned on, which blocks exports for everyone in it.

Step 2: Unzip the file on iPhone

Open the Files app and go to the folder you saved to. Tap the ZIP file, named something like WhatsApp Chat - Anna.zip. Files makes a folder with the same name. Inside is _chat.txt, the whole conversation as plain text.

ChatGPT may be able to open the ZIP itself, but not always. Uploading _chat.txt works every time.

Step 3: Attach the file in ChatGPT

Open ChatGPT and start a new chat. Tap + in the message box, choose the option for files, and pick _chat.txt. On a computer, click + and then Add photos & files, or drag the file into the chat.

ChatGPT's free plan allows only a few file uploads a day, so upload the one file you need and keep asking in the same chat.

What ChatGPT sees in the file

A WhatsApp export has one line per message: the date and time, the sender's name, then the text. A made-up example:

[10/6/25, 19:06:50] Maya: Can you pick the kids up at 5 today?
[10/6/25, 19:07:12] Jordan: I can't today. Can we switch to Thursday?
[10/6/25, 19:35:19] Maya: image omitted
[10/6/25, 21:02:44] Jordan: Missed voice call

Three things in that file can lead ChatGPT astray:

  • The date order. Is 10/6/25 October 6 or June 10? It depends on your phone's region, and nothing in the file says which. Tell ChatGPT in your first message, for example: "Dates are month/day/year."
  • Photos and voice messages are missing. A photo is only the words "image omitted," and a voice message is "audio omitted." ChatGPT can't know what they showed or said.
  • WhatsApp's own lines. The encryption notice at the top, missed calls and "This message was edited" tags all look like messages. Tell ChatGPT to ignore them when it counts.

Prompts that work

Start by saying who's who: "I'm Maya. Jordan is my ex-husband. We share custody of two kids. Dates in the file are month/day/year."

Then ask one question at a time, and ask for proof:

  • "What do we argue about most? For each topic, quote two messages with their date and time."
  • "Find every time one of us cancelled or changed plans. Make a table with the date, who changed them and the exact message."
  • "Who usually writes first each day, and has that changed over the months? Count it with code, don't estimate."
  • "In this group chat, who writes the most, and who gets the most replies?"
  • "Find the message where Jordan agreed to pay for the school trip. Quote it exactly with its date."
  • "What would you need to know that isn't in these messages?"

Asking ChatGPT to count with code matters. When it only reads a long file, its numbers are guesses. When it runs a short program over the file, the counts are real, and you can ask it to show how it counted.

If the chat is very long

ChatGPT can only keep so much text in mind at once. With a chat that goes back years, answers about "the whole conversation" get less reliable, and it may quietly skip parts of the file.

WhatsApp has no date picker, so the export is always the whole chat. Three ways to give ChatGPT less:

  • Cut it down in TextPort. On an iPhone, open the WhatsApp export in TextPort, pick a From and To date, and export just those weeks as a text file (how).
  • Trim the text file on a computer. Open _chat.txt in any text editor and delete the months you don't need.
  • Ask about one period at a time. "Look only at messages from March 2026."

What ChatGPT gets wrong

  • Quotes that aren't there. It can merge two messages, tidy up the wording or make a line up. Find every quote in the chat on your phone before you rely on it.
  • Who said what. In a group, or when two people share a first name, it can pin a message on the wrong person.
  • Everything outside the chat. Calls, things said in person, other apps, deleted messages, sarcasm and inside jokes are invisible to it.
  • Verdicts about people. "Gaslighting," "narcissist" and "toxic" are judgments about a person, not facts in the messages. Use ChatGPT to find patterns and messages, and keep the conclusions for yourself.

If the chat is about your safety, talk to a person who can help. In the United States, the National Domestic Violence Hotline is at 1-800-799-7233.

Before you upload

Check your training setting. On personal accounts, ChatGPT can use your conversations to improve its models unless you turn it off. In ChatGPT, open Settings, then Data controls, and turn off Improve the model for everyone (OpenAI's steps).

Or use a Temporary chat. OpenAI says a temporary chat stays out of your history and isn't used to improve its models, though OpenAI may keep a copy for up to 30 days for safety.

Remember whose words these are. The file holds the other person's messages too, and often their phone number. Upload only what your question needs, and think twice about messages on health, money or children.

If the chat is part of a court case, ask your lawyer first. The messages themselves are rarely the issue, because the other side has its own copy. The risk is what you type around them: your questions, your plans and anything your lawyer told you. In a 2026 U.S. case, a federal judge ruled that a defendant's conversations with an AI chatbot about his case were not protected by attorney-client privilege. The details are in how to analyze text messages with ChatGPT or Claude. This is general information, not legal advice.

A cleaner file from the same export

WhatsApp's text file is fine for a quick question. When the chat matters, TextPort turns the same export into files that are easier for an AI, and for people, to read. It takes the ZIP from an iPhone or the export from an Android phone, word for word as WhatsApp wrote it (how to open a WhatsApp export in TextPort).

  • Only the dates you need. Pick a From and To date before you export.
  • Dates with one meaning. Every line gets the year first, like 2026-03-03 18:02, so nobody has to guess between day and month.
  • A spreadsheet for counting. One row per message, with the timestamp, name and message in separate columns. This is the best file for "who wrote more" and "at what hours" questions.
  • A PDF for people. The conversation laid out like the chat, with photos next to their messages, ready to read, print or send to a lawyer.

Your first three chats import for free; exporting needs a subscription.

Frequently asked questions

TextPort

Start exporting your messages

Available for iPhone, Mac, and Windows. No computer required.

Download for iPhone