WhatsApp Chat Analysis: A Complete Guide

ChatAnalyzer · · 9 min read

WhatsApp chat analysis means turning an exported chat file into measurements: who writes how much, when the conversation is active, how long replies take, which words keep coming back and how the tone changes. You can do the basic version yourself in a few minutes. This guide covers the export, the file format, the metrics worth looking at, a script you can run on your own computer, and the mistakes that make results misleading.

Step 1: Export the chat

WhatsApp has a built-in export for individual and group chats. The menu names below follow the English version of the app and can differ slightly between versions.

On Android

  1. Open the chat or group.
  2. Tap the three-dot menu, then More, then Export chat.
  3. Choose Without media.
  4. Send the file somewhere you can reach it, for example your own email or cloud drive.

On iPhone

  1. Open the chat or group.
  2. Tap the contact or group name at the top, then Export chat.
  3. If asked about media, choose the option without media files.
  4. Save the result to the Files app or share it to yourself.

Text analysis does not need photos or voice notes, and leaving them out keeps the file small. WhatsApp’s help page also notes that, on iPhone, messages that disappear after being viewed are not included. If Export chat is unavailable, the chat may have advanced chat privacy turned on, a setting that stops people from exporting it. Respect that choice. For the short version of these steps, see our WhatsApp export guide.

Step 2: Understand what is in the file

Open the .txt file in any text editor. Each message starts with a date, a time and a sender. The layout differs between the two phone systems:

31/12/2025, 21:15 - Maya: Are we still on for tonight?      (Android)
[31/12/2025, 21:15:03] Maya: Are we still on for tonight?    (iPhone)

Details like these matter, because they are where home-made analyses usually break:

  • Date order follows the phone’s regional settings. 3/4/25 can mean 3 April or March 4.
  • Clock style can be 24-hour or 12-hour with AM and PM.
  • Long messages continue on new lines that have no date or name.
  • System notices, such as someone joining a group or the encryption notice, are mixed in with real messages.
  • Media placeholders such as <Media omitted> or image omitted stand where a file was sent. Their wording depends on the phone and its language.
  • Invisible characters, such as text-direction marks, can appear at the start of lines.

A quick sanity check before any analysis: look at the first and last line of the file. Do the dates match the period you expect? If the chat started in March but your tool says January, the day and month were swapped.

Step 3: Choose what to measure

Start with the question, then pick the metric. “Who keeps this group going?” needs message share and conversation starts. “Have we drifted apart?” needs the same measures compared across two periods. Here are the common ones, with the main thing each can get wrong. The last column shows where it sits in ChatAnalyzer.

MetricWhat it showsMain caveatPlan
Messages and wordsWho writes how much, and each person’s shareMany short messages are not more effort than one long oneFree
Response timeHow long each person usually takes to answerWork hours, sleep and time zones change itFree
Activity by hour and dayWhen the chat is aliveTimes follow the clock of the phone that made the exportPro
Words and phrasesRecurring topics and verbal habitsFiller words and media placeholders can crowd the listPro
SentimentHow positive or negative the wording is over timeSarcasm, slang and inside jokes are often misreadPro
Language style matchingHow similarly two people writeLeast reliable outside EnglishPro
Personality estimateBig Five style tendencies suggested by texting habitsNot validated against psychological testsPro
Manipulation patternsPhrases that match deny, attack and reverse (DARVO) tacticsExperimental phrase matching, not a diagnosisPro

Counting metrics

Message counts, word counts, active hours and streaks are simple arithmetic. They are the most dependable part of any report, as long as the file was read correctly. Look at them together: one person may send three times as many messages while the other writes more words in total. Neither number alone says who is more invested.

Reply times

A reply time is usually the gap between one person’s message and the next message from someone else. The hard part is deciding when silence stops being a slow reply and becomes a new conversation. ChatAnalyzer leaves gaps longer than 24 hours out of the average. A few long pauses can still pull an average upward, so a median (the middle value) is often a better description of a typical reply. The script below prints the median.

Tone, style and personality

These layers read meaning into wording, so they carry more uncertainty. ChatAnalyzer’s sentiment score is lexicon-based: it matches words against lists of positive and negative terms and shows how the group’s tone moves by month. It does not understand that “great, just great” may be a complaint.

Language style matching compares habits such as small function words, message length, questions and emoji use. Its word matching works best on English text. The personality view turns texting patterns into Big Five style scores. It has not been validated against psychological questionnaires, so read it as a conversation starter, not a profile of a person.

Manipulation detection looks for phrases associated with DARVO (deny, attack, and reverse victim and offender). It covers a limited set of languages, needs at least ten text messages and will both miss things and flag innocent lines. A match is a reason to reread the surrounding conversation. It is not proof of abuse. If you feel unsafe, talk to someone you trust or a local support service rather than relying on a score.

Option A: Analyze the chat yourself with Python

If you prefer to keep the file on your own computer, this script needs only a standard Python 3 installation. It reads both export layouts, skips notices without a sender and prints message counts, word counts, median reply time and the busiest hour.

import re
import sys
from collections import Counter, defaultdict
from datetime import datetime
from statistics import median

DAY_FIRST = True  # set to False if your export writes month/day/year

# The start of a message line, in Android and iPhone exports.
STAMP = re.compile(
    r"^\[?(\d{1,4}[./-]\d{1,2}[./-]\d{1,4}),?\s+"
    r"(\d{1,2}[:.]\d{2}(?:[:.]\d{2})?(?:\s?[APap]\.?[Mm]\.?)?)"
    r"(?:\]|\s+-)\s+(.*)$"
)


def parse_when(date, time):
    a, b, c = (int(x) for x in re.split(r"[./-]", date))
    if a > 31:  # year/month/day
        year, month, day = a, b, c
    else:
        day, month = (a, b) if DAY_FIRST else (b, a)
        year = c + 2000 if c < 100 else c
    clock = [int(x) for x in re.findall(r"\d+", time)]
    hour, minute = clock[0], clock[1]
    suffix = time.lower().replace(".", "")
    if suffix.endswith("pm") and hour != 12:
        hour += 12
    if suffix.endswith("am") and hour == 12:
        hour = 0
    return datetime(year, month, day, hour, minute)


def read_chat(path):
    messages = []
    with open(path, encoding="utf-8-sig") as f:
        for raw in f:
            # Remove invisible direction marks and narrow spaces.
            line = raw.replace("\u200e", "").replace("\u200f", "")
            line = line.replace("\u202f", " ").rstrip("\n")
            match = STAMP.match(line)
            if not match:  # a message that continues on a new line
                if messages:
                    messages[-1]["text"] += "\n" + line
                continue
            date, time, rest = match.groups()
            if ": " not in rest:  # a notice such as "Maya added Ben"
                continue
            name, text = rest.split(": ", 1)
            messages.append(
                {"when": parse_when(date, time), "name": name, "text": text}
            )
    return messages


chat = read_chat(sys.argv[1])
if not chat:
    sys.exit("No messages found. Check the file and the date format.")

counts = Counter(m["name"] for m in chat)
words = Counter()
for m in chat:
    words[m["name"]] += len(m["text"].split())

replies = defaultdict(list)  # minutes taken to answer someone else
for previous, current in zip(chat, chat[1:]):
    if current["name"] != previous["name"]:
        gap = (current["when"] - previous["when"]).total_seconds() / 60
        if 0 <= gap <= 24 * 60:
            replies[current["name"]].append(gap)

print("From", chat[0]["when"].date(), "to", chat[-1]["when"].date())
for name, total in counts.most_common():
    gaps = replies[name]
    typical = f"{median(gaps):.0f} min" if gaps else "n/a"
    print(f"{name}: {total} messages, {words[name]} words, median reply {typical}")
hours = Counter(m["when"].hour for m in chat)
print("Busiest hour:", f"{hours.most_common(1)[0][0]}:00")

Save it as chat_stats.py and run python chat_stats.py chat.txt. Set DAY_FIRST to match your export, then compare the printed date range with the file. An error saying month must be in 1..12 means the setting is the wrong way round. Three limits to keep in mind: media placeholders are counted as words; Android exports record minutes but not seconds, so fast replies show as 0 minutes; and an unusual notice containing a colon can be mistaken for a message.

A spreadsheet works too. Import the text, split each line into date, sender and message, then build a pivot table of messages per sender and per hour. It takes more cleaning, mainly because of multi-line messages.

Option B: Use an online analyzer

An online tool saves the cleaning work and adds charts. With the ChatAnalyzer WhatsApp analyzer, you create an account, upload the .txt or .zip export and wait for the report.

  • Free plan: 3 analyses a month, files up to 2 MB and chats with up to 3 participants. Only the first 5,000 messages in the file, meaning the oldest ones, are analyzed. You see core measures such as message share, engagement, balance, peak hour and the fastest responder.
  • Pro plan: files up to 50 MB with no participant or message limit, plus the activity heatmap, sentiment trend, words and phrases, reply-time trend, personality estimate, language style matching, DARVO patterns and memory cards.

Telegram and Slack support is coming soon. The full list is on the features page.

Privacy and consent

A chat export is not only your data. It holds names, plans, health details and jokes written by people who expected them to stay in the chat. Before uploading it to any service, ask the others where that is reasonable, never upload a work chat your employer has not cleared, and delete copies you made along the way, including the one you emailed to yourself.

Questions worth asking any analyzer:

  • Is the file processed on your device or on a server?
  • What exactly is saved afterwards, and does that include any message text?
  • Can you delete a report and your account yourself?

Here is the answer for the ChatAnalyzer web app. The file is uploaded to our server and parsed in memory. The parsed messages are held temporarily in a job queue while the analysis runs. The raw file is not saved to our database. The saved report contains calculated results, participant names and frequently used words, and Pro memory cards keep short excerpts of a few highlighted messages. The detailed report is encrypted with AES-256-GCM; names, per-person totals and frequent words are also kept in a summary table. You can delete a report from your history or delete your account in Settings. See the privacy policy for the legal terms.

How to read the results without fooling yourself

  1. Compare periods, not people. A change in one person’s habits over six months says more than a ranking between two people with different lives.
  2. Check the sample size. Percentages from forty messages swing wildly. Prefer months of data.
  3. Remember the other channels. Calls, voice notes and meeting in person leave little or no text. A quiet week in the chat may have been a busy week together.
  4. Look for ordinary explanations. Exams, night shifts, travel and a new phone all change the numbers.
  5. Read the messages behind a spike. A chart tells you where to look. The text tells you what happened.
  6. Do not use scores as evidence. They are not suitable for settling disputes, judging employees or diagnosing anyone.

Frequently asked questions

Can I analyze a WhatsApp chat for free?

Yes. You can count messages yourself with a spreadsheet or the script above at no cost. ChatAnalyzer also has a free plan with 3 analyses a month, files up to 2 MB and chats with up to 3 participants.

Does a chat analyzer need access to my WhatsApp account?

It should not. Exporting creates an ordinary file, and uploading that file is enough. Be wary of any service that asks you to link your WhatsApp as a new device or to share a verification code.

Which file do I use from an iPhone export?

An iPhone export arrives as a .zip file that contains a .txt file with the messages. ChatAnalyzer accepts the .zip as it is. For the script above, unzip it first and point the script at the .txt file.

Why are old messages missing from my export?

The export only contains what is still in the chat on your phone, and very long chats can be cut off. Cleared, deleted or disappearing messages will not come back through an export. Open the file and check the first date before drawing conclusions.

Can analysis tell me what someone really feels?

No. It measures what was typed and when. It can show that replies became slower or messages shorter, but it cannot show why. The reason is often something outside the chat.

Have an export ready?

Analyze a WhatsApp chat now